Repository navigation
test(mtlspool): HTTP/3 selection arm — each source's own identity over QUIC (038 PR 7b) - #958
Merged
Merged
Conversation
…ient hostname check vs URI-only SVIDs) Adds the quic-go v0.63.0 http3 destination (RequireAndVerifyClientCert, identity read from r.TLS.PeerCertificates), the per-source quic: twins built with QUICClusterFrom, and source listeners whose routes select via ApplyQUICClusterSelection. With the mesh's port-as-SNI the handshake fails at the pinned proxy: Cert chain verification failed: Leaf certificate doesn't match hostname: 18008 (envoy_quic_proof_verifier.cc verifyLeafCertMatchesHostname, DNS SANs only). With DNS SANs on the destination leaf and SNI <port>.<fqdn> both tests pass: each source's identity verified over HTTP/3, and the swapped-arms negative control shows the swap. WIP: the final SNI shape and the SVID DNS-SAN decision are #957's; not to merge before it. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
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.
PR 7b of proposal 038, after #956. Test-only: the
//test/mtlspoolHTTP/3 arm.What
test/mtlspool/quic_selection_test.go: a quic-go v0.63.0http3.ServerwithRequireAndVerifyClientCertstands in for the destination; it reports the verified peer's URI SAN / serial / QUIC connection ID / protocol per request. Envoy (the pinned proxy) runs the real per-sourcequic:twins built byproxy.QUICClusterFromand a source listener with the identity stamp +ApplyQUICClusterSelection— exactly what the agent programs.TestQUICSelectionPresentsEachSourceIdentity: requests from source A and source B are each verified with their own SVID over HTTP/3.0, and never share a QUIC connection.TestQUICSelectionArmsAreLoadBearing(the negative control): swap the two arms and the destination sees B's requests arriving as A — the Source SPIFFE ID is not in the upstream pool key: pooled connections carry a foreign client identity into XFCC #831 shape, failing open — so the selection plugin is what carries identity, not the pool partition.proxy.QUICServerName(port, fqdn)— the production shape — and the harness leaf carries the two DNS SANs (<fqdn>,*.<fqdn>) the workloads' ClusterSPIFFEID issues. This arm is what found the QUIC client hostname check (038 Phase 4b blocker: Envoy's QUIC client requires the server leaf's DNS SAN to match the SNI hostname — SVIDs have only URI SANs, the mesh's SNI is the port #957) and proved the workaround feat(038): east-west QUIC outbound — per-source quic: clusters selected by the source identity (Phase 4b) #956 ships.go.mod/MODULE.bazel:github.com/quic-go/quic-go v0.63.0(+qpackindirect) as a test-only dependency (bazel run @rules_go//go -- get,make tidy).Red-then-green: both tests were red (503,
QUIC_TLS_CERTIFICATE_UNKNOWN) with the bare-port SNI; the swapped-arms control fails with the identity mismatch message when the arms are swapped.🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr