sign-in: CDP WebAuthn authenticator silenced ADD PASSWORD (stale checkout, fixed at HEAD) #497

Closed
opened 2026-08-13 01:01:39 +00:00 by ben · 4 comments
Owner

Failure

The sign-in leg (4154ms) turned red:

kanidm add-password screen rendered no password field — artifacts/ceremony/reset-2.png shows what did

artifacts/ceremony/reset-1.png and reset-2.png (~1.7s apart, before/after the "ADD PASSWORD" click) are visually identical — both show the "Updating Credentials" screen still offering "ADD PASSKEY" / "ADD PASSWORD" buttons; no password field ever appeared.

Evidence

logs/droplet-journal.txt shows the reset ceremony reaching kanidm but never completing a write:

Aug 13 00:45:42 ... GET /v1/person/operator/_credential/_update_intent ... status_code: 200
Aug 13 00:45:43 ... GET /ui/reset?token=rvcqf-58bqg-x7fak-wbwfa ... status_code: 200
Aug 13 00:45:44 ... GET /v1/person/operator/_credential/_status ... status_code: 200
Aug 13 00:45:46 ... GET /v1/person/operator/_credential/_status ... status_code: 200

grep _credential logs/droplet-journal.txt returns only those four GETs — there is no POST/PUT to _credential/_update anywhere in the journal. The click on ADD PASSWORD reached the reset page and kanidm answered every status poll cleanly (200s throughout, no server-side errors after startup); the ceremony window's own app JS simply never issued the write.

Diagnosis (already recorded by the healer, logs/healer-claude.out)

This drive checked out commit ffe788e ("the rehearsal drive's sign-in leg drives the PASSWORD ceremony, not the passkey"). At that commit, openAppCeremonyWindow (app/tests/e2e/fixtures/ceremony.ts) still called attachAuthenticator, wiring a CDP virtual WebAuthn authenticator onto the app's own pinned-CA ceremony window — even though registerPassword/loginWithPassword no longer need one. That's the same CDP contamination that silenced ADD PASSKEY under the original #494; here it silenced ADD PASSWORD instead.

The fix is already on the tree: HEAD is 80b26fa ("the founding drive signs in on a PASSWORD, not a passkey — ADR 0170"), landed 2026-08-13 00:41:03Z, ~2 minutes after this drive's 00:39 start. openAppCeremonyWindow now returns a bare Page with no attachAuthenticator call anywhere in the droplet ceremony path — closing the exact gap ffe788e left open.

Suspected layer

Harness (test fixture: app/tests/e2e/fixtures/ceremony.ts) — not product code, not infra. kanidm itself behaved correctly throughout.

What plugging it needs

Nothing further to build — the defect is already fixed at HEAD (80b26fa). This red is a stale-checkout artifact: the drive pinned ffe788e moments before the fix landed. Re-run the #183 rehearsal drive against current HEAD to confirm sign-in goes green; if it stays red there, that's a new/different defect deserving its own issue.

Not the known frontier

This is not the known own-VPS pairing frontier — pair and mesh both ran green (4ms/5ms) in this drive, so the carrier-pairing gap named in legs.json's skip reasons doesn't apply here.

drive 20260813T003900Z red at sign-in: kanidm add-password screen rendered no password field — artifacts/ceremony/reset-N.png shows what did
evidence: test-results/…/20260813T003900Z/ on matou-workstation (legs.json, droplet-journal.txt, trace)

## Failure The `sign-in` leg (4154ms) turned red: > kanidm add-password screen rendered no password field — artifacts/ceremony/reset-2.png shows what did `artifacts/ceremony/reset-1.png` and `reset-2.png` (~1.7s apart, before/after the "ADD PASSWORD" click) are visually identical — both show the "Updating Credentials" screen still offering "ADD PASSKEY" / "ADD PASSWORD" buttons; no password field ever appeared. ## Evidence `logs/droplet-journal.txt` shows the reset ceremony reaching kanidm but never completing a write: ``` Aug 13 00:45:42 ... GET /v1/person/operator/_credential/_update_intent ... status_code: 200 Aug 13 00:45:43 ... GET /ui/reset?token=rvcqf-58bqg-x7fak-wbwfa ... status_code: 200 Aug 13 00:45:44 ... GET /v1/person/operator/_credential/_status ... status_code: 200 Aug 13 00:45:46 ... GET /v1/person/operator/_credential/_status ... status_code: 200 ``` `grep _credential logs/droplet-journal.txt` returns only those four GETs — there is no POST/PUT to `_credential/_update` anywhere in the journal. The click on ADD PASSWORD reached the reset page and kanidm answered every status poll cleanly (200s throughout, no server-side errors after startup); the ceremony window's own app JS simply never issued the write. ## Diagnosis (already recorded by the healer, `logs/healer-claude.out`) This drive checked out commit `ffe788e` ("the rehearsal drive's sign-in leg drives the PASSWORD ceremony, not the passkey"). At that commit, `openAppCeremonyWindow` (`app/tests/e2e/fixtures/ceremony.ts`) still called `attachAuthenticator`, wiring a CDP virtual WebAuthn authenticator onto the app's own pinned-CA ceremony window — even though `registerPassword`/`loginWithPassword` no longer need one. That's the same CDP contamination that silenced ADD PASSKEY under the original #494; here it silenced ADD PASSWORD instead. The fix is already on the tree: HEAD is `80b26fa` ("the founding drive signs in on a PASSWORD, not a passkey — ADR 0170"), landed 2026-08-13 00:41:03Z, ~2 minutes after this drive's 00:39 start. `openAppCeremonyWindow` now returns a bare `Page` with no `attachAuthenticator` call anywhere in the droplet ceremony path — closing the exact gap `ffe788e` left open. ## Suspected layer **Harness** (test fixture: `app/tests/e2e/fixtures/ceremony.ts`) — not product code, not infra. kanidm itself behaved correctly throughout. ## What plugging it needs Nothing further to build — the defect is already fixed at HEAD (`80b26fa`). This red is a stale-checkout artifact: the drive pinned `ffe788e` moments before the fix landed. Re-run the #183 rehearsal drive against current HEAD to confirm `sign-in` goes green; if it stays red there, that's a new/different defect deserving its own issue. ## Not the known frontier This is not the known own-VPS pairing frontier — `pair` and `mesh` both ran green (4ms/5ms) in this drive, so the carrier-pairing gap named in legs.json's skip reasons doesn't apply here. drive `20260813T003900Z` red at `sign-in`: `kanidm add-password screen rendered no password field — artifacts/ceremony/reset-N.png shows what did` evidence: `test-results/…/20260813T003900Z/` on matou-workstation (legs.json, droplet-journal.txt, trace) <!-- rehearsal-sig: e689ed304acb -->
Author
Owner

swarm-claim host=matou-dev-server-01 run=5433
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=5433 (automated multi-host claim — lowest live claim id works this ticket)
Author
Owner

close-report for #497 — status success

✅ close-report gates passed — every claim verified against main; closing.

envelope
{
  "issue": 497,
  "status": "success",
  "commits": [],
  "changed_files": [],
  "tests": [
    {
      "command": "git merge-base --is-ancestor 80b26fa origin/main",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The ADD-PASSWORD-silencing defect is gone at HEAD": "app/tests/e2e/fixtures/ceremony.ts@80b26fa: openAppCeremonyWindow (line 230) returns a bare Page; the `return attachAuthenticator(page)` present at ffe788e:232 is removed. attachAuthenticator survives only inside openCeremonyBrowser (line 197), the external-Chromium private path.",
    "The droplet ceremony path attaches no CDP authenticator": "app/tests/e2e/journey.droplet.spec.ts:304 opens openAppCeremonyWindow and drives registerPassword/loginWithPassword (lines ~320,332) against the bare Page — grep for attachAuthenticator across app/tests/ returns only ceremony.ts:136 (definition) and :197 (private path).",
    "The fix is landed and reachable": "git merge-base --is-ancestor 80b26fa origin/main exits 0 — HEAD == origin/main == 80b26fa."
  },
  "summary": "The #494 CDP-contamination defect that silenced ADD PASSWORD is already fixed at HEAD (80b26fa); this red was a stale checkout of ffe788e pinned ~2 min before the fix landed.",
  "reason": "This is not an implementable slice: the issue body itself concludes 'Nothing further to build — the defect is already fixed at HEAD'. In-sandbox verification confirms openAppCeremonyWindow no longer attaches a CDP virtual authenticator (only the external-Chromium private path does), so the droplet sign-in leg drives kanidm's ADD PASSWORD uncontaminated. The prescribed confirmation — re-running the #183 rehearsal drive against current HEAD — is a live-lab rehearsal-harness action outside a Sandcastle sandbox slice, and the next rehearsal drive against HEAD will exercise it.",
  "blockers": [],
  "no_code_change": "Stale-checkout artifact: the ceremony-fixture fix (removing attachAuthenticator from openAppCeremonyWindow) already exists at HEAD 80b26fa on origin/main. No new code is required; a code change here would duplicate work already merged and possibly regress it."
}
**close-report** for #497 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 497, "status": "success", "commits": [], "changed_files": [], "tests": [ { "command": "git merge-base --is-ancestor 80b26fa origin/main", "exit_code": 0 } ], "criteria": { "The ADD-PASSWORD-silencing defect is gone at HEAD": "app/tests/e2e/fixtures/ceremony.ts@80b26fa: openAppCeremonyWindow (line 230) returns a bare Page; the `return attachAuthenticator(page)` present at ffe788e:232 is removed. attachAuthenticator survives only inside openCeremonyBrowser (line 197), the external-Chromium private path.", "The droplet ceremony path attaches no CDP authenticator": "app/tests/e2e/journey.droplet.spec.ts:304 opens openAppCeremonyWindow and drives registerPassword/loginWithPassword (lines ~320,332) against the bare Page — grep for attachAuthenticator across app/tests/ returns only ceremony.ts:136 (definition) and :197 (private path).", "The fix is landed and reachable": "git merge-base --is-ancestor 80b26fa origin/main exits 0 — HEAD == origin/main == 80b26fa." }, "summary": "The #494 CDP-contamination defect that silenced ADD PASSWORD is already fixed at HEAD (80b26fa); this red was a stale checkout of ffe788e pinned ~2 min before the fix landed.", "reason": "This is not an implementable slice: the issue body itself concludes 'Nothing further to build — the defect is already fixed at HEAD'. In-sandbox verification confirms openAppCeremonyWindow no longer attaches a CDP virtual authenticator (only the external-Chromium private path does), so the droplet sign-in leg drives kanidm's ADD PASSWORD uncontaminated. The prescribed confirmation — re-running the #183 rehearsal drive against current HEAD — is a live-lab rehearsal-harness action outside a Sandcastle sandbox slice, and the next rehearsal drive against HEAD will exercise it.", "blockers": [], "no_code_change": "Stale-checkout artifact: the ceremony-fixture fix (removing attachAuthenticator from openAppCeremonyWindow) already exists at HEAD 80b26fa on origin/main. No new code is required; a code change here would duplicate work already merged and possibly regress it." } ``` </details>
ben closed this issue 2026-08-13 01:04:21 +00:00
Author
Owner

HOLD — the title/body framing is wrong, do not implement against it. The error text ("kanidm add-password screen rendered no password field") comes FROM ffe788e's new registerPassword, so HEAD ran — there is no stale checkout. Evidence (drive 20260813T003900Z reset-1 vs reset-2: pixel-identical after the ADD PASSWORD click, exactly like drive 214238Z's ADD PASSKEY): NO click mutates the page in the app ceremony window — kanidm's buttons are htmx (hx-post + swap), and nothing swaps. This is not WebAuthn and not the password dialog: it is clicks-have-no-effect in that window. Trace analysis incoming on this issue within the hour — wait for it.

HOLD — the title/body framing is wrong, do not implement against it. The error text (\"kanidm add-password screen rendered no password field\") comes FROM ffe788e's new registerPassword, so HEAD ran — there is no stale checkout. Evidence (drive 20260813T003900Z reset-1 vs reset-2: pixel-identical after the ADD PASSWORD click, exactly like drive 214238Z's ADD PASSKEY): NO click mutates the page in the app ceremony window — kanidm's buttons are htmx (hx-post + swap), and nothing swaps. This is not WebAuthn and not the password dialog: it is clicks-have-no-effect in that window. Trace analysis incoming on this issue within the hour — wait for it.
Author
Owner

Follow-through on the promised trace analysis: root cause confirmed on #498 — kanidm 403s every credential-update POST because the own-VPS ceremony window reaches it on the localhost forward while kanidm's cookie is scoped to its public domain (frontdoor.go origin vs enrolment.go OpenCeremony). The CDP-attach theory this ticket closed on was coincidental — the passkey click died the same 403, invisible until window-diagnostics.log (a1a8f37).

Follow-through on the promised trace analysis: root cause confirmed on #498 — kanidm 403s every credential-update POST because the own-VPS ceremony window reaches it on the localhost forward while kanidm's cookie is scoped to its public domain (frontdoor.go origin vs enrolment.go OpenCeremony). The CDP-attach theory this ticket closed on was coincidental — the passkey click died the same 403, invisible until window-diagnostics.log (a1a8f37).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#497
No description provided.