Repository navigation
fix(xds): TCP-floor SAN pin must use the bare SA name (020 regression) - #464
Merged
Merged
Conversation
The TCP-floor egress clusters pinned the upstream peer SAN as spiffe://<td>/ns/<ns>/sa/<entry.service> — but entry.service has been the namespace-qualified "<ns>/<svc>" key since 020 Part 1, producing sa/aether-test/tcp-echo, which never matches an SVID. Every TCP-floor mTLS handshake failed fail_verify_san (observed on talos with the first real TCP service; the floor was never TCP-exercised post-020 so the cutover missed these two spots — the HTTP cluster path was fixed, capture.go's node-proxy + edge TCP variants were not). Fix: parse the bare ServiceAccount name via serviceref.ParseKey (mirrors cluster.go). Regression test asserts the exact pinned SAN on the tcp: cluster's per-source transport sockets. Found validating issue #460 (TCP-over-mTLS floor e2e). Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S
This was referenced Sep 20, 2026
bpalermo
added a commit
that referenced
this pull request
Sep 20, 2026
… (#879) Adds e2e/l4routes.sh, the e2e/l4echo test backend, and a hard-gated `l4-routes` job in the nightly e2e workflow. Proposal 018 Phase 3b has had no end-to-end coverage at all: #492 (an explicit backendRef weight:0 normalised to 1, so "drain" meant "equal share") shipped and was found by hand, and no upstream conformance profile can express a Service-parented mesh L4 route. The TCPRoute leg only; TLSRoute and UDPRoute follow as separate PRs. Assertions, all against a real data path (kind + the real chart + the real aether-proxy + the CNI's transparent capture): T1.0 control no TCPRoute -> 20/20 probes reach the FLOOR T1.1 split 75/25 over 200 probes -> a justified band, never `floor` T1.2 drain weight 0 is DRAIN, asserted EXACTLY and in BOTH directions T1.3 all drained every weight 0 -> back to the FLOOR T1.4 delete no TCPRoute again -> back to the FLOOR T1.0/T1.3/T1.4 are permanent built-in negative controls, not setup: the same probe must produce a different NAMED answer in each state, so the suite re-demonstrates its own discriminating power on every run rather than once at review time (the #853 trap). The T1.1 band is derived, not guessed — the sampling maths is in the script next to the numbers. Seen RED by reverting the #492 hunk and rebuilding the agent image: T1.2a went red with "bravo took 1/200 connections at weight 0", and T1.3's state measured alpha=19 bravo=31 of 50 instead of 50 floor — the ~50/50 the original bug report describes. Reverting the revert returns the suite to green. Two preconditions the harness had to discover the hard way, both filed as their own issues and both documented in the script header: * SPIRE must be ON (#877). With --spire-enabled=false captureTCPClusters() publishes no "tcp:" clusters (no node SVID) and the cleartext inbound listener has no TCP floor chain, so an L4 suite copied from uds.sh tests nothing. Paying for SPIRE also buys coverage of the "tcp:" cluster's server SAN pin — the shape of #464. * The registry backend must be etcd (#878). The chart-default kubernetes backend returns nothing for PROTOCOL_TCP by design, so a pod annotated endpoint.aether.io/protocol: tcp is silently classified http and no TCP floor chain exists for a route to replace. No chart change, so no Chart.yaml bump: agent RBAC already covers tcproutes and L4 routing has had no values gate since proposal 031. Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr Co-authored-by: Claude Opus 5 <[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.
The TCP-floor egress clusters pinned
sa/<entry.service>— butentry.serviceis the namespace-qualified<ns>/<svc>key since 020, producingsa/aether-test/tcp-echo, which never matches an SVID → every TCP-floor mTLS handshake failedfail_verify_san(proven on talos: 3/3 attempts,envoy_cluster_ssl_fail_verify_san_total= attempts, inbound ssl errors matched). The 020 cutover fixed the HTTP cluster SAN path but missed capture.go's two TCP spots; the floor was never TCP-exercised post-020 (no TCP fixture until the #460 e2e).Fix mirrors cluster.go (
serviceref.ParseKey→ bare SA name), both node-proxy + edge TCP variants. Regression test asserts the exact pinned SAN. Found validating #460.