self-hosted activation: confirm whether idm_admin desyncs across the second apply (value-vs-timing) — live-droplet forensic #640
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.
Dependencies
No dependencies set.
Reference
Matou/idss#640
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?
Confirm whether
idm_adminactually desyncs across the second apply — value-vs-timing, live-droplet forensic (the deeper question #636 deferred)ddbc3d13explicitly closed only the named code gap in #636 ("a Begin-step lockout blindly submitted Cred into a dead session, 500ing instead of denying") and routed the deeper question here: why does founding's flip trigger a secondswitch-to-configuration, and does theidm_adminsecret the app reads genuinely desync across it? This ticket carries that, plus new artifact forensics that falsify the original "the git secret rotates" framing and sharpen the experiment.What the real drive's artifacts already prove (drive
20260821T070234Z, matou-workstation)Two config-repo snapshots were captured (
state/clan-config.pre-flip,state/clan-config):kanidm-admins/idm_admin/secret= one commit (4ee8d3f 07:04:12), ciphertext blob byte-identical (1c2587a…) in both. The git secret does NOT rotate. GOTCHAS-#5 regenerate is not the mechanism.vmguest.go:171) and the provision block'sidmAdminPasswordFile(vmguest.go:277) are the same path (kanidm-admins.files.idm_admin.path);e.idp = e.liveIDP(fleetwire/enrolment.go:105) is not memoized (re-reads the secret fresh over SSH each mint). No two-path divergence, no app-side stale cache.The failure sequence (this drive predates #631/#633/#634/#635/#636 — all now landed)
logs/droplet-journal.txt:kanidmd[1059]07:07:51: recover-account → app auth Success, token2e8ac70d. Control-plane binary absent (/srv/idss/bin/control-plane: No such file, exit 127) → this is why apply-2 exists (now fixed by #631).switch-to-configuration07:10:11 →kanidmd[5046]07:10:13: recover-account revokes the app's boot-1 token (issuing credential no longer exists | session_id: 2e8ac70d); the box's own provision re-auths Success.idm_adminauth isDenied - incorrect password×3 (07:10:21/24/26) →Account temporarily locked/AU0001InvalidState07:10:29 = the 500.The unresolved question this ticket exists to settle
The box's own provision authed Success at 07:10:13, yet the app was denied
incorrect passwordat 07:10:21 reading the same nominal secret. That is either:#635settle-retry +ddbc3d13typed-denial already ride out — in which case a fresh drive on the new binary greens and this ticket closes; ornixos-anywhere --extra-filesinstall snapshot) vs apply-2 (sops-nix runtime decrypt) — which retry cannot fix and needs a materialization-layer fix.Cheapest resolution: a verification drive on the new binary FIRST
Five activation fixes (#631/#633/#634/#635/#636) landed after the only self-hosted drive we have. Re-run the standing drive (
#523) on≥b78d7b8before building lab tooling: green past activation ⇒ close this. Still red at the lockout with#635in place ⇒ that run's forensics separate timing-vs-value directly.If still red — the narrowed live experiment (from the 22:22Z session, confirmed correct)
Blank
clan-lab create --freshdroplet (NOT the golden 3-VM snapshot — those are nevernixos-anywhere-installed) + justclan.core.vars.generators.kanidm-admins(verbatim fromvmguest.gokanidmGenerators(); default"services"phase IS in nixos-anywhere's pre-delivered set).clan machines install targetthenclan machines update target. Capturesha256sum+readlink -fof/run/secrets/vars/kanidm-admins/idm_adminafter each apply. Same bytes ⇒ timing (land exponential backoff on#635's fixed-2s retry, which can feed kanidm's exponential soft-lockout). Different bytes ⇒ materialization fix.clanCLI is prebuilt at/nix/store/8wsdr1zjjlkd0m6d8xliw20nznh9nnay-clan-cli/bin/clan. NOTE: the standing drive cannot run from inside aready-for-sessionsession (host lock #577/ADR 0184) — use a dedicated host window or the separate clan-lab droplet.ready-for-human: the remaining ask is a spend/approach call (run the verification drive; if red, spend a droplet on the experiment), not more of the code gapddbc3d13already closed.Closing as moot — activation is proven clear (13/13 green)
Drive
20260822T002633Zran the self-hosted journey GREEN end-to-end, all 13 legs — activation included. This ticket existed to settle the "value-vs-timing" question behind #636's activation 500. That question is now answered by a different finding, not the materialization desync this ticket hypothesised:ExecRunner.Runswallowing an SSHWarning: Permanently added…(from #633's host-key rotation) into the exact-match idm_admin password viaCombinedOutput(). Fixed inbd353b3(stdout/stderr split).No live-droplet forensic needed. Closing.