Skip to content

test(mtlspool): aether#957 path-A validation — URI-only SVID + SNI "18008" handshakes once envoy#47740 is in the pin - #973

Merged
bpalermo merged 2 commits into
mainfrom
test/mtlspool-quic-path-a
Sep 27, 2026
Merged

bpalermo merged 2 commits into
mainfrom
test/mtlspool-quic-path-a

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

The real-world verification for envoyproxy/envoy#47740, run against the actual aether-proxy binary the harness lifts from the chart's pinned image. Draft until the chart pin carries #972's image — on today's binary the positive test is red by design (that IS its red state).

Tests (test/mtlspool/quic_path_a_test.go; the harness gained a quicOptions struct, the existing two QUIC tests run byte-identical config)

test config today's pin (no fix) after #972's image
TestQUICPathAHandshakesWithoutDNSSANs URI-only X.509-SVID on the destination, twin SNI "18008", match_typed_subject_alt_names == destination SPIFFE ID, guard default FAIL: 503 local connection failure; log Cert chain verification failed: Leaf certificate doesn't match hostname: 18008 + pool QUIC_TLS_CERTIFICATE_UNKNOWN … CERTIFICATE_VERIFY_FAILED expected 200 over HTTP/3.0 with each caller's own SPIFFE ID, no hostname message, no QUIC_TLS_CERTIFICATE_UNKNOWN
TestQUICPathAWrongSANStillFails same, pin = a wrong SPIFFE ID PASS: verify cert failed: SAN matcher, certificate SANs are [127.0.0.1, spiffe://…/sa/echo], 503s, no hostname message (the validator runs before the hostname check) PASS — the identity check is still enforced
TestQUICPathAGuardOffRestoresHostnameCheck correct pin, LayeredRuntime static layer envoy.reloadable_features.quic_hostname_check_deferred_to_explicit_san_match: false PASS (the check is unconditional today; the guard is not registered) PASS — the guard really brings the check back (only provable on the new binary)
TestQUICTwinsLeaveAutoSNIOff unit, both twin shapes, both sources PASS PASS — no auto_host_sni/auto_sni_san_validation on the TLS context, no auto_sni/auto_san_validation on the protocol options; the pin is present in match_typed_subject_alt_names

Log level needed: --component-log-level quic:info,pool:debug (both verify messages come from quiche's tls_handshaker.cc; QUIC_TLS_CERTIFICATE_UNKNOWN only at pool:debug). The SAN-mismatch string is "verify cert failed: SAN matcher" from source/common/tls/cert_validator/default_validator.cc at the pin.

Production is unaffected: aether keeps the <port>.<fqdn> SNI and the DNS SANs.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Parameterise the QUIC harness (quicOptions on startDestinationH3With,
quicTwinWith, startEnvoyQUICWith; the existing entry points delegate with
defaultQUICOptions, so the two selection tests run byte-identical config)
and add the path-A tests for envoyproxy/envoy#47740 (carried by #972):

- TestQUICPathAHandshakesWithoutDNSSANs: URI-only SVID, SNI "18008",
  correct pin -> 200 over HTTP/3 with each caller's identity, no hostname
  / QUIC_TLS_CERTIFICATE_UNKNOWN in the log. RED on the current pin
  (503, "Leaf certificate doesn't match hostname: 18008"); green once the
  chart pins an image with #47740.
- TestQUICPathAWrongSANStillFails: wrong pin -> fails on
  "verify cert failed: SAN matcher", never on the hostname. Green on both
  binaries (the validator runs before the hostname check).
- TestQUICPathAGuardOffRestoresHostnameCheck: runtime guard false ->
  hostname failure returns (anti-vacuity control; green on both).
- TestQUICTwinsLeaveAutoSNIOff: no twin sets auto_host_sni /
  auto_sni_san_validation / auto_sni / auto_san_validation, and the SAN
  pin is present as match_typed_subject_alt_names.

Envoy runs with --component-log-level quic:info,pool:debug for these:
the handshake failure detail is [info][quic], the pool failure code is
[debug][pool].

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit de6f46d into main Sep 27, 2026
24 checks passed
@bpalermo
bpalermo deleted the test/mtlspool-quic-path-a branch September 27, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant