#494: kanidm's "Add Password" click on the droplet ceremony window renders no password field — click fires clean, DOM and network both silent (sig e689ed304acb) #498
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#498
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
sign-inleg red atapp/tests/e2e/fixtures/ceremony.ts:384insideregisterPassword(called fromjourney.droplet.spec.ts:321): after clicking kanidm's "Add Password" control,page.locator('input[type=password]:visible')finds zero fields.artifacts/ceremony/reset-1.png(pre-click) andreset-2.png(post-click, +1.5s wait) are visually and structurally identical — same "Updating Credentials" / Passkeys / "Alternative Authentication Methods" / Add Password screen, no password inputs anywhere, no visible state change at all.Evidence the click itself was clean (not a selector miss)
The Playwright trace (
test.trace, calls around t=304007–304017ms) shows a single, fast, non-retried actionability pass onbutton >> internal:has-text=/Add Password/i >> nth=0— no timeout, no retry loop, no "element not stable/not visible" churn. This rules outclickAny(ceremony.ts:372) hitting a decoy/hidden element or the wrong control: it clicked the one real yellow "ADD PASSWORD" button visible in the screenshot.Evidence nothing happened server-side either
logs/droplet-journal.txt: the only browser-driven request to the reset session is the singleGET /ui/reset?token=8paus-2s3xw-3zzv5-rr5gcat01:12:42(kopide1aa6350-a355-44a5-b5c7-73cc505b24a1) that loaded the page. No further request from that browser/session appears afterward. The two later_credential/_statusGETs (01:12:43,01:12:45) belong to a different session (idm_admin, tokenffdf8618-…) — that's the helper's own out-of-band poll, not the ceremony window. So the click produced no DOM change AND no network call: kanidm's own client code did not react to the click at all, or reacted and errored silently.A likely-unrelated second error
The trace also reports
Protocol error (Page.handleJavaScriptDialog): No dialog is showing— but it fires ~400ms after the real error, during theafterAllteardown hook (pw:api@476at t=306091ms, well after the click at t=304007 and the throw at t=305690). There is no dialog-related trace activity anywhere near the actual click. Recommend the next investigator not chase this as the cause — it reads as teardown noise (likely the Electron ceremony window's own close path), not causally linked to the password-field failure.Suspected layer / candidate causes
ceremony.ts:377waits a fixed 1500ms before clicking "Add Password"; that pacing (per the file's own comments) was proven for the passkey path on kanidm's UI, not necessarily re-validated for this newer password path. If kanidm's client bundle isn't fully interactive yet, a click would land on an inert DOM node — exactly this symptom (no error, no network call, no re-render).dump()(ceremony.ts:247-259) only captures a screenshot + first 600 chars ofbody.innerText(). It wires nopage.on('console')/page.on('pageerror')listener, so if kanidm's click handler threw a JS exception, we would see exactly nothing — as we do here. This needs fixing regardless of the root cause, to unblind the next red run.Why filing, not self-fixing
This is the second consecutive attempt at this exact ceremony function for #494 (
ffe788e790c4then80b26fa7826cboth rewroteregisterPassword/openAppCeremonyWindow), and it is still red on the same class of failure (kanidm's credential-add UI not behaving as scripted). Per DDR 0163's own note inceremony.ts, this leg is "live-lab and unprovable in the Sandcastle sandbox." I have no live droplet/kanidm instance to reproduce against here, so I can't distinguish timing-race from a genuine kanidm bug, and can't verify any candidate fix — none of the self-fix certainty/verifiability bars are met.What plugging it needs
dump()so the next red run tells us whether kanidm's JS actually threw.drive
20260813T010640Zred atsign-in:kanidm password entry rendered no password field after "Add Password" — artifacts/ceremony/reset-N.png shows what rendered (#N)evidence:
test-results/…/20260813T010640Z/on matou-workstation (legs.json, droplet-journal.txt, trace)Analysis + direction (do not land a speculative fix)
Three drives (
214238Zpasskey,003900Z+010640Zpassword) died identically: a kanidm reset-screen click mutates nothing. Two facts narrow it:https://localhost:<port>(drive-4 trace:ceremony window open — origin https://localhost:35699) — anssh -N -Lforward to the box's kanidm (fleetwire/forwards.go, held open by design until shutdown;enrolment.go:188builds the reset URL on it). The page LOADED through that forward (reset-1 renders), so the forward was up at window-open. Whether it was still up at click time is unproven.ourcloud-ceremonypartition, pinned-CAsetCertificateVerifyProc, no preload, contextIsolation) is an unverified assumption, not a proven fact.Diagnostics are already landed (
a1a8f37): the next droplet drive writesartifacts/ceremony/window-diagnostics.log— every console line, page error, request, failure, and response in the ceremony window, wired beforedomcontentloadedso htmx's own script load is captured. A manual evidence drive is running now; its log discriminates:app/src-electron/electron-main.ts(createCeremonyWindow).hx-on) → also window-shape territory; the console lines will name it.ssh -Lforward died between load and click → fix ininternal/fleetwire/forwards.go(keepalive/re-establish) or mint the ceremony on the public IdP door instead.If you are working this ticket before that log exists: do not land a guess. Every plausible-looking blind fix so far (#497's CDP-attach theory included) has been disproven by the next drive at the cost of a full droplet cycle. Wait for the log (it will be quoted here), or if you must close your run, leave findings only.
drive
20260813T013025Zred atsign-in:kanidm password entry rendered no password field after "Add Password" — artifacts/ceremony/reset-N.png shows what rendered (#N)evidence:
test-results/…/20260813T013025Z/on matou-workstation (legs.json, droplet-journal.txt, trace)ROOT CAUSE CONFIRMED — evidence drive
20260813T013025Z, window-diagnostics.logThe diagnostics landed in
a1a8f37answered it in one drive:Not the window shape, not htmx, not the tunnel, not WebAuthn (drive
214238Z's ADD PASSKEY died the same 403 way — the "silent authenticator" was a misread).Why kanidm 403s: the own-VPS gateway renders kanidm with the PUBLIC identity —
domain = id.<apex>,origin = "https://id.<apex>"(internal/clan/frontdoor.go:224,231-232) — butOpenCeremony(internal/fleetwire/enrolment.go:188) builds the reset URL on the localhost ssh -L forward. kanidm's credential-update session cookie is scoped to its configured domain, so at ahttps://localhost:<port>origin the cookie never sticks: the token-bearing GET renders the page, and every session-guarded POST arrives cookieless → 403. The private path never hits this because the VM kanidm's origin IShttps://localhost:<port>(internal/clan/vmguest.go:242) — the "no migration, the OIDC issuer rides it" note in OpenCeremony is private-path reasoning misapplied to the own-VPS branch.The fix (product Go, swarm-landable, next drive verifies)
On the own-VPS path,
OpenCeremonymust build the ceremony URL on the public IdP door —https://id.<apex>/ui/reset?token=…— not the localhost forward:createCeremonyWindow's verify proc passes it onnet::OK— the CA pin simply doesn't engage.MintToken/ theAwaitCredentialpoll keep their idm_admin client over the tunnel — only the WINDOW's URL changes.https://id.<apex>) on the own-VPS branch — thread it from the founding draft's address (the same place the front door getsIDPHost), keeping the private path's localhost shape byte-identical. Unit-test both branches (the enrolment/ownvpspath test files already cover OpenCeremony's URL shape).AC: own-VPS
OpenCeremonyreturnshttps://id.<apex>/ui/reset?token=…; private path unchanged; unit tests pin both; the next drive'ssign-inleg gets a 2xx onadd_password(window-diagnostics.log now proves this either way).swarm-claim host=elitebook-distributed-server-03 run=5466
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #498 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope
public-entry— the checklist row rests done UNCONDITIONALLY, nothing probes the public door (#499 part 1, Ben's ruling) #501