Repository navigation
tls: change upstream TLS default maximum version to 1.3 - #48570
Merged
Merged
Conversation
Add test coverage for both versions Fixes envoyproxy#9300 Signed-off-by: Greg Greenway <[email protected]>
|
CC @envoyproxy/runtime-guard-changes: FYI only for changes made to |
kyessenov
previously approved these changes
Oct 22, 2026
kyessenov
left a comment
Contributor
There was a problem hiding this comment.
LGTM, I went over the ssl socket test which is the majority of changes.
Signed-off-by: Greg Greenway <[email protected]>
Signed-off-by: Greg Greenway <[email protected]>
Signed-off-by: Greg Greenway <[email protected]>
Signed-off-by: Greg Greenway <[email protected]>
ggreenway
enabled auto-merge (squash)
October 23, 2026 01:19
Member
Author
|
@kyessenov CI is now green; PTAL again |
Member
|
/lgtm api |
kyessenov
approved these changes
Oct 27, 2026
bpalermo-agent-bot Bot
pushed a commit
to bpalermo/aether
that referenced
this pull request
Nov 1, 2026
…t the node identity, on TLS 1.3 too (#1735) * fix(agent): the inbound-readiness probe requires the inbound to accept the node identity, on TLS 1.3 too The probe was a connect-only TCP health check over TLS, which passes on the Connected event: the CLIENT's handshake completing. Under TLS 1.2 that comes after the server's Finished, so an inbound rejecting the node SVID failed the probe. Under TLS 1.3 the client completes as soon as it has sent its certificate and the server's rejection arrives later on an established connection, so the probe reported ready against an inbound that refused it. envoyproxy/envoy#48570, in the 1.41 snapshot proposal 045 moves to, makes TLS 1.3 the upstream default, so this has to land before that bump. The probe is now an HTTP/2 GET of MeshLivePath that the inbound answers itself: the liveness health_check filter is the first HTTP filter of the no-SNI h2 chain the probe's ALPN already selects, non-pass-through and with no cluster condition, so the application never takes part. A pass needs a response the inbound sends after accepting the connection; a rejection is a reset and fails the check, on both TLS versions. Kept: the probe's own transport socket (node SVID, SAN pin to the pod, no SNI, ALPN h2, max_session_keys 0), a fresh connection per check (now load-bearing: reuse_connection false), per-pod stats, and the 5 s cadence pins. Health-check requests stay out of the access log (notHealthCheckFilter) and the destination stats filter. Tests: - //agent/test/mtlspool TestInboundReadyProbe_RequiresTheInboundToAcceptTheNodeIdentity runs the inbound listener as the agent builds it and the probe clusters against it, with TLS forced to 1.2 or 1.3 and a node SVID the inbound's client SAN pin accepts or rejects. Red on the connect-only probe (tls13_rejected: membership_healthy=1), green now; a connect-only control under TLS 1.3 still reports the hole, so the harness discriminates. - validate-built-proxy.sh also runs it against the proxy a proxy PR builds, so #1733's CI exercises it on the 1.41 snapshot. - Unit: the HTTP check's path, codec and default status, and that the path is answered by the first filter of the probe's chain with no cluster condition. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx * fix(agent): the inbound-readiness probe passes on any HTTP status, so overload does not demote every local pod The inbound connection manager is not exempt from the overload manager: at heap >= 0.95 (stop_accepting_requests) it answers 503 before the health_check filter runs. With Envoy's default expected status (200) every local pod's probe would then fail and liveness.go would demote every serving pod on the node, the registry flap the health gateway's bypass_overload_manager exists to prevent. Any HTTP response proves the inbound accepted the node certificate, and a TLS 1.3 rejection is still a reset, so expected_statuses is now 200-599. - Live test: a second inbound whose liveness answer is a 503 (verified with a direct mTLS GET) stays ready for an accepted identity on TLS 1.2 and 1.3, and a rejected identity still fails against it. Without the status range the 503 cases fail (mutation run). The test also logs the probe-side ssl.* counters. - Runbook: measured, a TLS 1.3 rejection raises both ssl_handshake and ssl_connection_error on the probe cluster (TLS 1.2: connection_error only); the earlier 'no probe-side ssl_* counter' was wrong. - Comments: the CLIENT IDENTITY paragraph names the inbound's /ns/ SAN pin; envoy_validate's builders no longer call the probe TCP connect-only. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx * docs(agent): the readiness probe covers stop_accepting_requests, not stop_accepting_connections Any-status keeps pods ready under the chart's first overload stage (stop_accepting_requests, heap >= 0.95), where the inbound answers 503. Under the second (stop_accepting_connections, heap >= 0.98) the listeners stop accepting, the probe times out and every local pod is demoted, as with the connect-only probe before it. The code comment, the test comments and the runbook now say exactly that, and the runbook names the overload gauge to check when one node's probes all drop at once. No code change. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YacWmjoxWSZRJC38XYxuZx --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
tomjzzhang
pushed a commit
to envoyproxy/nighthawk
that referenced
this pull request
Nov 2, 2026
Update Envoy dependency to envoyproxy/envoy@24a950b (Nov 01, 2026). - Sync `ENVOY_COMMIT`, `bazel_dep` pins (`quiche`, `envoy_toolshed`), `.bazelrc`, and Python requirements. - Remove `-l:libatomic.a` from `linkopts` following Envoy's toolchain switch from `libgcc` to `compiler-rt` (envoyproxy/envoy#48641). - Update integration tests for Envoy's new upstream TLS 1.3 default max version (envoyproxy/envoy#48570). Signed-off-by: Jason Ye <[email protected]>
phlax
added a commit
to phlax/envoy
that referenced
this pull request
Nov 13, 2026
…voyproxy#48960) createUpstreamTlsContext built every fake upstream TLS context on server_factory_context_.serverScope(), a single unlocked mock IsolatedStoreImpl shared by all upstreams. ContextImpl creates ssl.ciphers.*, ssl.versions.*, ssl.curves.* and ssl.sigalgs.* lazily on the handshake, ie on each fake upstream dispatcher thread, so two TLS upstreams handshaking at once (AlpnIntegrationTest.Http1New: two connections, two upstreams) insert into the same flat_hash_map concurrently. The msan build hit absl's "constructed value does not match the lookup key" assertion in IsolatedStatsCache::get on a fake upstream listener connection. The xDS upstream already used a TestIsolatedStoreImpl for exactly this. Create it lazily (upstreamStatsScope()) and use it for every upstream server TLS context, including the ones alpn_selection and sds_dynamic build themselves, so creating the xDS upstream no longer replaces a store other upstreams reference. Backport note: v1.40 does not have the SslUpstreamClientCertRejectedIntegrationTest class (envoyproxy#48570), so its server TLS context change is dropped. Signed-off-by: Ryan Northey <[email protected]>
phlax
added a commit
that referenced
this pull request
Nov 17, 2026
…8960) createUpstreamTlsContext built every fake upstream TLS context on server_factory_context_.serverScope(), a single unlocked mock IsolatedStoreImpl shared by all upstreams. ContextImpl creates ssl.ciphers.*, ssl.versions.*, ssl.curves.* and ssl.sigalgs.* lazily on the handshake, ie on each fake upstream dispatcher thread, so two TLS upstreams handshaking at once (AlpnIntegrationTest.Http1New: two connections, two upstreams) insert into the same flat_hash_map concurrently. The msan build hit absl's "constructed value does not match the lookup key" assertion in IsolatedStatsCache::get on a fake upstream listener connection. The xDS upstream already used a TestIsolatedStoreImpl for exactly this. Create it lazily (upstreamStatsScope()) and use it for every upstream server TLS context, including the ones alpn_selection and sds_dynamic build themselves, so creating the xDS upstream no longer replaces a store other upstreams reference. Backport note: v1.40 does not have the SslUpstreamClientCertRejectedIntegrationTest class (#48570), so its server TLS context change is dropped. Signed-off-by: Ryan Northey <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Risk Level: Medium
Testing: added additional tests
Docs Changes: proto docs updated
Release Notes: added
Platform Specific Features:
Runtime guard: envoy.reloadable_features.default_client_tls_max_version_is_1_3
Fixes #9300
[Optional Deprecated:]
[Optional API Considerations:]