architecture: multi-site bootstrap is uncovered — Netbird management/signal open on the gateway's LAN nic only #329
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#329
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
docs/architecture/03-fleet-topology.md:48-60documents the bootstrap nuance: a peer must reach Netbird management beforewt0exists, so during enrolment management (8011) and signal (8012) are opened on the gateway's LAN-facing nic and tightened towt0afterwards. The port table (:44) records their exposure as "mesh interface only", and the reading notes state that from the public internet 8011/8012 answerconnection refused, proven from outside the fleet in spike #5.A node at a different physical site is not on the gateway's LAN. As documented, it has no path to management and therefore cannot bootstrap onto the mesh.
This matters because multi-site is a core case, not an edge one: the product is aimed at communities whose machines sit at homes, an office and a marae, and the fleet topology's own zone-spread guidance for backup targets ("different building or zone") assumes it.
Either:
Definition of done
Determine which, and correct the architecture doc or file the implementation gap. If remote bootstrap needs a public path to management/signal, that interacts with "the only deliberately public surface is Caddy on 80/443" and needs a ruling.
Found 2026-08-07 while scoping home-gateway reachability (dynamic address / automatic port opening / IPv6). Full trace in
docs/research/2026-08-07-home-gateway-reachability-scope.md.Verified:
docs/architecture/03-fleet-topology.mdconfirmed to document Netbird management (8011) and signal (8012) as "mesh interface only" exposure, and the bootstrap-nuance sequence diagram confirms both are opened on the gateway's LAN-facing nic during enrolment, tightened towt0afterward. The reading notes confirm "the only deliberately public surface is Caddy on 80/443." A node at a different physical site has no LAN path to the gateway and, per this documented sequence, no other path to management/signal either. Claim holds — this is either an undocumented remote-bootstrap path or a genuine gap; the doc as written doesn't resolve which.Routing to ready-for-human, not ready-for-agent: the ticket's own definition of done says this "needs a ruling" if remote bootstrap requires a public path to management/signal — and that's a security-posture decision, not an implementation detail. Opening 8011/8012 to the public internet contradicts the architecture's current "Caddy is the only deliberately public surface" stance (itself presumably a deliberate hardening choice), so widening it is a call about the fleet's threat model that needs to be made explicitly, not inferred from what's convenient to implement. It's also possible the resolution is "the spike only exercised same-LAN and remote bootstrap needs a different mechanism entirely" (e.g. relayed via coturn, or a bring-your-own-mesh-invite flow) rather than opening new public ports at all — which is itself a design question. Recommend: rule on whether multi-site remote bootstrap (a) needs a new public path (and if so, through what — direct expose, relay-mediated, or something else) or (b) uses an entirely different enrolment mechanism for the cross-site case, then this can be re-filed as either a doc correction or an agent brief for whichever mechanism is chosen. Related: #328 (the reachability gate doesn't probe mesh/relay ports at all today) is a separate, narrower ticket that doesn't require this ruling to proceed.
Ruled by Ben 2026-08-08 (decision sweep): investigate first. Attempt a genuinely remote-site enrolment in the lab and learn what path Netbird management/signal actually needs; the exposure ruling (public 8011/8012 vs never-public) waits for those facts rather than being pre-ruled. Lab work is session work →
no-triage.Backlog walk (Ben, 2026-08-12): promoted
ready-for-agent— determine doc-vs-reality (did spike #5 exercise only the same-LAN case?), then correctdocs/architecture/03-fleet-topology.mdor file the implementation gap. If remote bootstrap turns out to need a public management/signal path, STOP and flipready-for-human: that ruling is Ben's (it touches the only-deliberately-public-surface-is-Caddy invariant).Determination (doc-vs-reality) — done from the primary sources; no lab needed. Per Ben's 2026-08-12 promotion note ("determine doc-vs-reality — did spike #5 exercise only the same-LAN case?"):
Spike #5 exercised the LAN-nic bootstrap for SAME-LAN peers only. Its environment ran node1–3 as libvirt VMs on one droplet's
10.100.0.0/24(spike-findings/kanidm-netbird.md), and the Netbird module opens management(8011)/signal(8012) on that shared LAN nicens2— the address the enrolling peer dials beforewt0exists (spikes/kanidm-netbird/clan/modules/netbird.nix:168-176; the peer'sNB_MANAGEMENT_URLpoints at the gateway's LAN/mesh IP). Q5 testednode2→node1over the shared LAN/mesh andnode2→node3overwt0. No node off the gateway's LAN was ever enrolled. So the documented "bootstrap nuance" is proven for same-LAN peers only — the ticket's first branch ("the spike only exercised the same-LAN case and the documented sequence is incomplete") is the correct reading.Is it also a real gap? Yes. A node at a different physical site has only three possible paths to management/signal at bootstrap, and at bootstrap two are unavailable:
connection refused);wt0— does not exist yet (the chicken-and-egg the LAN nic exists to break).coturn does not help: it relays the WireGuard data plane after enrolment, once a peer has already reached management/signal to learn about it. So remote-site enrolment genuinely needs a non-LAN path to management/signal.
This is Ben's ruling (STOP →
ready-for-human), per the 2026-08-12 note. Every option for that non-LAN path touches the "only deliberately public surface is Caddy on 80/443" invariant:${domain}:443by default, which OurCloud deliberately overrode to plaintext mesh ports); keeps one public port but makes management/signal publicly reachable through it;What I did: annotated
docs/architecture/03-fleet-topology.md(a Proven scope note after the bootstrap sequence + the reading-notes bullet) to record the same-LAN-only proven scope and this open gap — mechanism-neutral, no ruling made — and logged it in STATUS.md (⏸ Blocked on Ben #8). Commitb715c49.To re-arm: rule which mechanism (a/b/c/d); this then re-files as a doc correction (if none-public) or an agent brief for the chosen path. Related: #332 (IPv6 leg — the multi-site mesh escape hatch) and #328 (reachability gate doesn't probe mesh/relay ports).
Relabelled
ready-for-agentunder ADR 0174: the definition of done is an investigation (was the spike same-LAN-only, or is remote-site enrolment genuinely broken?) plus a doc correction or gap ticket — no ruling is needed to start. The boundary stands: if the answer requires opening management/signal publicly, that is a security-posture widening = one-way door, and it returnsready-for-humanfor Ben's ruling.Closing under ADR 0174. The DoD is an investigation + a doc correction OR gap ticket, with no ruling needed to start (Ben, 2026-08-14 re-arm).
wt0not yet up).b715c49):docs/architecture/03-fleet-topology.mdrecords the proven same-LAN-only scope and the open gap.ready-for-human). Its answer is mechanism-neutral — relay-mediated and none-public options need no public reach — so the investigation did not trip the one-way-door STOP. The public-vs-never-public mechanism ruling (a: public 8011/8012 · b: Caddy-proxied 443 · c: relay/invite · d: none-public) migrates to #543, where that call belongs.STATUS.md updated (
f4e1056): Blocked-on-Ben #8 marked resolved, pointing to #543.close-report for #329 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope
Note from run 6335 (a concurrent claim on this ticket): #329 was already closed on main by a parallel worker who filed the implementation gap as #543 and updated STATUS.md. My run reached the same determination independently and had filed a duplicate gap ticket (#544) — now closed as a duplicate of #543. My only surviving contribution landed as
f098bd2: the parallel close leftdocs/architecture/03-fleet-topology.md's forward-looking open-gap references pointing at the now-closed investigation (#329), so I re-pointed them to the canonical live tracker #543 (origin: #329). No further action needed here — the mechanism ruling lives on #543.