Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.31 backport: Relax recent SNI restrictions (#36950) #36997

Merged
merged 2 commits into from
Nov 7, 2024

Add release note for "Relax recent SNI restrictions" (#37000)

3ba185c
Select commit
Loading
Failed to load commit list.
Merged

1.31 backport: Relax recent SNI restrictions (#36950) #36997

Add release note for "Relax recent SNI restrictions" (#37000)
3ba185c
Select commit
Loading
Failed to load commit list.
CI (Envoy) / Envoy/Prechecks succeeded Nov 6, 2024 in 25m 4s

Envoy/Prechecks (success)

Check has finished

Details

Check run finished (success ✔️)

The check run can be viewed here:

Envoy/Prechecks (pr/36997/release/v1.31@3ba185c)

Check started by

Request (pr/36997/release/v1.31@3ba185c)

howardjohn @howardjohn 3ba185c #36997 merge release/v1.31@e5ef1c4

1.31 backport: Relax recent SNI restrictions (#36950)

This change is being backported as it is a bug-fix for a regression for a fix that was also applied to this branch. Merging this fixes the regression.

See istio/istio#53426. Istio has used underscores in their SNI since the beginning and it is critical to its functionality. Usage of underscores in SNI is a bit of a grey area in the RFCs, which are extremely under-specified wrt to what exactly is the allowed formats. However, the de-facto standard is to allow them, as virtually every TLS library does so (including, but not limited to, Golang, rustls, openssl, boringssl).

This PR loosens the restriction to additionally allow underscores.

Note the intent of the SNI restrictions was not RFC compliance, etc -- but rather to fix log
injection
attacks (putting ANSI escapes, HTML, etc) into logs. This change does not loosen the security properties we hoped to gain with the initial patch.

Signed-off-by: John Howard [email protected]
(cherry picked from commit 79ee342)

Environment

Request variables

Key Value
ref 73e162d
sha 3ba185c
pr 36997
base-sha e5ef1c4
actor howardjohn @howardjohn
message 1.31 backport: Relax recent SNI restrictions (#36950)...
started 1730931231.241437
target-branch release/v1.31
trusted false
Build image

Container image/s (as used in this CI run)

Key Value
default envoyproxy/envoy-build-ubuntu:f94a38f62220a2b017878b790b6ea98a0f6c5f9c
mobile envoyproxy/envoy-build-ubuntu:mobile-f94a38f62220a2b017878b790b6ea98a0f6c5f9c
Version

Envoy version (as used in this CI run)

Key Value
major 1
minor 31
patch 4
dev true