the founding join cannot land: mesh admission redeems a fabricated setup key against mesh.internal, on a device with no netbird (#788 idip drive 20260827T161538Z, sig 28ff46f6d26f) #907
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
2 participants
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#907
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?
Failure
Leg 6
consentred —the terminal join exited 1(artifacts/legs.json,artifacts/verdict.json:firstRedLeg: consent, drive commit90b1f3e8). Legs 1–5 green.The consent ceremony itself passed: full install chosen,
WIPEtyped,✓ consent recorded, probe printed,✓ connection request sent,waiting for the operator's decision…(artifacts/consent-transcript.txt). The approval landed too —logs/founding-state.logcarriesstandup.request: req-0001,standup.node: node-req-0001, and the eventgateway paired and approved as node node-req-0001 — probed 2 vCPU · 4 GB · 76 GB meets the minimum. The agent then entered ADR 0209's landing and died on its first step:Evidence
internal/join/land.go:83—Enroll's first gate iso.cfg.Mesh.Join(ctx, g.Mesh). There is no founding/add-device fork; every landing must join a mesh before certs, clan-up, takeover-stage, orConfirmEnrolled.agent/internal/meshup/meshup.go:45-53and:103-105— the real adapter mapsexec.ErrNotFoundto the named ADR 0100 error. This adapter is correct and is not the defect — it failed loud exactly as ruled.agent/cmd/agent/wiring_prod.go(joinAdapters,Mesh: meshup.New(run)) — production wires the real netbird adapter.internal/enroll/community_ca.go:145-149— the grant's admission is fabricated placeholder material:SetupKey: randBytes(32),Management: "mesh.internal",TLSPin: randBytes(32).mesh.internaloccurs in exactly two places in the tree: here and the test granterinternal/enroll/enrolltesting/granter.go:46. The transcript's setup key is raw non-UTF8 bytes (\xd1\xf0O\xbe\xa1\\ \x9e\xe8...) — visible proof thatrandBytes(32)is being handed to a CLI flag, not a Netbird setup key.netbirdacrossinternal/,control-plane/,scripts/finds only the IdP device-code flow (internal/idp/deviceapprove.go:14,internal/idp/provider.go:99), a clan module id (internal/clan/idssidp.go:131), and admin-mesh operator notes (docs/GOTCHAS.md:3487). Nothing mints a setup key; nothing servesmesh.internal.logs/droplet-do-forensics.txt:image: 24.04 (LTS) x64, created16:15:59Z), with the agent installed by the verbatim/getone-liner (leg 5 green,logs/droplet-journal.txt:1148Started idss-agent.service).internal/controlapi/install_doorway.goserves a script that installs the agent unit only — it never installs netbird.So there are two independent walls, either fatal:
netbird up ... on the stock OS; nothing in the product or the drive puts it on a stock Ubuntu box.netbird up --setup-key <32 random bytes> --management-url mesh.internalcannot succeed — the key was minted by nobody and the host resolves nowhere. Installing netbird alone would only move the red fromexecutable file not foundto a management-dial failure.Ordering note. This is the FOUNDING shape:
agent/cmd/agent/wiring_prod.go'senrollTransportFortakes the no-IDSS_COMMUNITY_ORIGINbranch and enrols over the SSH relay against the app's in-helper ledger (ADR 0043/0152). This droplet is the community's first and only node; the community's mesh does not exist yet, and the provisioning that would stand one up is the first deploy — leg 10 (deploy-takeover), four legs later. Requiring a founding node to join a mesh that first-deploy has not yet created is an ordering fault, not merely a missing package.Suspected layer
The community side of ADR 0209 §2/§3 —
internal/enroll/community_ca.go(the admission is fabricated) andinternal/join/land.go(the mesh gate is unconditional). Not the device adapter:agent/internal/meshupbehaved correctly and must stay fail-loud (ADR 0100).What plugging it needs
A ruling on which of two different builds ADR 0209 §2 actually means, because they are not the same size:
(a) The founding node lands without mesh admission.
land.goforks on the founding shape (no community mesh exists yet),ConfirmEnrolledcarries an honest empty mesh address, and mesh join is deferred to the point the community's mesh exists (post-first-deploy). One repo change; keeps meshup fail-loud for the genuine add-device path (--target device), which joins an already-founded community.(b) Founding stands the community's Netbird management plane up before landing. The CA mints real setup keys against it (
internal/enroll/community_ca.go:145replaced by a real minter —spikes/kanidm-netbird/scripts/oauth2-mint-setupkey.mjsis the precedent), and the/getinstall script (internal/controlapi/install_doorway.go) installs the netbird package on the device. This is a management-plane build plus an infra dependency plus a change to what the install one-liner puts on a stranger's machine.Both amend ADR 0209 (and touch ADR 0039's swap-point), so this is an ADR decision before it is code. Until it is ruled the idip drive cannot clear leg 6, and each re-drive stands up a fresh paid droplet to rediscover the same wall — the drive should stay blocked on this issue.
Secondary observation (cosmetic, NOT the red)
The transcript opens
idss-agent unknown · joiningand prints✓ connection request sent to— the community name is empty, and the release readsunknown.internal/join/cli.go:143and:200renderresp.Community.Name, which is empty in the founding shape. The leg's assertion (app/tests/e2e/journey.idip.spec.ts:341) only greps forconnection request sent, so this did not cause the red — but the founding join's terminal copy names no community to the person consenting to a wipe.drive
20260827T161538Zred atconsent:the terminal join exited 1 --- transcript --- Warning: Permanently added '134.199.173.107' (ED25519) to the list of known hosts. idss-agent unknown · joining How should this machine contribute? [1] Fevidence:
/home/dev/swarm/Matou/idss/test-results/drive-idip/20260827T161538Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedFixed on
main(the #788 session):internal/install.InstallServicenow ensures the mesh client (command -v netbird || pkgs.netbird.io/install.sh) and fails loud when it cannot — since789f250f(#843, ADR 0209) the agent runsnetbird upat the operator's approval, and a plain-Ubuntu self-hosted box shipped none (GOTCHAS #108). Closing; #788 re-drives.Your diagnosis was the right one — the netbird-absence fix (
d53a4de3) was necessary but not the cause. Landed onmainnow: aRoleGatewaygrant carries NO mesh admission (enroll.meshAdmissionFor) andjoin.Enrollskips the mesh gate when the admission is not redeemable — the founding gateway founds the mesh at its own deploy (ADR 0159). Device grants keep the placeholder until #844's management plane mints real keys.TestEnroll_GatewayGrantSkipsMeshAdmissionpins it. #788 re-drives.consentred is already repaired at HEAD (3141ddd1) — what the same transcript still shows open is a nameless community at the WIPE prompt #910netbird uprejectsmesh.internaland no device can land #956netbird uprejectsmesh.internaland no device can land #956