Repository navigation
fleet-proxy: CONNECT-UDP client shim + standalone endpoint bins (#6109) - #6122
Merged
Merged
Conversation
The spike follow-through, still dark: * udp_forward: the client shim the #6109 design note named -- plain local UDP in, one CONNECT-UDP session per (listen port, peer) out via UdpProxyClient, replies unwrapped back. Port sets (--ports 47998-48010, the Moonlight shape, port-preserving) and explicit --map rules; sessions lazy, idle out at the relay horizon, replaced when dead. * bin fleet-udp-forward: the shim's CLI. Nothing starts it unless a host deliberately does. * bin fleet-connect-udp: the endpoint standalone (connect_udp::run), for hosts where the session broker does not run -- the laptop serves fleet roles as fleet serve <role> units. Refuses to start unless the loaded fleet config opts in ([proxy] connect_udp); binds connect_udp_listen (default loopback). * Both bins are required-features=[serve] so the connect-only variant keeps its mechanical incapability. No service wiring, no config changes, no consumer: the #5924 tailnet-direct streaming verdict stands until a cutover is called.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 23 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 5, 2026
Closed
4 of 5 tasks
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.
Follow-through on the #6109 CONNECT-UDP spike — the two pieces its design note named as remaining work, built dark:
Client shim (
udp_forward+fleet-udp-forward) — plain local UDP in, one CONNECT-UDP session per (listen port, peer) out throughUdpProxyClient, replies unwrapped back to the peer. Port sets (--ports 47998-48010, the Moonlight shape, port-preserving) and explicit--map lport=host:rportrules. Sessions open lazily on a peer's first datagram, idle out at the relay's 120 s horizon, and are replaced when dead.Standalone endpoint (
fleet-connect-udp) —connect_udp::runas its own process, for hosts where the session broker doesn't run. Finding behind it: the laptop has no standingfleet proxy serve(its broker socket + 1 h idle exit make it the wrong standing vehicle anyway) — the laptop's fleet roles arefleet serve secrets-broker|queue-brokerNix units. The bin refuses to start unless the fleet config it loads opts in ([proxy] connect_udp = true), and bindsconnect_udp_listen(default loopback).Both bins are
required-features = ["serve"], so the connect-only variant keeps its mechanical incapability (verified:cargo check -p fleet-proxy --no-default-features).Tests: 45/45 in fleet-proxy (42 existing = the broker regression proof, +3 new: port-set parsing, map parsing, and an in-process forward round trip through a real endpoint + echo).
Dark posture: no service wiring in this PR, no config changes, no consumer. The laptop deployment (hand-installed loopback unit behind a dedicated config file — the shared
fleet.tomldeliberately untouched, since pre-#6114 fleet-config parsers deny unknown keys and the running brokers must never seeconnect_udpkeys before their binary catches up) is staged by hand and reported on #6109. Streaming stays tailnet-direct per #5924 until a cutover is called.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.