Repository navigation
feat(agent): node-level CONNECT-terminating listener (R2 PR 3/6) - #85
Merged
Merged
Conversation
Round 2 (PR 3/6): add the node-level CONNECT listener that receives HBONE-style mTLS tunnels from peer node proxies and routes each by its :authority (the destination pod's IP) to that pod's app cluster, delivering the decrypted stream to the pod's application on loopback. A non-tunneled GET on /-/-/node/live is answered locally with 200 for peer reachability health checks. The listener is additive — node-level on host port 15008, separate from the per-pod R1 inbound listeners on 18080 — so the tunnel data path is introduced without disturbing the live mesh. Its downstream mTLS presents the node identity (PR 2) and validates the caller's workload SVID; the verified client pod is exposed to the application via XFCC (SANITIZE_SET + URI). The SPIRE bridge notifies the cache of the node SPIFFE ID once the node SVID is served (NodeIdentitySink); until then the listener is omitted. The route table is rebuilt from the cached local pods on every pod add/remove. Co-Authored-By: Claude Opus 4.8 <[email protected]>
bpalermo
force-pushed
the
feat/r2-dest-connect-listener
branch
from
June 8, 2026 14:56
673ec34 to
34ac3de
Compare
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.
Stack
What
Adds the node-level CONNECT-terminating listener — the R2 tunnel ingress. Peer node proxies open an mTLS HTTP/2 CONNECT tunnel to it; it routes each tunnel by
:authority(the destination pod's IP) to that pod'sapp_<pod>cluster, delivering the decrypted stream to the app on loopback. A non-tunneledGET /-/-/node/liveis answered locally with 200 for peer reachability health checks.Safety: additive
18080. The live mesh is undisturbed; clients are flipped over in PR 4.SANITIZE_SET+ URI) — matching the identity model proven in the spike (dest sees the client pod, not the node).Wiring
NodeIdentitySinkonce the node SVID is served; until then the listener is omitted.Tests
New
connectlistenertests (CONNECT routing, per-pod IP→app-cluster, node-live, mTLS, no-identity → nil); full agent suite (12/12) passes.🤖 Generated with Claude Code