You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fleet proxy: colocated port-to-socket UDS dialing in direct mode (from #5699) #6219
Implementation follow-up from the design decision on #5699 (adopted 2026-11-05, task 10135 triage).
Scope
Proxy colocated UDS dialing: when fleet proxy serve runs on the laptop itself (proxy_direct() mode, crates/fleet-config/src/lib.rs:311-314), add a port -> socket-path resolution beside Config::services() so open_conn (crates/fleet-proxy/src/serve.rs:258-271) dials the role's Unix socket when the target is local and the socket answers, instead of TCP.
The hello/services map stays port-keyed — it is the negotiated wire contract. The socket is a local dialing detail of the colocated proxy, never advertised. The remote (sandbox proxy) path is unchanged: it still tunnels TCP to target_host:port.
Acceptance
Colocated proxy reaches a dual-bound broker over UDS; falls back to TCP when no socket answers.
Hello/services contract byte-identical to before.
Acceptance criteria
In direct mode, a colocated fleet-proxy port dials the role's Unix socket instead of TCP loopback.
Non-colocated and non-socket cases keep the current TCP behavior, selected without configuration changes.
Tests cover colocated UDS dialing and the TCP fallback.
Risks: Risk: dialing the wrong socket would break local fleet clients; fallback must be automatic, not configured.
Suggested approach: Approach: implement beside the existing dial path in the fleet proxy client, with the probe result deciding; keep TCP as the default on any doubt.
🤖 Agent note · filed
Agent: fleet monitor
Session / ID: repo-fleet-monitor run 2026-11-05T15:33:58Z
Found via: monitor reconciliation (Duty 2 intake enrichment)
Task: Intake pass per protocol §5: verified live, acceptance criteria appended, labels normalized, related PRs linked above.
Expectation: branch queue/11385-6219-uds-dial in worktree ~/git/fleet/queue-11385-6219; PR opened and merged under standing criteria, or a park/block naming the blocker.
What landed: fleet-config gained port-to-socket resolution beside Config::services() (service_socket, service_transport_choice, probe-free service_socket_resolution); fleet-proxy HttpConn generalized over TCP/Unix (ConnStream); open_conn_raw in direct mode dials the colocated broker role's Unix socket — bounded by TRANSPORT_DEADLINE, TCP fallback in the same attempt — with the tunnel path and the hello/services wire contract unchanged.
Codex: one P2 finding (unbounded probe/dial) fixed in 28f1625 and replied on its thread (comment 4532822541).
Tests:cargo test -p fleet-config -p fleet-proxy on the laptop — 38 + 80 + 14 passed, including new service_socket_resolves_broker_ports_only and unix_socket_round_trips_and_stays_reusable.
Activity
developing-today commentedon Nov 5, 2026
CODE-1818
dezren39 commentedon Nov 5, 2026
Intake review
🤖 Agent note · filed
dezren39 commentedon Nov 6, 2026
🤖 Agent note · picked up
46 remaining items
dezren39 commentedon Nov 11, 2026
🤖 Agent note · picked up
fleet-proxy: bound the colocated UDS dial by the transport deadline (#…
Merge pull request #8388 from developing-today/queue/11385-6219-uds-dial
dezren39 commentedon Nov 11, 2026
🤖 Agent note · done
Config::services()(service_socket,service_transport_choice, probe-freeservice_socket_resolution); fleet-proxyHttpConngeneralized over TCP/Unix (ConnStream);open_conn_rawin direct mode dials the colocated broker role's Unix socket — bounded byTRANSPORT_DEADLINE, TCP fallback in the same attempt — with the tunnel path and the hello/services wire contract unchanged.cargo test -p fleet-config -p fleet-proxyon the laptop — 38 + 80 + 14 passed, including newservice_socket_resolves_broker_ports_onlyandunix_socket_round_trips_and_stays_reusable.