e2e: the oidc-admin leg never navigates to the files door — it waits for Nextcloud's #header on the app's own hand-off screen (violates oidcSignInAsOperator's documented contract; first execution of the leg) #562

Closed
opened 2026-08-15 04:10:41 +00:00 by ben · 2 comments
Owner

Milestone context

Drive 20260815T035522Z — deepest yet again: seeded certs, finish/sign-in/co-host/deploy-files/files-healthy/door ALL green, and branded-login passed its first execution (#560's fresh-context fix rendered the branded kanidm form on the real public door). Red in oidc-admin — the second-to-last parity leg, also on its FIRST ever execution.

Cause — the leg violates its own helper's documented contract

oidcSignInAsOperator (provision.ts:590+) documents: "Assumes the caller has already navigated c.page to the files login page (/login), which auto-redirects" — and warns the page must be one that carries the operator's kanidm session (on the droplet path, the app-owned ceremony window's context; the CDP-authenticator/session notes apply).

The droplet spec's oidc-admin leg (journey.droplet.spec.ts:501+, written in #488, never executed until tonight) calls oidcSignInAsOperator(dash, door, …) with no prior navigation, and dash is the Electron app's dashboard window. The page snapshot at timeout shows exactly that: the app's own hand-off screen ("E2E Drive is alive.", "Open your dashboard ↗") — #header (Nextcloud) can never appear there. 60s timeout, honest red.

Fix directed

  1. In the oidc-admin leg, navigate a page that (a) can goto the public door and (b) carries — or can establish — the operator's kanidm session, to doorPath(door, '/login') BEFORE calling oidcSignInAsOperator. On the droplet path that is the ceremony window's page/context (openAppCeremonyWindow — the session lives there; see the helper's own per-target CDP note), NOT dash: the app dashboard window is product UI and shouldn't be navigated to external URLs by the harness.
  2. Thread the same page into assertOperatorIsAdmin (same call site, same mistake).
  3. Keep the cold-session branch honest: the founding password (#494) stays passed so a cold kanidm login can answer; the warm branch walks straight in.

Evidence

test-results/drive-droplet/20260815T035522Z/artifacts/…/error-context.md — page snapshot is the app hand-off screen; TimeoutError at provision.ts:613 waiting for #header.

Frontier tooth of #492 (blocks it). One leg remains after this: branded-chrome (occ proof over the droplet ssh door).

## Milestone context Drive `20260815T035522Z` — deepest yet again: seeded certs, finish/sign-in/co-host/deploy-files/files-healthy/door ALL green, and **branded-login passed its first execution** (#560's fresh-context fix rendered the branded kanidm form on the real public door). Red in `oidc-admin` — the second-to-last parity leg, also on its FIRST ever execution. ## Cause — the leg violates its own helper's documented contract `oidcSignInAsOperator` (provision.ts:590+) documents: *"Assumes the caller has already navigated `c.page` to the files login page (`/login`), which auto-redirects"* — and warns the page must be one that carries the operator's kanidm session (on the droplet path, the app-owned ceremony window's context; the CDP-authenticator/session notes apply). The droplet spec's oidc-admin leg (journey.droplet.spec.ts:501+, written in #488, never executed until tonight) calls `oidcSignInAsOperator(dash, door, …)` with **no prior navigation**, and `dash` is the Electron app's dashboard window. The page snapshot at timeout shows exactly that: the app's own hand-off screen ("E2E Drive is alive.", "Open your dashboard ↗") — `#header` (Nextcloud) can never appear there. 60s timeout, honest red. ## Fix directed 1. In the oidc-admin leg, navigate a page that (a) can goto the public door and (b) carries — or can establish — the operator's kanidm session, to `doorPath(door, '/login')` BEFORE calling `oidcSignInAsOperator`. On the droplet path that is the ceremony window's page/context (`openAppCeremonyWindow` — the session lives there; see the helper's own per-target CDP note), NOT `dash`: the app dashboard window is product UI and shouldn't be navigated to external URLs by the harness. 2. Thread the same page into `assertOperatorIsAdmin` (same call site, same mistake). 3. Keep the cold-session branch honest: the founding password (#494) stays passed so a cold kanidm login can answer; the warm branch walks straight in. ## Evidence `test-results/drive-droplet/20260815T035522Z/artifacts/…/error-context.md` — page snapshot is the app hand-off screen; TimeoutError at provision.ts:613 waiting for `#header`. Frontier tooth of #492 (blocks it). One leg remains after this: branded-chrome (occ proof over the droplet ssh door).
Author
Owner

swarm-claim host=elitebook-distributed-server-03 run=6645
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=6645 (automated multi-host claim — lowest live claim id works this ticket)
Author
Owner

close-report for #562 — status success

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

envelope
{
  "issue": 562,
  "status": "success",
  "commits": [
    "eb0795d"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/journey.droplet.spec.ts"
  ],
  "tests": [
    {
      "command": "vue-tsc -p tsconfig.json (app)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "oidc-admin leg navigates a session-bearing page to doorPath(door,'/login') before calling oidcSignInAsOperator": "app/tests/e2e/journey.droplet.spec.ts — ceremony.goto(doorPath(door,'/login')) precedes oidcSignInAsOperator(ceremony,...); the ceremony window (openAppCeremonyWindow) carries the operator's kanidm session, not the app dashboard",
    "same page threaded into assertOperatorIsAdmin": "same leg passes `ceremony` to assertOperatorIsAdmin(ceremony, door)",
    "cold-session branch stays honest — founding password still passed": "OPERATOR_PASSWORD (#494) still passed as 4th arg to oidcSignInAsOperator so a cold kanidm login can answer; warm session walks straight in",
    "helper contract honored (caller pre-navigates c.page to /login)": "oidcSignInAsOperator docstring 'Assumes the caller has already navigated c.page to the files login page' is now satisfied by the leg's prior goto — vue-tsc green"
  },
  "summary": "The droplet oidc-admin leg now navigates the session-bearing ceremony window to the public files /login door before signing the operator in, so oidcSignInAsOperator no longer waits for Nextcloud's #header on the app's own hand-off screen.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #562 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 562, "status": "success", "commits": [ "eb0795d" ], "changed_files": [ "STATUS.md", "app/tests/e2e/journey.droplet.spec.ts" ], "tests": [ { "command": "vue-tsc -p tsconfig.json (app)", "exit_code": 0 } ], "criteria": { "oidc-admin leg navigates a session-bearing page to doorPath(door,'/login') before calling oidcSignInAsOperator": "app/tests/e2e/journey.droplet.spec.ts — ceremony.goto(doorPath(door,'/login')) precedes oidcSignInAsOperator(ceremony,...); the ceremony window (openAppCeremonyWindow) carries the operator's kanidm session, not the app dashboard", "same page threaded into assertOperatorIsAdmin": "same leg passes `ceremony` to assertOperatorIsAdmin(ceremony, door)", "cold-session branch stays honest — founding password still passed": "OPERATOR_PASSWORD (#494) still passed as 4th arg to oidcSignInAsOperator so a cold kanidm login can answer; warm session walks straight in", "helper contract honored (caller pre-navigates c.page to /login)": "oidcSignInAsOperator docstring 'Assumes the caller has already navigated c.page to the files login page' is now satisfied by the leg's prior goto — vue-tsc green" }, "summary": "The droplet oidc-admin leg now navigates the session-bearing ceremony window to the public files /login door before signing the operator in, so oidcSignInAsOperator no longer waits for Nextcloud's #header on the app's own hand-off screen.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
ben closed this issue 2026-08-15 04:16:30 +00:00
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#562
No description provided.