architecture: choose the non-LAN mesh-enrolment mechanism for cross-site nodes (management/signal bootstrap gap) #544

Closed
opened 2026-08-14 19:36:50 +00:00 by ben · 1 comment
Owner

Filed by the #329 investigation (see that ticket's determination comment). #329 was the doc-vs-reality investigation and its doc correction — both done and merged (b715c49, docs/architecture/03-fleet-topology.md Proven scope note). This ticket carries the implementation gap that investigation surfaced, so #329 can close.

Symptom

Remote-site (cross-site) mesh enrolment has no bootstrap path. Spike #5 proved the LAN-nic bootstrap sequence for same-LAN peers only (node1–3 were libvirt VMs sharing one droplet's 10.100.0.0/24; the Netbird module opens management(8011)/signal(8012) on that shared LAN nic ens2). A node at a different physical site has none of the three possible bootstrap paths to management/signal:

  • public internet — refused (only Caddy's 80/443 answer);
  • the gateway's LAN — unreachable (the remote node isn't on it);
  • the mesh 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. So remote-site enrolment genuinely needs a non-LAN path to management/signal.

This matters because multi-site is a core case (homes + office + marae), and the fleet topology's own zone-spread guidance for backup targets assumes it.

Mechanism options

  • (a) open 8011/8012 publicly — new public ports; contradicts the "only deliberately public surface is Caddy on 80/443" invariant directly. One-way door (ADR 0174 — security-posture widening; explicitly "the #329-class ruling").
  • (b) reverse-proxy management/signal through Caddy on 443 — Netbird's default deployment (OurCloud deliberately overrode it to plaintext mesh ports); keeps one public port but makes management/signal publicly reachable through it. One-way door.
  • (c) relay/invite mechanism — a different enrolment flow for the cross-site case (e.g. bring-your-own-mesh-invite), avoiding any new public reach at the cost of a new flow. Two-way door.
  • (d) none-public / defer — rule cross-site mesh out of scope for v1; the intended multi-site path is IPv6 (#332, ADR 0026), which gives remote nodes a globally-routable address with no NAT. Two-way door.

Why human

One-way-door ruling (ADR 0174 §3). Options (a) and (b) are security-posture widenings — a new deliberately-public surface — which ADR 0174 names explicitly as one-way doors ("the #329-class ruling") that stop on Ben. The mechanism selection cannot be made by a session because two of its four live options cross that boundary.

Proposed default ruling (ADR 0174 §4)

(d) none-public — defer cross-site mesh enrolment to v-next, with IPv6 (#332) as the intended multi-site path. This is the only default that touches no one-way door: it opens no new public surface, aligns with ADR 0026, and matches the existing "IPv6 is the multi-site mesh escape hatch" framing. Adopt this unless Ben rules for a public path (a/b) or wants the relay/invite flow (c) built now. Whichever lands, re-point docs/architecture/03-fleet-topology.md's open-gap note accordingly.

  • #329 — the origin investigation + doc correction (closing).
  • #332 — IPv6 leg (the multi-site mesh escape hatch); the (d) default leans on it.
  • #328 — the reachability gate doesn't probe mesh/relay ports today (narrower, independent).
Filed by the #329 investigation (see that ticket's determination comment). #329 was the *doc-vs-reality* investigation and its doc correction — both done and merged (`b715c49`, `docs/architecture/03-fleet-topology.md` *Proven scope* note). This ticket carries the **implementation gap** that investigation surfaced, so #329 can close. ## Symptom Remote-site (cross-site) mesh enrolment has **no bootstrap path**. Spike #5 proved the LAN-nic bootstrap sequence for **same-LAN peers only** (node1–3 were libvirt VMs sharing one droplet's `10.100.0.0/24`; the Netbird module opens management(8011)/signal(8012) on that shared LAN nic `ens2`). A node at a **different physical site** has none of the three possible bootstrap paths to management/signal: - public internet — **refused** (only Caddy's 80/443 answer); - the gateway's LAN — **unreachable** (the remote node isn't on it); - the mesh `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. So remote-site enrolment genuinely needs a **non-LAN path to management/signal**. This matters because multi-site is a core case (homes + office + marae), and the fleet topology's own zone-spread guidance for backup targets assumes it. ## Mechanism options - **(a) open 8011/8012 publicly** — new public ports; contradicts the "only deliberately public surface is Caddy on 80/443" invariant directly. **One-way door** (ADR 0174 — security-posture widening; explicitly "the #329-class ruling"). - **(b) reverse-proxy management/signal through Caddy on 443** — Netbird's *default* deployment (OurCloud deliberately overrode it to plaintext mesh ports); keeps one public port but makes management/signal publicly reachable through it. **One-way door.** - **(c) relay/invite mechanism** — a different enrolment flow for the cross-site case (e.g. bring-your-own-mesh-invite), avoiding any new public reach at the cost of a new flow. **Two-way door.** - **(d) none-public / defer** — rule cross-site mesh out of scope for v1; the intended multi-site path is IPv6 (#332, ADR 0026), which gives remote nodes a globally-routable address with no NAT. **Two-way door.** ## Why human **One-way-door ruling (ADR 0174 §3).** Options (a) and (b) are security-posture *widenings* — a new deliberately-public surface — which ADR 0174 names explicitly as one-way doors ("the #329-class ruling") that stop on Ben. The mechanism selection cannot be made by a session because two of its four live options cross that boundary. ## Proposed default ruling (ADR 0174 §4) **(d) none-public — defer cross-site mesh enrolment to v-next, with IPv6 (#332) as the intended multi-site path.** This is the only default that touches no one-way door: it opens no new public surface, aligns with ADR 0026, and matches the existing "IPv6 is the multi-site mesh escape hatch" framing. Adopt this unless Ben rules for a public path (a/b) or wants the relay/invite flow (c) built now. Whichever lands, re-point `docs/architecture/03-fleet-topology.md`'s open-gap note accordingly. ## Related - #329 — the origin investigation + doc correction (closing). - #332 — IPv6 leg (the multi-site mesh escape hatch); the (d) default leans on it. - #328 — the reachability gate doesn't probe mesh/relay ports today (narrower, independent).
Author
Owner

Closing as a duplicate of #543 — a parallel worker filed the same cross-site mesh-enrolment gap (with the mechanism ruling) as #543 and closed the #329 investigation before this one landed. All follow-on work tracks #543; the architecture doc now points there (f098bd2).

Closing as a **duplicate of #543** — a parallel worker filed the same cross-site mesh-enrolment gap (with the mechanism ruling) as #543 and closed the #329 investigation before this one landed. All follow-on work tracks #543; the architecture doc now points there (`f098bd2`).
ben 2026-08-14 19:39:32 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#544
No description provided.