founding: the IDIP path still mints a kanidm credential-enrolment token at seeding — the drive reds at activation on a CA pointer that path never bakes #966
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.
Blocks
Reference
Matou/idss#966
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
The
#788IDIP drive (test-results/drive-idip/20260828T214054Z) is green throughdeploy-takeover(433 s, box live) and reds at leg 11,activation(artifacts/legs.json:53,artifacts/verdict.json—firstRedLeg: activation, commit7f31601):SSH connected fine (it fell back to the ambient agent key and ran the command). The command itself failed: the file it reads does not exist on an IDIP gateway.
Evidence
The read.
internal/fleetwire/enrolment.go:114-125(liveCA) runscat "$(cat /etc/idss/kanidm-ca-path)"over the guest-trust SSH connection;internal/fleetwire/enrolment.go:136does the same inliveIDP, plus/etc/idss/kanidm-idm-admin-pathat:137.The pointer is deliberately absent on this path.
internal/clan/vmguest.go:147dispatches torenderGatewayGuestIDIP(:213) whenGatewayFacts.IdentityIDIPis set, and that render callsgatewaySecretPointersIDIP(internal/clan/vmguest.go:929-935), which emits only the alert-contact/etcfiles — noidss/kanidm-ca-path, noidss/kanidm-idm-admin-path. Contrast the kanidm-pathgatewaySecretPointersatinternal/clan/vmguest.go:507-518, which is where those two pointers come from. There is no kanidm on the IDIP gateway at all (DDR 0200 / #778,vmguest.go:199-212), and the run confirms it:logs/droplet-units.txtshowsidss-idpon127.0.0.1:8465and keria on3901-3903, with no kanidm listener anywhere.The caller is ungated.
internal/founding/seed.go:279-286:The only condition is "is the face wired". It never consults
s.Draft.Identity, even thoughfounding.IdentityIDIPexists (internal/founding/draft.go:136) ands.Draft.Identityis right there in the same call. The state document for this run recordsdraft.identity: "idip"(state/founding-state.json).The face is wired unconditionally.
app/helper/cmd/helper/wiring_prod.go:623-632always installsfounding.WithEnrolment(fleetwire.NewEnrolment(...))— the kanidm face — regardless of the identity choice.Gating seeding alone is not enough.
internal/founding/handoff.go:427(MintToken) and:438(OpenCeremony) call the same kanidm face again at the S12 passkey step. A gate atseed.go:279only moves the red one leg downstream, intoOpenEnrolment.Suspected layer
internal/founding(the orchestrator's identity-blind hand-off arc), with a consequent wiring question inapp/helper/cmd/helper/wiring_prod.go. The clan render layer is correct as-is — it is the founding orchestrator that has not been walked for the IDIP path.What plugging it needs — this needs a design ruling first
ADR 0199 (
docs/adr/0199-idip-v1-surface-rulings-kanidm-tier-walked.md) is the ruling that walked "every kanidm-specific surface" for the IDIP path — credential floor, branded IdP login, files door,gate-oidcprovisioning, mail, Netbird auth. Its table has no row for ADR 0046's credential-enrolment token or the S12 passkey ceremony (founding stories 27-32,docs/slices/founding.yaml:76). That surface was missed, and this red is the miss surfacing.ADR 0195 is the nearest signal that it has no counterpart: "Passkeys — Out for v1: no passkey-wrapped mnemonic; ADR 0170's credential-floor ruling stays kanidm-only" (
docs/adr/0195-idip-founder-ceremony-mnemonic-and-rescue-ladder.md:54-57). On the IDIP path the operator's credential is the founder AID + operator membership ACDC minted by the identity legs (docs/slices/idip.yaml:134-158, task #779) — not a kanidm passkey. That strongly suggests the answer is "no token, no ceremony, on this path", but the hand-off's shape without S12 (what S12 renders, whatCeremony/HandOff.Enrolmentmean, whether the enrolment face is simply not wired) is a design decision, not a mechanical gate.Once ruled, the plumbing is roughly:
internal/founding/seed.go:279ons.Draft.Identity != IdentityIDIP(or on the presence of an identity-appropriate enrolment face).internal/founding/handoff.go:409-445(OpenEnrolment) for the same path — otherwise the red simply reappears one leg later.wiring_prod.go:623should stop wiring the kanidm face when the draft is IDIP, so the port stays nil and founding fails loud honestly per ADR 0100 rather than SSHing at a file that cannot exist.go test ./internal/founding/seam test that drives a seed + hand-off withDraft.Identity = IdentityIDIPand asserts the kanidm enrolment face is never called — the regression this drive paid a droplet to find.Second, distinct fault on the same screen — do not lose it
The activation screenshot (
artifacts/legs/activation.png) and page snapshot (artifacts/journey.idip-.../error-context.md, page-snapshotref=f1e55-f1e70) show the founder-AID identity row failed independently of the fault above:The row above it is green (
✓ Identity service — KERIA + witness + sign-in door live (door probe passed)), and the box agrees: KERIA started clean at 21:46:57 (logs/droplet-journal.txt:595,728) and its boot/admin/agent ports 3901/3902/3903 are listening (logs/droplet-units.txt). So the stack is up and the renderer's signify-ts client never completed KERIA'sbootfor that controller — it asked for an agent that was never created, or booted against a different KERIA/passcode than the one it then connected with. That is task #779 (idip:founding-identity-legs), and it is the very thing leg 12a (identity-rows,journey.idip.spec.ts:483-487) exists to check — a leg this drive never reached. Whoever fixes the enrolment-token gate above will re-fire straight into this one unless it is fixed in the same arc.Two smaller things worth naming (neither is the red)
wiring_prod.go:624keys the enrolment adapter onguestTrustDir()/id_ed25519=<state>/guest-trust/id_ed25519, which this self-hosted journey never mints — the run'sstate/carriesown-vps/holdingknown_hostsandknown_hosts.oldonly, and noguest-trust/directory at all. Every enrolment SSH on the self-hosted path is therefore silently falling back to the ambient agent key. It worked here by luck; it is not a contract.cat "$(cat /etc/idss/kanidm-ca-path)"(enrolment.go:120,:136) swallows the innercat's exit and then runscat "", so the operator-facing fault carries a bafflingcat: '': No such file or directorybeside the real cause. A guard (p=$(cat …) || exit; cat "$p") would name the missing pointer once, cleanly.drive
20260828T214054Zred atactivation:activation faulted: founding: mint the credential-enrolment token at seeding: fleetwire: read the kanidm trust anchor: fleetwire: ssh: exit status 1 — Warning: Identity file /home/dev/swarm/Matou/idevidence:
/home/dev/swarm/Matou/idss/test-results/drive-idip/20260828T214054Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedRuled by agent under ADR 0174 — veto anytime.
The ruling (design-tier, two-way door)
ADR 0199 walked "every kanidm-specific surface" for the IDIP path but had no
row for ADR 0046's credential-enrolment token or the S12 passkey ceremony — the
miss this drive surfaced. New ADR 0215 rules that row: N/A for IDIP. On
the IDIP path the operator's person credential is the founder AID +
operator-membership ACDC the identity legs mint (ADRs 0197/0198/0200), so there
is no token to mint at seeding and no ceremony to carry one — consistent with ADR
0195 (passkeys out for v1; the credential floor stays kanidm-only). This is the
ticket's proposed default, adopted.
Why a two-way door: ADR 0174 rule 1 puts design-tier accepts (DDRs) inside
the agent's authority; the change is revertible with a commit and provable by an
offline seam test; it widens no security posture, spends nothing, and touches no
one-way door.
What landed — commit
dd1e56ecdocs/adr/0215-idip-credential-enrolment-surface-has-no-counterpart.md) — rules the missing ADR 0199 row.internal/founding/seed.go— seeding mints nothing on IDIP (the red atseed.go:280) and logs why, gated ons.Draft.Identityvia a newmintsEnrolmentTokenpredicate.internal/founding/handoff.go—OpenEnrolment/AwaitEnrolmentfail loud withErrEnrolmentNotOnIDIPon IDIP rather than SSH at an absent kanidm (ADR 0100);BeginHandOffno longer advertises the kanidm branded enrolment screen on IDIP. The enrolment face stays wired identity-blind (wiring_prod.go) — the orchestrator gates, since it is the layer that knows the identity choice.docs/architecture/09-founding-sequence.md— derived-view note that the token mint is kanidm-path-only (ADR 0042).STATUS.md— new lead, same commit.Proof
Red-first, entirely offline:
TestIDIP_KanidmEnrolmentFaceNeverCalled(
internal/founding/handoff_test.go) drives seed + hand-off withDraft.Identity = IdentityIDIPand asserts the kanidm face is never mintedagainst (
Minted == 0) and both ceremony ops fail loud. Compile-red before theErrEnrolmentNotOnIDIPsentinel + gates existed; green after.go build(+-tags dev)/vet/go test ./internal/foundingall green.Named residue — filed, deliberately NOT pulled into this ticket (ADR 0174 rule 1)
identity-rows("agent does not exist for controller …", a signify-ts/KERIA renderer boot fault). This is why the #788 drive is not yet fully green — it is a distinct bug in a distinct layer, not #966.cat ''error line).FoundingHandOff.vue's kanidm passkey CTA;maybeFinishgated onenrolment.registered, which never completes on IDIP).Closing: the enrolment-token red this ticket names is fixed and proven. The
drive's next red (identity-rows) is a separate, filed regression (#968).