deploy-takeover: does the INSTALLED member device return on a THIRD mesh address, staling d.MeshAddress for the front-door files route? #1069

Closed
opened 2026-08-31 11:28:57 +00:00 by matou-build-agent · 7 comments

Follow-up split from #1068 (the kexec-installer re-address fix, ADR 0209 amendment 2026-08-31, option A). Unproven — the #1068 drive (20260831T102457Z) never got past the kexec phase, so this was never exercised.

The open question

#1068 established that the takeover's kexec installer rejoins the mesh as a NEW peer at a NEW wt0 address (a fresh WireGuard key redeeming the single-use node-scoped key is a new peer to the management plane), and fixed the takeover to re-resolve that address and re-point disko/install/reboot there (enrollment.repointToRejoinedInstaller, enroll.NetbirdMinter.ResolveInstallerAddress).

But the same reasoning may apply one step later: after install + reboot, the box boots the installed NixOS system, whose netbird has its own fresh state dir → potentially a third wt0 address, different from both the pre-kexec address AND the installer address. If so:

  1. d.MeshAddress (captured at landing, pre-kexec — ADR 0209 §3) is stale for the front door's member-device files route at internal/provision/deploy.go:751,778 (files.<apex> → <device-mesh-ip>:80), which would 502.
  2. It may also stale the takeover's own post-reboot enroll-activate/verify reconnect (which reads snap.Target — now the installer IP2, also dead once the box reboots into the installed system).

What to check

  • How does the INSTALLED member device rejoin the mesh — does it self-admit with a fresh key (→ third address), preserve the installer identity, or not rejoin until enroll-activate configures it? (Member devices have no meshSelfAdmitOneshot — that is gateway-specific.)
  • If a third address appears: the fleet's Device.MeshAddress must be re-resolved and written back after the takeover completes (the same ResolveInstallerAddress primitive #1068 added can find the connected node-<requestID> peer), so both the verify reconnect and the later files route target the live address.

How it will surface

Only a live device drive that gets PAST the kexec (i.e. with #1068's fix aboard) can prove or disprove this. Expect it to red at enroll-activate/verify or at a later files-placement leg if the third address is real.

Follow-up split from #1068 (the kexec-installer re-address fix, ADR 0209 amendment 2026-08-31, option A). **Unproven** — the #1068 drive (`20260831T102457Z`) never got past the kexec phase, so this was never exercised. ## The open question #1068 established that the takeover's kexec **installer** rejoins the mesh as a NEW peer at a NEW `wt0` address (a fresh WireGuard key redeeming the single-use node-scoped key is a new peer to the management plane), and fixed the takeover to re-resolve that address and re-point disko/install/reboot there (`enrollment.repointToRejoinedInstaller`, `enroll.NetbirdMinter.ResolveInstallerAddress`). But the same reasoning may apply one step later: after `install` + `reboot`, the box boots the **installed NixOS system**, whose netbird has its own fresh state dir → potentially a **third** `wt0` address, different from both the pre-kexec address AND the installer address. If so: 1. `d.MeshAddress` (captured at landing, pre-kexec — ADR 0209 §3) is stale for the front door's member-device files route at `internal/provision/deploy.go:751,778` (`files.<apex>` → `<device-mesh-ip>:80`), which would 502. 2. It may also stale the takeover's own post-reboot enroll-activate/verify reconnect (which reads `snap.Target` — now the installer IP2, also dead once the box reboots into the installed system). ## What to check - How does the INSTALLED member device rejoin the mesh — does it self-admit with a fresh key (→ third address), preserve the installer identity, or not rejoin until enroll-activate configures it? (Member devices have no `meshSelfAdmitOneshot` — that is gateway-specific.) - If a third address appears: the fleet's `Device.MeshAddress` must be re-resolved and written back after the takeover completes (the same `ResolveInstallerAddress` primitive #1068 added can find the connected `node-<requestID>` peer), so both the verify reconnect and the later files route target the live address. ## How it will surface Only a live device drive that gets PAST the kexec (i.e. with #1068's fix aboard) can prove or disprove this. Expect it to red at `enroll-activate`/verify or at a later files-placement leg if the third address is real. <!-- filed by session-runner under ADR 0174 as the #1068 open follow-up -->
Author
Member

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime

Ruling: bug + ready-for-session, blocked-by #1068 (now closed, so #1069 is on the frontier), grouped with the device-drive family (priority + rehearsal-183).

Why this state, not the alternatives

  • Not ready-for-human. No one-way door here. The natural remedy is the same as #1068's landed option A — re-resolve the peer's address by its node-<requestID> group via the existing management-API client and write it back to Device.MeshAddress after the takeover completes. That reuses #1068's enroll.NetbirdMinter.ResolveInstallerAddress primitive (commit 03fb43cf), keeps the #1012 amendment's "never the device's original join key" invariant, widens no trust surface, and is fully revertible. Option B (a standing baked peer key) was already rejected on #1068 as a security-posture widening — if a fix ever needs that path it re-opens as a fresh one-way-door ticket, but nothing here proposes it.
  • Not ready-for-agent (swarm-safe). The open question — does the installed NixOS system come back on a third wt0 address? — and any fix's proof are only observable from a live device drive that now gets past the kexec with #1068 aboard (paid droplet stand-up, ~11m leg ceiling). That is an interactive session's standing and live-mesh territory, not swarm-visible work — the same reason #1068 sat at ready-for-session.
  • needs-info / deferred don't fit. Nothing is owed from a reporter, and this is actionable now (its blocker #1068 has landed), not a human defer-with-criteria.

Why it is a two-way door

Applying these labels + the blocked-by edge is revertible by a label/edge change, and the routing is provable by the next drive-device run in the phase-5 family (#854): the drive either reds at enroll-activate/verify or a files-placement leg (third address is real → apply the write-back), or greens straight through (d.MeshAddress survives → close as disproven). Not on the one-way-door list.

Grounding (verified against the tree)

  • internal/provision/takeover.go:172-173 pins the enroll target to the pre-kexec d.MeshAddress for every phase — confirmed.
  • internal/provision/deploy.go:751,778 routes files.<apex> → d.MeshAddress + ":80" — confirmed; a stale address 502s the member-device files front door.
  • #1068's ResolveInstallerAddress primitive is the ready building block for the write-back if the third address proves real.

Next step: rides the next paid drive-device. A session sweeping ready-for-session picks it up; a green drive closes it as disproven, a red applies the address write-back.

> *This was generated by AI during triage.* ## Ruled by agent under ADR 0174 — veto anytime **Ruling: `bug` + `ready-for-session`**, blocked-by #1068 (now closed, so #1069 is on the frontier), grouped with the device-drive family (`priority` + `rehearsal-183`). ### Why this state, not the alternatives - **Not `ready-for-human`.** No one-way door here. The natural remedy is the same as #1068's landed option A — re-resolve the peer's address by its `node-<requestID>` group via the existing management-API client and write it back to `Device.MeshAddress` after the takeover completes. That reuses #1068's `enroll.NetbirdMinter.ResolveInstallerAddress` primitive (commit `03fb43cf`), keeps the #1012 amendment's *"never the device's original join key"* invariant, widens no trust surface, and is fully revertible. Option B (a standing baked peer key) was already **rejected** on #1068 as a security-posture widening — if a fix ever needs that path it re-opens as a fresh one-way-door ticket, but nothing here proposes it. - **Not `ready-for-agent` (swarm-safe).** The open question — *does the installed NixOS system come back on a third `wt0` address?* — and any fix's proof are only observable from a **live device drive** that now gets past the kexec with #1068 aboard (paid droplet stand-up, ~11m leg ceiling). That is an interactive session's standing and live-mesh territory, not swarm-visible work — the same reason #1068 sat at `ready-for-session`. - **`needs-info` / `deferred` don't fit.** Nothing is owed from a reporter, and this is actionable now (its blocker #1068 has landed), not a human defer-with-criteria. ### Why it is a two-way door Applying these labels + the blocked-by edge is revertible by a label/edge change, and the routing is provable by the next `drive-device` run in the phase-5 family (#854): the drive either reds at `enroll-activate`/verify or a files-placement leg (third address is real → apply the write-back), or greens straight through (`d.MeshAddress` survives → close as disproven). Not on the one-way-door list. ### Grounding (verified against the tree) - `internal/provision/takeover.go:172-173` pins the enroll target to the **pre-kexec** `d.MeshAddress` for every phase — confirmed. - `internal/provision/deploy.go:751,778` routes `files.<apex>` → `d.MeshAddress + ":80"` — confirmed; a stale address 502s the member-device files front door. - #1068's `ResolveInstallerAddress` primitive is the ready building block for the write-back if the third address proves real. Next step: rides the next paid `drive-device`. A session sweeping `ready-for-session` picks it up; a green drive closes it as disproven, a red applies the address write-back.
Author
Member

Ruled by agent under ADR 0174 — veto anytime

The premise is disproven by the code — no live drive needed. There is no THIRD address: the installed member device returns on NO mesh address at all.

What the code proves

An installed member (non-gateway) node's configuration.nix imports only its base host files plus any placed service module — and none of them is a netbird client:

  • internal/clan/member_attach.go:33 — baseMemberModules = {networking.nix, disko.nix, platform.nix, access.nix}
  • internal/clan/member_attach.go:43 — memberServiceModules = {files.nix} (the one service ADR 0210 routes to a device)
  • renderMemberConfiguration (member_attach.go:82) imports exactly that set, nothing else
  • renderPlatform / renderAccess / writeNodeConfig (internal/clan/enrollment.go) bake only hostPlatform, sshd+root-keys, networking, disko for a full-install member — no mesh

The netbird client + self-admit oneshot are gateway-only: netbirdClient / meshSelfAdmitOneshot (internal/clan/netbird.go:408-411, 452-534), gated on GatewayFacts.Mesh and wired in only from the gateway surfaces in vmguest.go. The ticket's claim that member devices have no meshSelfAdmitOneshot is correct — and nothing replaces it.

So the three addresses in the flow are:

stage address how
pre-kexec (IP1) device's original wt0, landing agent meshup redeems the original join key on the stock OS; stored as d.MeshAddress
installer (IP2) a new peer fresh minted key → new WireGuard key → new peer; #1068 re-resolves + re-points snap.Target here
installed system none no netbird module → never rejoins the mesh

The RAM/tmpfs installer that owned IP2 is destroyed by the reboot; the disk-installed system has no netbird to re-establish it. So there is no third address to re-resolve.

Why this is bigger than a stale d.MeshAddress

After the reboot the installed member device is off the mesh entirely, which breaks both consumers named in the ticket:

  1. The verify reconnect — verify builds its clan machines update --target-host from s.Target (internal/clan/enrollment.go:1293-1295), which the #1068 kexec re-point left at the installer IP2 (enrollment.go:1994). IP2 is dead once the box reboots into the netbird-less installed system, so verify burns its reconnect budget and concedes a misleading "still coming back up — re-drive to resume" block, never landing the member.
  2. The front-door files route — files.<apex> → d.MeshAddress:80 (internal/provision/deploy.go:751,778) is pinned to the dead landing IP1.

Neither has a live peer to re-resolve to, so the ResolveInstallerAddress primitive #1068 added cannot close this the way it closed the installer reconnect.

Why human — a one-way-door mesh-admission ruling

Closing #1069 requires giving the installed member device a way to rejoin the community mesh: a member self-admit module + a key-mint mechanism. Every candidate mechanism touches the mesh trust surface:

  • The member can't self-mint (only the gateway/control-plane holds the mesh signing key).
  • The natural analog — bake a standing node-scoped setup key into the member's config module (persisted in the config repo) so it re-admits at boot — is exactly the standing-peer-key security-posture widening the #1068 ADR 0209 amendment rejected as option B ("a one-way door under ADR 0174 … rejected here without a separate Ben ruling").
  • And it cannot be validated two-way/offline: whether the installed member device actually comes up on the mesh is only observable on a live drive past the kexec — non-routine spend + Ben's/elitebook's hands.

That is a one-way door on all three axes (trust-surface, live-drive-only, non-routine spend), so it is not agent-rulable under ADR 0174.

Proposed default ruling (for the human)

Give the installed member device its own mesh-rejoin, mirroring the gateway's self-admit but scoped to the device:

  1. Render a member netbird client + a node-<requestID>-scoped self-admit oneshot into the member node's config (a new mesh.nix in baseMemberModules, gated on the fleet running the mesh plane).
  2. The gateway mints a fresh single-use node-scoped key at deploy time (the same MeshMinter port, not a standing key) and the member redeems it once at first boot — so no standing credential lands in the config repo (keeps the option-B invariant intact).
  3. After the installed device rejoins, the fleet re-resolves its new wt0 via the existing ResolveInstallerAddress primitive (the connected node-<requestID> peer) and writes it back to Device.MeshAddress, so both the verify reconnect and the files route target the live address. Note the write-back is non-trivial: d.MeshAddress is today a projection of the enroll ledger's landing fact (internal/fleetstate/projection.go:285, from ConfirmEnrolled), so a post-takeover address is a new authoritative source that needs its own home.

If instead a standing key is deemed acceptable (option B), that is the Ben ruling this ticket needs.

This session (the two-way part, landed)

Corrected the false "third address" framing in internal/provision/takeover.go, the ADR 0209 amendment's Open note, and STATUS.md — commit 102beb16 on main. No behaviour change; the touched Go package builds and gofmt is clean.

Relabelling ready-for-session → ready-for-human. Veto anytime.

## Ruled by agent under ADR 0174 — veto anytime **The premise is disproven by the code — no live drive needed. There is no THIRD address: the installed member device returns on NO mesh address at all.** ### What the code proves An installed member (non-gateway) node's `configuration.nix` imports **only** its base host files plus any placed service module — and **none of them is a netbird client**: - `internal/clan/member_attach.go:33` — `baseMemberModules = {networking.nix, disko.nix, platform.nix, access.nix}` - `internal/clan/member_attach.go:43` — `memberServiceModules = {files.nix}` (the one service ADR 0210 routes to a device) - `renderMemberConfiguration` (`member_attach.go:82`) imports exactly that set, nothing else - `renderPlatform` / `renderAccess` / `writeNodeConfig` (`internal/clan/enrollment.go`) bake only hostPlatform, sshd+root-keys, networking, disko for a full-install member — no mesh The netbird **client** + self-admit oneshot are **gateway-only**: `netbirdClient` / `meshSelfAdmitOneshot` (`internal/clan/netbird.go:408-411, 452-534`), gated on `GatewayFacts.Mesh` and wired in only from the gateway surfaces in `vmguest.go`. **The ticket's claim that member devices have no `meshSelfAdmitOneshot` is correct** — and nothing replaces it. So the three addresses in the flow are: | stage | address | how | |---|---|---| | pre-kexec (IP1) | device's original `wt0`, landing | agent `meshup` redeems the **original** join key on the stock OS; stored as `d.MeshAddress` | | installer (IP2) | a **new** peer | fresh minted key → new WireGuard key → new peer; `#1068` re-resolves + re-points `snap.Target` here | | installed system | **none** | no netbird module → never rejoins the mesh | The RAM/tmpfs installer that owned IP2 is destroyed by the reboot; the disk-installed system has no netbird to re-establish it. So there is **no third address to re-resolve**. ### Why this is bigger than a stale `d.MeshAddress` After the reboot the installed member device is **off the mesh entirely**, which breaks **both** consumers named in the ticket: 1. **The verify reconnect** — `verify` builds its `clan machines update --target-host` from `s.Target` (`internal/clan/enrollment.go:1293-1295`), which the `#1068` kexec re-point left at the **installer IP2** (`enrollment.go:1994`). IP2 is dead once the box reboots into the netbird-less installed system, so verify burns its reconnect budget and concedes a misleading "still coming back up — re-drive to resume" block, never landing the member. 2. **The front-door files route** — `files.<apex>` → `d.MeshAddress:80` (`internal/provision/deploy.go:751,778`) is pinned to the dead **landing IP1**. Neither has a live peer to re-resolve to, so the `ResolveInstallerAddress` primitive `#1068` added cannot close this the way it closed the installer reconnect. ### Why human — a one-way-door mesh-admission ruling Closing `#1069` requires giving the installed member device a way to rejoin the community mesh: a **member self-admit module + a key-mint mechanism**. Every candidate mechanism touches the mesh **trust surface**: - The member can't self-mint (only the gateway/control-plane holds the mesh signing key). - The natural analog — bake a **standing node-scoped setup key** into the member's config module (persisted in the config repo) so it re-admits at boot — is exactly the **standing-peer-key security-posture widening** the `#1068` ADR 0209 amendment **rejected as option B** ("a one-way door under ADR 0174 … rejected here without a separate Ben ruling"). - And it cannot be validated two-way/offline: whether the installed member device actually comes up on the mesh is only observable on a **live drive past the kexec** — non-routine spend + Ben's/elitebook's hands. That is a one-way door on all three axes (trust-surface, live-drive-only, non-routine spend), so it is **not** agent-rulable under ADR 0174. ### Proposed default ruling (for the human) Give the installed member device its **own** mesh-rejoin, mirroring the gateway's self-admit but scoped to the device: 1. Render a member netbird client + a `node-<requestID>`-scoped self-admit oneshot into the member node's config (a new `mesh.nix` in `baseMemberModules`, gated on the fleet running the mesh plane). 2. The gateway mints a **fresh single-use node-scoped** key at deploy time (the same `MeshMinter` port, not a standing key) and the member redeems it once at first boot — so no standing credential lands in the config repo (keeps the option-B invariant intact). 3. After the installed device rejoins, the fleet **re-resolves** its new `wt0` via the existing `ResolveInstallerAddress` primitive (the connected `node-<requestID>` peer) and **writes it back** to `Device.MeshAddress`, so both the verify reconnect and the files route target the live address. Note the write-back is non-trivial: `d.MeshAddress` is today a **projection** of the enroll ledger's landing fact (`internal/fleetstate/projection.go:285`, from `ConfirmEnrolled`), so a post-takeover address is a new authoritative source that needs its own home. If instead a standing key is deemed acceptable (option B), that is the Ben ruling this ticket needs. ### This session (the two-way part, landed) Corrected the false "third address" framing in `internal/provision/takeover.go`, the ADR 0209 amendment's Open note, and `STATUS.md` — commit `102beb16` on `main`. No behaviour change; the touched Go package builds and gofmt is clean. Relabelling `ready-for-session` → `ready-for-human`. Veto anytime.
Author
Member

Live proof arrived — #1070 (drive 20260831T113210Z)

The live-drive evidence this ruling was waiting on has now landed on a paid drive, filed as #1070. It confirms the code-proven premise exactly:

  • #1068's re-point held — the first drive to get past the kexec. The installer rejoined the mesh as a NEW peer and the post-kexec phases (disko/install/reboot) really ran against the re-pointed address (transfer profiles in both the gateway-outbound and device-inbound forensics).
  • The install LANDED — reaching verify at all proves kexec · disko · install · reboot all completed (Advance only enters StageVerify when install() returns clean).
  • The box is up, re-imaged, and off the mesh — the device answers a fresh ssh connect but correctly refuses the drive host's own key (only the control plane's deploy key is baked into root trust), and no third mesh peer ever logs in. The installed member renders no netbird module, so it rejoins at NO address, and verify spent its reconnect budget against the dead installer IP2 before conceding.

So this is not a hypothetical anymore — every re-drive is now deterministic: it gets through the kexec, re-images the droplet, and reds identically at verify for the ~22m it takes to spend the reconnect budget. The device drive (#854) has been re-pointed to be blocked by this ticket (#1069) — the real one-way-door blocker — so the queue no longer burns droplets on it.

Two-way honesty half landed (via #1070)

Until this ruling lands, the member-device verify block no longer presents as the misleading resumable recovery.mode: "resume" / "wait for the reboot to finish, then re-drive to verify" (the reboot has finished; a re-drive reds identically). deployTakeover now re-classifies a StageVerify block to a NON-resumable fault naming this ruling. This branch reverts when #1069 lands a member self-admit + key-mint (the box would then rejoin and a verify block becomes genuinely resumable again). Commit 46bd4a7a.

Still ready-for-human on the one-way mesh-admission ruling (the proposed default above). Ruled by agent under ADR 0174 — veto anytime.

## Live proof arrived — #1070 (drive `20260831T113210Z`) The live-drive evidence this ruling was waiting on has now landed on a paid drive, filed as **#1070**. It confirms the code-proven premise exactly: - **#1068's re-point held** — the first drive to get past the kexec. The installer rejoined the mesh as a NEW peer and the post-kexec phases (disko/install/reboot) really ran against the re-pointed address (transfer profiles in both the gateway-outbound and device-inbound forensics). - **The install LANDED** — reaching `verify` at all proves kexec · disko · install · reboot all completed (`Advance` only enters `StageVerify` when `install()` returns clean). - **The box is up, re-imaged, and off the mesh** — the device answers a fresh ssh connect but correctly refuses the drive host's own key (only the control plane's deploy key is baked into root trust), and **no third mesh peer ever logs in**. The installed member renders no netbird module, so it rejoins at NO address, and `verify` spent its reconnect budget against the dead installer IP2 before conceding. So this is not a hypothetical anymore — every re-drive is now deterministic: it gets through the kexec, re-images the droplet, and reds identically at `verify` for the ~22m it takes to spend the reconnect budget. **The device drive (#854) has been re-pointed to be blocked by this ticket (#1069)** — the real one-way-door blocker — so the queue no longer burns droplets on it. ### Two-way honesty half landed (via #1070) Until this ruling lands, the member-device verify block no longer presents as the misleading resumable `recovery.mode: "resume"` / *"wait for the reboot to finish, then re-drive to verify"* (the reboot has finished; a re-drive reds identically). `deployTakeover` now re-classifies a `StageVerify` block to a NON-resumable fault naming this ruling. **This branch reverts when #1069 lands a member self-admit + key-mint** (the box would then rejoin and a verify block becomes genuinely resumable again). Commit `46bd4a7a`. Still `ready-for-human` on the one-way mesh-admission ruling (the proposed default above). Ruled by agent under ADR 0174 — veto anytime.
Owner

Ruled by Ben (via session, 2026-08-31) — option (A): the installed member carries the installer's mesh identity across the install

(This ruling was posted on #1070 (comment 32838) ten minutes after triage folded #1070 into this ticket — reproduced here in full because #1069 is the open park on #854. Same content; act on this copy.)


Ruling. An installed member device rejoins the community mesh as the same peer the kexec installer already is — no third admission, no standing key, no secret in the config repo. The installer's netbird identity (its WireGuard key + config, the peer netbird-mgmt already admitted at IP2 under #1068) is copied onto the freshly-disko'd disk before install, and the installed member's configuration carries the same netbird client module the gateway has, so on reboot the box comes up on the same wt0 address the post-kexec phases were re-pointed to. verify then reaches it, and that address is what the front door routes files to.

Why A, not B/C. (C) — a standing node-scoped key persisted into the replicated config — is the posture widening #1068's option B was rejected on (ADR 0126: no secret in the config repo). (B) — a third single-use mint dropped on disk — works but yields a third address and a third admission per takeover for no gain. (A) reuses an admission the plane has already granted for exactly this node-, adds no secret anywhere it wasn't already (the installer's state dir is on the box's own disk, same as the gateway's), and is a two-way door: it's one file copy between two phases that already exist.

Scope for the worker:

  1. Member node composition (internal/clan/member_attach.go baseMemberModules): add a member netbird client module rendered with the SAME shape/name as the gateway's peer — services.netbird.clients.mesh = { port = 51820; interface = "wt0"; hardened = false; environment.NB_MANAGEMENT_URL = <the community management URL the installer used, InstallerMesh.ManagementURL>; } — so the state dir (/var/lib/netbird-mesh) and socket match the installer's (post-#1057 renderInstallerMesh). No setup key, no self-admit oneshot on the member: the identity arrives with the state dir. Render-gated on a mesh-addressed takeover, the same predicate as the installer image.
  2. Identity carry-over in enrollment.install (internal/clan/enrollment.go:780), between the disko and install phases (the takeover already drives clan machines install --phases <ph> one phase at a time, enrollment.go:1624): over the re-pointed installer target, mkdir -p /mnt/var/lib && cp -a /var/lib/netbird-mesh /mnt/var/lib/netbird-mesh (mode-preserving; the dir is root-only). Record it in DonePhases/snapshot so a resume never re-copies over an installed system. Fail LOUD if the source dir is absent (an installer that never rejoined has nothing to carry — that is a #1057-class fault, not a silent cold member).
  3. Write the address back: after reboot, resolve the peer by its node group exactly as #1068 does (repointToRejoinedInstaller / ResolveInstallerAddress) and persist it to Device.MeshAddress, so deploy.go's member files route (files.<apex> → <mesh-ip>:80) stops pointing at the dead landing IP1 — this closes #1069's real half.
  4. Honesty defect named in this ticket: while verify cannot reach the box, the fault must not present as recovery.mode: "resume" with "wait for the reboot" — a resume into a dead address burns 22 min and a droplet. With (A) landed the case should not recur; keep the concession text truthful either way.
  5. Tests: member_attach render test proves the member config carries services.netbird.clients.mesh (and NO setup key / self-admit), an enrollment test proves the carry-over step runs once between disko and install with the right paths and is skipped on resume, and the ADR 0209 amendment records this ruling (installed member = installer's peer; #1069's "third address" note closes).
  6. Proof = the next #854 drive: verify green, then files-door/oidc-login (never yet run) get their first shot.

Re-labelling ready-for-session → ready-for-agent; #854 stays parked on this ticket until it lands.

## Ruled by Ben (via session, 2026-08-31) — option **(A)**: the installed member carries the installer's mesh identity across the install _(This ruling was posted on #1070 (comment 32838) ten minutes after triage folded #1070 into this ticket — reproduced here in full because #1069 is the open park on #854. Same content; act on this copy.)_ --- **Ruling.** An installed member device rejoins the community mesh as the **same peer the kexec installer already is** — no third admission, no standing key, no secret in the config repo. The installer's netbird identity (its WireGuard key + config, the peer `netbird-mgmt` already admitted at IP2 under #1068) is copied onto the freshly-disko'd disk before `install`, and the installed member's configuration carries the same netbird client module the gateway has, so on reboot the box comes up on the **same wt0 address** the post-kexec phases were re-pointed to. `verify` then reaches it, and that address is what the front door routes files to. **Why A, not B/C.** (C) — a standing node-scoped key persisted into the replicated config — is the posture widening #1068's option B was rejected on (ADR 0126: no secret in the config repo). (B) — a third single-use mint dropped on disk — works but yields a *third* address and a third admission per takeover for no gain. (A) reuses an admission the plane has already granted for exactly this node-<requestID>, adds no secret anywhere it wasn't already (the installer's state dir is on the box's own disk, same as the gateway's), and is a two-way door: it's one file copy between two phases that already exist. **Scope for the worker:** 1. **Member node composition** (`internal/clan/member_attach.go` `baseMemberModules`): add a member netbird client module rendered with the SAME shape/name as the gateway's peer — `services.netbird.clients.mesh = { port = 51820; interface = "wt0"; hardened = false; environment.NB_MANAGEMENT_URL = <the community management URL the installer used, InstallerMesh.ManagementURL>; }` — so the state dir (`/var/lib/netbird-mesh`) and socket match the installer's (post-#1057 `renderInstallerMesh`). **No setup key, no self-admit oneshot** on the member: the identity arrives with the state dir. Render-gated on a mesh-addressed takeover, the same predicate as the installer image. 2. **Identity carry-over** in `enrollment.install` (`internal/clan/enrollment.go:780`), between the `disko` and `install` phases (the takeover already drives `clan machines install --phases <ph>` one phase at a time, `enrollment.go:1624`): over the re-pointed installer target, `mkdir -p /mnt/var/lib && cp -a /var/lib/netbird-mesh /mnt/var/lib/netbird-mesh` (mode-preserving; the dir is root-only). Record it in `DonePhases`/snapshot so a resume never re-copies over an installed system. Fail LOUD if the source dir is absent (an installer that never rejoined has nothing to carry — that is a #1057-class fault, not a silent cold member). 3. **Write the address back:** after `reboot`, resolve the peer by its node group exactly as #1068 does (`repointToRejoinedInstaller` / `ResolveInstallerAddress`) and persist it to `Device.MeshAddress`, so `deploy.go`'s member files route (`files.<apex>` → `<mesh-ip>:80`) stops pointing at the dead landing IP1 — this closes #1069's real half. 4. **Honesty defect** named in this ticket: while `verify` cannot reach the box, the fault must not present as `recovery.mode: "resume"` with "wait for the reboot" — a resume into a dead address burns 22 min and a droplet. With (A) landed the case should not recur; keep the concession text truthful either way. 5. Tests: `member_attach` render test proves the member config carries `services.netbird.clients.mesh` (and NO setup key / self-admit), an enrollment test proves the carry-over step runs once between disko and install with the right paths and is skipped on resume, and the ADR 0209 amendment records this ruling (installed member = installer's peer; #1069's "third address" note closes). 6. Proof = the next #854 drive: `verify` green, then `files-door`/`oidc-login` (never yet run) get their first shot. Re-labelling `ready-for-session` → `ready-for-agent`; #854 stays parked on this ticket until it lands.
Author
Member

swarm-claim host=matou-dev-server-01 run=15180
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=15180 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #1069 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit d6865d3d08 is not reachable from origin/main (not landed)
  • changed_files: 'STATUS.md' is not in the diff of the claimed commits
  • changed_files: 'control-plane/cmd/control-plane/whole_composition.go' is not in the diff of the claimed commits
  • changed_files: 'docs/adr/0209-device-add-landing-goes-live-mesh-fact-fleet-admission.md' is not in the diff of the claimed commits
  • changed_files: 'internal/clan/enrollment.go' is not in the diff of the claimed commits
  • changed_files: 'internal/clan/installer_mesh_test.go' is not in the diff of the claimed commits
  • changed_files: 'internal/clan/member_attach.go' is not in the diff of the claimed commits
  • changed_files: 'internal/clan/member_mesh_test.go' is not in the diff of the claimed commits
  • changed_files: 'internal/clan/netbird.go' is not in the diff of the claimed commits
  • changed_files: 'internal/enroll/admission_test.go' is not in the diff of the claimed commits
  • changed_files: 'internal/enroll/ledger.go' is not in the diff of the claimed commits
  • changed_files: 'internal/provision/provision.go' is not in the diff of the claimed commits
  • changed_files: 'internal/provision/takeover.go' is not in the diff of the claimed commits
  • changed_files: 'internal/provision/takeover_test.go' is not in the diff of the claimed commits
envelope
{
  "issue": 1069,
  "status": "success",
  "commits": [
    "d6865d3d08315a5aaf24d98d1fbccaa244b134c3"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/whole_composition.go",
    "docs/adr/0209-device-add-landing-goes-live-mesh-fact-fleet-admission.md",
    "internal/clan/enrollment.go",
    "internal/clan/installer_mesh_test.go",
    "internal/clan/member_attach.go",
    "internal/clan/member_mesh_test.go",
    "internal/clan/netbird.go",
    "internal/enroll/admission_test.go",
    "internal/enroll/ledger.go",
    "internal/provision/provision.go",
    "internal/provision/takeover.go",
    "internal/provision/takeover_test.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/clan/ ./internal/provision/ ./internal/enroll/ ./control-plane/cmd/control-plane/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c gofmt -l internal/ control-plane/ (pre-push go-ci gate incl. golangci-lint, ran green on push)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Member node composition adds a member netbird client module (renderMemberMesh, no setup key, no self-admit)": "internal/clan/netbird.go renderMemberMesh + internal/clan/member_attach.go MeshMemberFileName in baseMemberModules; TestRenderMemberMesh_CarriesTheClientNotAKeyNorSelfAdmit + TestEnroll_MemberMeshTakeoverBakesAndImportsTheMeshModule",
    "Identity carry-over copies /var/lib/netbird-mesh onto /mnt between disko and install, once, resume-skipped, fails loud if absent": "internal/clan/enrollment.go carryOverMeshIdentity + MeshCarriedOver snapshot flag; TestEnroll_MeshIdentityCarryOverRunsOnceBetweenDiskoAndInstall, _SkippedOnResume, _FailsLoudWhenSourceAbsent",
    "Write the address back after reboot (resolve + persist to Device.MeshAddress)": "internal/provision/takeover.go recordRejoinedMeshAddress + provision.MeshAddressRecorder + enroll.Ledger.RecordMeshAddress + whole_composition wiring; TestDeployTakeover_WritesBackRejoinedMeshAddress, TestRecordMeshAddress_UpdatesEnrolledNodeAddress",
    "Honesty defect: verify block no longer presents as non-resumable rescue (reverts #1070 under option A)": "internal/provision/takeover.go removes the StageVerify special case; TestDeploy_AMemberVerifyBlockResumesAgainUnderOptionA",
    "ADR 0209 amendment records the ruling (installed member = installer's peer)": "docs/adr/0209-...md Amendment 2026-08-31 — option A"
  },
  "summary": "Installed member device carries the kexec installer's mesh identity across the takeover install (option A), so it rejoins the community mesh at the re-pointed address, verify reconnects, and the fleet writes that address back for the front-door files route.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1069 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit d6865d3d08315a5aaf24d98d1fbccaa244b134c3 is not reachable from origin/main (not landed) - changed_files: 'STATUS.md' is not in the diff of the claimed commits - changed_files: 'control-plane/cmd/control-plane/whole_composition.go' is not in the diff of the claimed commits - changed_files: 'docs/adr/0209-device-add-landing-goes-live-mesh-fact-fleet-admission.md' is not in the diff of the claimed commits - changed_files: 'internal/clan/enrollment.go' is not in the diff of the claimed commits - changed_files: 'internal/clan/installer_mesh_test.go' is not in the diff of the claimed commits - changed_files: 'internal/clan/member_attach.go' is not in the diff of the claimed commits - changed_files: 'internal/clan/member_mesh_test.go' is not in the diff of the claimed commits - changed_files: 'internal/clan/netbird.go' is not in the diff of the claimed commits - changed_files: 'internal/enroll/admission_test.go' is not in the diff of the claimed commits - changed_files: 'internal/enroll/ledger.go' is not in the diff of the claimed commits - changed_files: 'internal/provision/provision.go' is not in the diff of the claimed commits - changed_files: 'internal/provision/takeover.go' is not in the diff of the claimed commits - changed_files: 'internal/provision/takeover_test.go' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 1069, "status": "success", "commits": [ "d6865d3d08315a5aaf24d98d1fbccaa244b134c3" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/whole_composition.go", "docs/adr/0209-device-add-landing-goes-live-mesh-fact-fleet-admission.md", "internal/clan/enrollment.go", "internal/clan/installer_mesh_test.go", "internal/clan/member_attach.go", "internal/clan/member_mesh_test.go", "internal/clan/netbird.go", "internal/enroll/admission_test.go", "internal/enroll/ledger.go", "internal/provision/provision.go", "internal/provision/takeover.go", "internal/provision/takeover_test.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/clan/ ./internal/provision/ ./internal/enroll/ ./control-plane/cmd/control-plane/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c gofmt -l internal/ control-plane/ (pre-push go-ci gate incl. golangci-lint, ran green on push)", "exit_code": 0 } ], "criteria": { "Member node composition adds a member netbird client module (renderMemberMesh, no setup key, no self-admit)": "internal/clan/netbird.go renderMemberMesh + internal/clan/member_attach.go MeshMemberFileName in baseMemberModules; TestRenderMemberMesh_CarriesTheClientNotAKeyNorSelfAdmit + TestEnroll_MemberMeshTakeoverBakesAndImportsTheMeshModule", "Identity carry-over copies /var/lib/netbird-mesh onto /mnt between disko and install, once, resume-skipped, fails loud if absent": "internal/clan/enrollment.go carryOverMeshIdentity + MeshCarriedOver snapshot flag; TestEnroll_MeshIdentityCarryOverRunsOnceBetweenDiskoAndInstall, _SkippedOnResume, _FailsLoudWhenSourceAbsent", "Write the address back after reboot (resolve + persist to Device.MeshAddress)": "internal/provision/takeover.go recordRejoinedMeshAddress + provision.MeshAddressRecorder + enroll.Ledger.RecordMeshAddress + whole_composition wiring; TestDeployTakeover_WritesBackRejoinedMeshAddress, TestRecordMeshAddress_UpdatesEnrolledNodeAddress", "Honesty defect: verify block no longer presents as non-resumable rescue (reverts #1070 under option A)": "internal/provision/takeover.go removes the StageVerify special case; TestDeploy_AMemberVerifyBlockResumesAgainUnderOptionA", "ADR 0209 amendment records the ruling (installed member = installer's peer)": "docs/adr/0209-...md Amendment 2026-08-31 — option A" }, "summary": "Installed member device carries the kexec installer's mesh identity across the takeover install (option A), so it rejoins the community mesh at the re-pointed address, verify reconnects, and the fleet writes that address back for the front-door files route.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Author
Member

close-report for #1069 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1069,
  "status": "success",
  "commits": [
    "d6865d3d08315a5aaf24d98d1fbccaa244b134c3"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/whole_composition.go",
    "docs/adr/0209-device-add-landing-goes-live-mesh-fact-fleet-admission.md",
    "internal/clan/enrollment.go",
    "internal/clan/installer_mesh_test.go",
    "internal/clan/member_attach.go",
    "internal/clan/member_mesh_test.go",
    "internal/clan/netbird.go",
    "internal/enroll/admission_test.go",
    "internal/enroll/ledger.go",
    "internal/provision/provision.go",
    "internal/provision/takeover.go",
    "internal/provision/takeover_test.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./internal/clan/ ./internal/provision/ ./internal/enroll/ ./control-plane/cmd/control-plane/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c gofmt -l internal/ control-plane/ (pre-push go-ci gate incl. golangci-lint, ran green on push)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Member node composition adds a member netbird client module (renderMemberMesh, no setup key, no self-admit)": "internal/clan/netbird.go renderMemberMesh + internal/clan/member_attach.go MeshMemberFileName in baseMemberModules; TestRenderMemberMesh_CarriesTheClientNotAKeyNorSelfAdmit + TestEnroll_MemberMeshTakeoverBakesAndImportsTheMeshModule",
    "Identity carry-over copies /var/lib/netbird-mesh onto /mnt between disko and install, once, resume-skipped, fails loud if absent": "internal/clan/enrollment.go carryOverMeshIdentity + MeshCarriedOver snapshot flag; TestEnroll_MeshIdentityCarryOverRunsOnceBetweenDiskoAndInstall, _SkippedOnResume, _FailsLoudWhenSourceAbsent",
    "Write the address back after reboot (resolve + persist to Device.MeshAddress)": "internal/provision/takeover.go recordRejoinedMeshAddress + provision.MeshAddressRecorder + enroll.Ledger.RecordMeshAddress + whole_composition wiring; TestDeployTakeover_WritesBackRejoinedMeshAddress, TestRecordMeshAddress_UpdatesEnrolledNodeAddress",
    "Honesty defect: verify block no longer presents as non-resumable rescue (reverts #1070 under option A)": "internal/provision/takeover.go removes the StageVerify special case; TestDeploy_AMemberVerifyBlockResumesAgainUnderOptionA",
    "ADR 0209 amendment records the ruling (installed member = installer's peer)": "docs/adr/0209-...md Amendment 2026-08-31 — option A"
  },
  "summary": "Installed member device carries the kexec installer's mesh identity across the takeover install (option A), so it rejoins the community mesh at the re-pointed address, verify reconnects, and the fleet writes that address back for the front-door files route.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1069 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1069, "status": "success", "commits": [ "d6865d3d08315a5aaf24d98d1fbccaa244b134c3" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/whole_composition.go", "docs/adr/0209-device-add-landing-goes-live-mesh-fact-fleet-admission.md", "internal/clan/enrollment.go", "internal/clan/installer_mesh_test.go", "internal/clan/member_attach.go", "internal/clan/member_mesh_test.go", "internal/clan/netbird.go", "internal/enroll/admission_test.go", "internal/enroll/ledger.go", "internal/provision/provision.go", "internal/provision/takeover.go", "internal/provision/takeover_test.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./internal/clan/ ./internal/provision/ ./internal/enroll/ ./control-plane/cmd/control-plane/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci -c gofmt -l internal/ control-plane/ (pre-push go-ci gate incl. golangci-lint, ran green on push)", "exit_code": 0 } ], "criteria": { "Member node composition adds a member netbird client module (renderMemberMesh, no setup key, no self-admit)": "internal/clan/netbird.go renderMemberMesh + internal/clan/member_attach.go MeshMemberFileName in baseMemberModules; TestRenderMemberMesh_CarriesTheClientNotAKeyNorSelfAdmit + TestEnroll_MemberMeshTakeoverBakesAndImportsTheMeshModule", "Identity carry-over copies /var/lib/netbird-mesh onto /mnt between disko and install, once, resume-skipped, fails loud if absent": "internal/clan/enrollment.go carryOverMeshIdentity + MeshCarriedOver snapshot flag; TestEnroll_MeshIdentityCarryOverRunsOnceBetweenDiskoAndInstall, _SkippedOnResume, _FailsLoudWhenSourceAbsent", "Write the address back after reboot (resolve + persist to Device.MeshAddress)": "internal/provision/takeover.go recordRejoinedMeshAddress + provision.MeshAddressRecorder + enroll.Ledger.RecordMeshAddress + whole_composition wiring; TestDeployTakeover_WritesBackRejoinedMeshAddress, TestRecordMeshAddress_UpdatesEnrolledNodeAddress", "Honesty defect: verify block no longer presents as non-resumable rescue (reverts #1070 under option A)": "internal/provision/takeover.go removes the StageVerify special case; TestDeploy_AMemberVerifyBlockResumesAgainUnderOptionA", "ADR 0209 amendment records the ruling (installed member = installer's peer)": "docs/adr/0209-...md Amendment 2026-08-31 — option A" }, "summary": "Installed member device carries the kexec installer's mesh identity across the takeover install (option A), so it rejoins the community mesh at the re-pointed address, verify reconnects, and the fleet writes that address back for the front-door files route.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1069
No description provided.