mesh plane: provision the plane's API credential at the seed leg — neither carrier issues a service token, so Approve has nothing to mint with (ADR 0214 d.3 residue of #961/#963) #973
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#973
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?
Parent
Spec #960 · ADR 0214 decision 3/4 · named residue of #961 (V1 fallback) and #963 (
IDSS_MESH_TOKEN_FILE/netbird-api-tokenclan var declared, never provisioned). Blocks the live half of #963, #964 and the phase-5 drive #854: with no token the minter is honestErrNoMeshPlaneat Approve.The gap
#961's V1 found that neither carrier issues a non-interactive token the mesh plane accepts: kanidm has no client-credentials grant, the
idss-idpbridge is authorization-code-only. The fallback recorded — a Netbird service-user PAT held as a clan var — has a bootstrap hole the spike named: on a fresh single-account plane, the first PAT can only be minted by a user who has already logged in through OIDC, and nobody has (decision 3: members never log in; the operator's founding ceremony has no Netbird step).Options
AuthIssuer/AuthKeysLocationpointing at a gateway-local JWKS the control plane serves (it already runs an OIDC provider on the IDIP path), signed with a clan-var key minted at the seed leg; the control plane mints its own short-lived service JWT per API call. No PAT, no first-login bootstrap, no kanidm/bridge dependency, identical on both carriers, and decision 3 becomes literally true. Netbird's OIDC config endpoint is then not set on the plane (its/apiis only ever called from localhost by the control plane; the front door's/apiroute can be dropped). Amends ADR 0214 d.3's token source and the management OIDC wiring; theMeshMinterport andNetbirdMinteradapter keep their shape (bearer in, setup key out).Acceptance (for whichever is ruled)
Approvemints a real setup key with no human step;ErrNoMeshPlaneonly when the plane is genuinely absent.approvegreen onrehearsal-d.Why human
Choosing the issuer of the mesh plane's admin credential is a security-posture call (who can mint peers into the community network). (A) is revertible and keeps every existing gate, so it is arguably a two-way door — but it re-wires the plane's auth, so Ben gets the veto before code. One line ("A") re-arms it.
Ben ruled A (2026-08-29): the control plane is the mesh plane's own issuer.
Build:
netbird-api-signing-key, on-box generated at the seed leg likenetbird-datastore) holding the signing key; the control plane serves its JWKS at a gateway-local path and mints a short-lived service JWT per management API call; management is rendered with explicitAuthIssuer/AuthKeysLocation/AuthAudiencepointing at it and noOIDCConfigEndpoint— the front door's/apiroute is dropped (only localhost calls/api).NetbirdMinterkeeps its shape (bearer in, setup key out); the PAT env/var from #963 (IDSS_MESH_TOKEN_FILE/netbird-api-token) is replaced by the key-file export — one honest log line either way, nil =ErrNoMeshPlane.idss-mesh-self-admitun-rests using the same token source.approve→ConfirmEnrolledwith a realwt0.Re-armed
ready-for-agent.swarm-claim host=matou-dev-server-01 run=13650
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #973 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope