Repository navigation
Record --interface as ROADMAP item 25, gated on a sendspin-cpp bind address - #39
Merged
chrisuthe merged 1 commit intoAug 28, 2026
Conversation
…ddress The flag cannot be built against the pinned library: the listener is constructed with a literal "0.0.0.0" and SendspinClientConfig carries no bind-address field. Item 25 settles the design and the evidence so neither has to be re-derived when upstream moves. It corrects two parity claims commonly made about the Python CLI, both checked against the pinned aiosendspin 6.0.1: its --interface is address-valued rather than an interface name, and it does not scope the mDNS advertisement to that address -- what it scopes locally is the browse. The flag is settled as --interface <name-or-address>, validated in the two stages item 24 established: shape at parse time, resolution at startup, since an interface name depends on live host state.
chrisuthe
marked this pull request as ready for review
August 28, 2026 16:30
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.
Docs-only. Evaluates the
--interfacerequest and records the outcome as ROADMAP item 25 rather than shipping a half of it.The flag cannot be built against the pinned library. At v0.7.2 — the newest tag — the listener is constructed with a literal
"0.0.0.0"insrc/host/ws_server.cpp, andSendspinClientConfigcarriesserver_portandserver_max_connectionsand nothing else about the socket.SendspinWsServerexposes only connection callbacks, so there is no seam the CLI can reach around it. The item is gated on aSENDSPIN_GIT_TAGbump, the same treatment item 17 gets.Why it is worth recording rather than deferring. The pinned library has no inbound authentication at all — no PSK, no pairing gate, and no
activities/server/activate— so reachability is authorization, and a bind address would be the only such control the player itself offers. Kept in proportion: NAT covers most installs, the real cases are multi-homed hosts, VPSes, tunnels and untrusted VLANs, and a host firewall is named as the working mitigation today.Two parity corrections, verified. The Python CLI's
--interfaceis address-valued, not an interface name (sendspin/cli.py:475,daemon/daemon.py:212), and it does not scope the mDNS advertisement to that address —ClientListener._start_mdns()builds a bareAsyncZeroconf()and takes its address fromget_local_ip(), an8.8.8.8route lookup. Checked ataiosendspin6.0.1, the versionsendspin-python-clipins, and unchanged at 9.1.0. What Python scopes locally is the browse (sendspin/discovery.py:150), which is the outbound path.The flag, settled.
--interface <name-or-address>(config keyinterface, long-only) — a deliberate superset of Python's address-only flag, because the bind needs an address whileDNSServiceRegisterneeds an index, and a name is what an operator on a Pi knows. Validated in the two stages item 24 established: shape at parse time so a config file is checked without touching the host, resolution at startup where the interfaces are real — sointerface = eth0on a Pi that has not got its lease yet fails where a device failure is reported, not from inside the parser.The item also records why the mDNS half is not shippable alone: scoping the advertisement while the socket still listens on
0.0.0.0is a discovery-correctness fix, not access control, and must not ship wearing this flag's name.Closes #36
Testing
ctest: 399/401. The two failures (ParseOptions.ARelativeControlSocketIsMadeAbsoluteUnderZ,ConfigMerge.AConfiguredControlSocketIsAbsolutizedUnderDaemonize) are the 103-bytesun_pathlimit against this worktree's long path — the error text names 104 and 108 bytes — and both pass when the same binary runs from a shorter cwd. The diff touchesdocs/ROADMAP.mdonly, so no test is affected.