Repository navigation
fix: a lane on a node forwards its TCP ports only, and says which UDP ports are not forwarded - #217
Merged
Merged
Conversation
… ports are not forwarded (#192) devstack forwards TCP only. For a lane on a node, the node listed every published port of a started service whatever its protocol, and the requester then listened on a UDP port's number as TCP. - The node leaves non-TCP ports out of the ports the requester forwards. - The lane daemon's file keys a port with its protocol (`5432` for TCP, as before; `53/udp` for another), so a service's 53/tcp and 53/udp are two entries. The lane daemon forwards and tunnels TCP entries only. - ContainerView and LaneView gain `not_forwarded` (`["5353/udp"]`): the lane's page, its container rows and `devstack lane list` say "UDP port 5353 is not forwarded to this machine". - docs/pool.md, docs/dashboard-api.md and the devstack skill note the limitation. Short-term part of #192; the UDP relay stays open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 22, 2026
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.
Short-term part of #192 (the UDP relay stays open; this does not close the issue).
devstack forwards TCP only. For a lane on a node, the node listed every published port of a started service whatever its protocol (
initial_infra), and the requester listened on a UDP port's number as TCP (forward_port). A service publishing53/tcpand53/udpkept only one of the two.What changes
devstack-node/src/lanerun.rs):infra_ports, what the requester forwards, holds TCP ports only. The lane daemon's file keysportsandpublishedwith the protocol:5432for TCP (as every agent wrote it),53/udpfor another, so53/tcpand53/udpstay two entries.external.rs,supervisor/infra.rs):PortKeyreads5432,5432/tcpand53/udp. Loopback forwards, the node tunnel (infra_tunnel) and the container's links use TCP entries only; a UDP port shows as5453/udp->dns:53and is listed in the newContainerView.not_forwarded(["5453/udp"]). In the(group, service, port)address cache a port's TCP entry wins.remote.rs,lanes.rs):follow_statecollects the containers'not_forwardedfrom the lane's/v1/stack(read as JSON, as before) intoLaneView.not_forwarded; a change re-announces the lanes.devstack lane listprints! <lane>: UDP port 5353 is not forwarded to this machine (devstack forwards TCP only).docs/pool.md(where forwarding of remote lanes is described),docs/dashboard-api.md(ContainerView.not_forwarded,LaneView.not_forwarded, andnode_warningadded to the/v1/lanesfield list where it was missing), thedevstackskill.Compatibility (ADR-0031 point 8)
LaneState.infra_portsis stillVec<u16>, only without UDP ports. An older requester simply no longer listens on a UDP port's number as TCP.skip_serializing_ifempty; the requester reads them as JSON, so an older lane daemon (or node) just does not say, and an older requester ignores them. The UI treats them as optional.linux_binary, one per version); the 5 s refresh copies the agent's base, so an older daemon never reads a newer agent's keys. TCP keys stay bare numbers anyway, so only a file with a non-TCP port would differ, and a new daemon reads an older agent's file (bare numbers) as before.infra_ports; a newer requester cannot tell them apart and still forwards them as TCP until the node is updated.Tests
cargo fmt --all,cargo clippy --workspace --all-targets -- -D warnings: clean (Windows).cargo test -p devstack-daemon --lib(122),-p devstack-node --lib(70),-p devstack --bin devstack(47),-p devstack-skills: pass. New:a_udp_port_is_listed_with_its_protocol_and_not_forwarded(node),a_port_of_another_protocol_is_its_own_and_not_forwarded(lane file),a_lanes_ports_not_forwarded_are_listed_once_in_order(requester),a_lanes_ports_not_forwarded_are_said(CLI).ui:npm run typecheck,npm test(64) pass; newnotForwardedTexttest.crates/devstack-node/tests/lanerun.rs, opt-in).🤖 Generated with Claude Code