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 do_request dials any client-named u16 port with no services_map membership check #13464
Site:pkgs/fleet/crates/fleet-proxy/src/serve.rsdo_request (~line 716) and open_conn (~585-593). The requested port is taken from the client-declared value and dialed without checking it against the services_map (the advertised table in fleet-config/src/lib.rs ~1359-1373 covers 4801/4800/4799/21118).
Why it matters: the client CLI --service-port (client.rs ~337-354, ~461) is a non-table consumer, so a membership check needs a decision on #6582 before it lands. Until then any authenticated client can make the proxy dial any local port.
Ask: decide whether unadvertised ports are refused at do_request, or explicitly allowed with a recorded reason; then enforce it with a test (pins: parse_request_refuses_present_but_invalid_ports, serve.rs:2182).
🤖 Agent note · triaged and enforced — lane oc-code-08, task 21379
Decision: explicitly ALLOW any frame-valid u16 port at do_request, with the reason recorded in code (serve.rs dial_port, PR #13475). No services_map membership check at the dial site.
From do_request's actual consumers (per #6583 (a)), not assumption:
The broker's own keepalive dials Some(PORT_LAPTOP_AGENT) (serve.rs:1227, table port) — unaffected either way.
Hand-written frames by token holders ride the same path as --service-port; no distinct consumer there.
Coordination with #6582: the validate-where-you-read contract holds without a membership dimension — the port's type+range validation already happens at the frame boundary (parse_port, #6516, pinned by parse_request_refuses_present_but_invalid_ports), the dial stays token-gated. The sensitive pinned path (raw_splice, serve.rs:1148-1170) shows what a pinned+membership-checked shape looks like; the general dial path stays general. Residual risk recorded in code: an unadvertised port receiving an arbitrary body is only as constrained as the service behind it (#6583 (b)).
Enforcement:dial_port() + dial_port_passes_any_frame_valid_port_through (absent→4799, table passthrough, 8080/65535 verbatim; a future refusal must change this test). fleet-proxy lib suite: 114 passed, 0 failed.
Activity
developing-today commentedon Nov 23, 2026
CODE-4907
fleet-proxy: pin explicit-allow for unadvertised dial ports (#13464)
dezren39 commentedon Nov 23, 2026
🤖 Agent note · triaged and enforced — lane oc-code-08, task 21379
Decision: explicitly ALLOW any frame-valid u16 port at do_request, with the reason recorded in code (serve.rs
dial_port, PR #13475). Noservices_mapmembership check at the dial site.From do_request's actual consumers (per #6583 (a)), not assumption:
fleet proxy connect --request … --service-port N→Request.port(client.rs:337-354, :461), deliberately typedOption<u16>; its own test pins--service-port 8080(non-table). A membership refusal would break that deliberate consumer — the reason Phase 4 of #6582 — closing read-site inventory: disposition every frame/peer value read in fleet-proxy + fleet-dispatch against the validated-and-bounded contract #6583 filed this instead of forcing a check.Some(PORT_LAPTOP_AGENT)(serve.rs:1227, table port) — unaffected either way.Coordination with #6582: the validate-where-you-read contract holds without a membership dimension — the port's type+range validation already happens at the frame boundary (
parse_port, #6516, pinned byparse_request_refuses_present_but_invalid_ports), the dial stays token-gated. The sensitive pinned path (raw_splice, serve.rs:1148-1170) shows what a pinned+membership-checked shape looks like; the general dial path stays general. Residual risk recorded in code: an unadvertised port receiving an arbitrary body is only as constrained as the service behind it (#6583 (b)).Enforcement:
dial_port()+dial_port_passes_any_frame_valid_port_through(absent→4799, table passthrough, 8080/65535 verbatim; a future refusal must change this test). fleet-proxy lib suite: 114 passed, 0 failed.