operator-archive: 8 of 10 door reds are the roles-proof walk, 2 are per-app OIDC #1602

Closed
opened 2026-09-18 19:53:12 +00:00 by matou-build-agent · 1 comment

The run

artifacts/verdict.json:

{"verdict": "red", "target": "rented-services",
 "legs": {"total": 45, "green": 35, "red": 10, "skip": 0},
 "firstRedLeg": "operator-archive", "commit": "fb2d2b3c97eb..."}

This is not the known frontier. Pairing flipped: {"leg": "pair", "status": "green", "ms": 235}, and skip: 0 — legs.json carries no skip reason at all, so no leg was waived for the own-VPS carrier. Everything through member-files is green; the ten reds are five operator-<slug>/member-<slug> pairs in the new #1547 roles proof, which has never run to completion before (the three earlier run dirs contain no door legs).

Live box: the ssh line in the brief was refused — root@134.199.157.41: Permission denied (publickey,keyboard-interactive). It carries no identity. artifacts/live-box.json records the drive's own per-run key and that line worked; everything below marked (box) was read read-only through it.

The ten reds have three causes, and only one of them is product.


A — the walk enters at the community's PUBLIC page (archive, surveys, newsletters: 6 legs)

legs.json:

operator-archive     red 67512ms  archive: proof-operator's walk reached neither the app's own login nor a
  login form at https://archive.roles-proof.idss.nz/ (looked for "#navigation, #user-bar" /
  "form input[name=\"email\"]") — the page reads: "Roles Proof Sites Roles Proof of 1 1–1 of 1
  Go to the Admin dashboard to start working with Roles Proof. Powered by Omeka S"

operator-surveys     red 67123ms  ... "Roles Proof The following surveys are available: Please
  contact Your Name ( your-email@example.net ) for further assistance. ..."

operator-newsletters red 66946ms  ... "Login Subscribe Mailing list archive Powered by listmonk"

The screenshots settle it — operator-archive-step1-neither.png is Omeka S's public site index, operator-surveys-step1-neither.png is LimeSurvey's public survey list, operator-newsletters-step1-neither.png is listmonk's OIDC landing card. Step 0 in every case is kanidm's "Authenticate to access Community sign-in", so the community front door worked and the walk signed in; it then landed on a page where the profile's markers cannot exist.

app/tests/e2e/fixtures/roleDoors.ts:walkDoorAs only ever visits the bare address:

await page.goto(door, { waitUntil: 'domcontentloaded' });

…and door is the address field from artifacts/services-rows.json (https://archive.roles-proof.idss.nz). DoorProfile (rolesProof.ts) has posture / signedIn / ownLogin / admin and no entry path. Omeka S serves input[name="email"] at /login, LimeSurvey's #sidebar chrome at /admin, listmonk's aside.sidebar at /admin — never at /. The uniform ~67 s is readLanding's 60 s deadline burning down before 'neither'.

The green control fits: files, data-collections (Grist) and document-archive all serve their app at /, and all three got past this point.

B — Gramps Web's sign-in button is invisible to the hop (whakapapa: 2 legs)

operator-whakapapa red 8896ms  whakapapa (oidc) showed its OWN login form to proof-operator at
  https://whakapapa.roles-proof.idss.nz/login — the community sign-in did not reach inside the
  app (a second login form); the page reads: ""

The walk does have a rescue — clickAny(page, SSO_BUTTONS), and 'Continue with' is in SSO_BUTTONS. operator-whakapapa-step1-own-login.png shows the button, labelled "Continue with kanidm". It still never fired, and the page reads: "" is the tell: bodyWords does body.innerText(), which returns empty because Gramps Web is entirely shadow-DOM.

clickAny (ceremony.ts:404) searches only four tag shapes:

for (const sel of ['button', 'a', 'input[type=submit]', '[role=button]'])

Grepping the served bundle (box, http://127.0.0.1:8085/DEqT1gwP.js):

window.customElements.define("grampsjs-oidc-button", class extends sl{...
md-outlined-button  159 occurrences
md-filled-button    108
mwc-button           53
<button              15

The control is <grampsjs-oidc-button> wrapping a Material <md-outlined-button>; none of the four selectors match it. Corroborating (box): kanidm's journal carried zero client_id=whakapapa authorise requests for the whole boot — the app was never asked.

C — Paperless sends no PKCE, kanidm enforces it (document-archive: 2 legs) — the only product red

operator-document-archive red  kanidm rendered its OWN error page for proof-operator ...
  Operation ID: cf570a53-67cb-4b6f-b8ca-f70416b96a13  Error Code: InvalidState

Cross-referenced (box), journalctl -u kanidm:

cf570a53-67cb-4b6f-b8ca-f70416b96a13 INFO  uri: /ui/oauth2?client_id=paperless&redirect_uri=...
  &scope=profile+email+openid&response_type=code&state=asf0eJzj5CNyvbHa   <- no code_challenge
cf570a53-... ERROR 🚨 [error]: No PKCE code challenge was provided with client in enforced
  PKCE mode | event_tag_id: 12 | o2rs.name: "paperless"
cf570a53-... ERROR 🚨 [error]: Unable to authorise - error: invalid_request

(identical for 3143402d-..., the member). kanidm system oauth2 create leaves PKCE enforced, and ADR 0196 wants it that way (idssidp_test.go:59: "EVERY client is PKCE S256"). django-allauth's openid_connect provider only sends a challenge when switched on, and internal/clan/paperless.go:616 mints the provider JSON without it:

'{openid_connect:{APPS:[{provider_id:$pname,name:$pname,client_id:$cid,secret:$sec,settings:{server_url:$url}}]}}'

Two further product reds hiding behind A and B

The healer re-walked the healed doors against the kept box, which reached kanidm for the first time. Both verified independently (box):

  • newsletters — 441911f0-...: No PKCE code challenge was provided with client in enforced PKCE mode | o2rs.name: "newsletters".
  • whakapapa — 34e0f603-...: Unable to authorise - error: invalid_origin. The only redirect Gramps Web ever sends is .../api/oidc/callback/custom, but internal/clan/whakapapa.go:172 registers const whakapapaOIDCRedirectPath = "/api/oidc/callback/kanidm". The app's own GET /api/oidc/config/ says why: {"providers":[{"id":"custom","login_url":".../?provider=custom","name":"kanidm"}]} — GRAMPSWEB_OIDC_NAME sets the display name; the generic provider's id stays custom, and the callback route is keyed on the id.

Where the fixes stand

Checked against upstream main (415f53ea, this checkout is still at the drive's fb2d2b3c):

  • C is already fixed — e74b1cbb document-archive: Paperless' OIDC client now sends PKCE....
  • A and B are NOT. The healer wrote them (76b1317e/b3f87f01) but its rebase died: logs/healer-claude.err ends CONFLICT (content): Merge conflict in app/tests/e2e/fixtures/roleDoors.ts / rolesProof.ts, unresolved. The commit is in no local ref, git status is clean, and rolesProof.ts still has no entry field. The eight-leg fixture heal was lost and has to be re-landed.
  • whakapapa's redirect and newsletters' PKCE are on no branch.

Suspected layer

Harness for 8 of 10 legs (A + B — the #1547 door-walk fixture, first run, two vocabulary gaps: no per-app entry path, and a button scan blind to custom elements). Product/provisioning (internal/clan/) for the other 2, plus the two that only became visible once the walk got further.

What plugging it needs

  1. Re-land the lost fixture heal: an optional DoorProfile.entry walked once when the published door settles on neither chrome nor login (archive → /login, surveys/newsletters → /admin), and widen the SSO hop to the accessible-name engine plus custom-element hosts so <grampsjs-oidc-button>/<md-outlined-button> and listmonk's bare Login label are both reachable. Resolve the roleDoors.ts/rolesProof.ts conflicts against fb2d2b3c+.
  2. internal/clan/whakapapa.go:172 → "/api/oidc/callback/custom", and the pinned expectation at whakapapa_test.go:279.
  3. Needs a human ruling: listmonk configures OIDC through its own security.oidc.* admin API (internal/clan/newsletters.go:517-564) and exposes no PKCE switch. If it cannot send a challenge, the only lever is kanidm system oauth2 warning-insecure-client-disable-pkce newsletters — a carve-out from ADR 0196, not a repair. Rule that (and whether it needs a DDR) before a worker touches it.

Nothing here was modified or filed; the box was read read-only.

drive 20260918T183606Z red at operator-archive: archive: proof-operator's walk reached neither the app's own login nor a login form at https://archive.roles-proof.idss.nz/ (looked for "#navigation, #user-bar" / "form input[name=\"email\"]") — the
evidence: /home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260918T183606Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## The run `artifacts/verdict.json`: ```json {"verdict": "red", "target": "rented-services", "legs": {"total": 45, "green": 35, "red": 10, "skip": 0}, "firstRedLeg": "operator-archive", "commit": "fb2d2b3c97eb..."} ``` **This is not the known frontier.** Pairing flipped: `{"leg": "pair", "status": "green", "ms": 235}`, and `skip: 0` — `legs.json` carries no skip reason at all, so no leg was waived for the own-VPS carrier. Everything through `member-files` is green; the ten reds are five `operator-<slug>`/`member-<slug>` pairs in the new #1547 roles proof, which has never run to completion before (the three earlier run dirs contain no door legs). **Live box:** the ssh line in the brief was refused — `root@134.199.157.41: Permission denied (publickey,keyboard-interactive)`. It carries no identity. `artifacts/live-box.json` records the drive's own per-run key and that line worked; everything below marked *(box)* was read read-only through it. The ten reds have **three** causes, and only one of them is product. --- ## A — the walk enters at the community's PUBLIC page (archive, surveys, newsletters: 6 legs) `legs.json`: ``` operator-archive red 67512ms archive: proof-operator's walk reached neither the app's own login nor a login form at https://archive.roles-proof.idss.nz/ (looked for "#navigation, #user-bar" / "form input[name=\"email\"]") — the page reads: "Roles Proof Sites Roles Proof of 1 1–1 of 1 Go to the Admin dashboard to start working with Roles Proof. Powered by Omeka S" operator-surveys red 67123ms ... "Roles Proof The following surveys are available: Please contact Your Name ( your-email@example.net ) for further assistance. ..." operator-newsletters red 66946ms ... "Login Subscribe Mailing list archive Powered by listmonk" ``` The screenshots settle it — `operator-archive-step1-neither.png` is Omeka S's **public site index**, `operator-surveys-step1-neither.png` is LimeSurvey's **public survey list**, `operator-newsletters-step1-neither.png` is listmonk's OIDC landing card. Step 0 in every case is kanidm's "Authenticate to access Community sign-in", so the community front door worked and the walk signed in; it then landed on a page where the profile's markers cannot exist. `app/tests/e2e/fixtures/roleDoors.ts:walkDoorAs` only ever visits the bare address: ```ts await page.goto(door, { waitUntil: 'domcontentloaded' }); ``` …and `door` is the `address` field from `artifacts/services-rows.json` (`https://archive.roles-proof.idss.nz`). `DoorProfile` (`rolesProof.ts`) has `posture / signedIn / ownLogin / admin` and **no entry path**. Omeka S serves `input[name="email"]` at `/login`, LimeSurvey's `#sidebar` chrome at `/admin`, listmonk's `aside.sidebar` at `/admin` — never at `/`. The uniform ~67 s is `readLanding`'s 60 s deadline burning down before `'neither'`. The green control fits: `files`, `data-collections` (Grist) and `document-archive` all serve their app at `/`, and all three got past this point. ## B — Gramps Web's sign-in button is invisible to the hop (whakapapa: 2 legs) ``` operator-whakapapa red 8896ms whakapapa (oidc) showed its OWN login form to proof-operator at https://whakapapa.roles-proof.idss.nz/login — the community sign-in did not reach inside the app (a second login form); the page reads: "" ``` The walk *does* have a rescue — `clickAny(page, SSO_BUTTONS)`, and `'Continue with'` is in `SSO_BUTTONS`. `operator-whakapapa-step1-own-login.png` shows the button, labelled **"Continue with kanidm"**. It still never fired, and `the page reads: ""` is the tell: `bodyWords` does `body.innerText()`, which returns empty because Gramps Web is entirely shadow-DOM. `clickAny` (`ceremony.ts:404`) searches only four tag shapes: ```ts for (const sel of ['button', 'a', 'input[type=submit]', '[role=button]']) ``` Grepping the served bundle *(box, `http://127.0.0.1:8085/DEqT1gwP.js`)*: ``` window.customElements.define("grampsjs-oidc-button", class extends sl{... md-outlined-button 159 occurrences md-filled-button 108 mwc-button 53 <button 15 ``` The control is `<grampsjs-oidc-button>` wrapping a Material `<md-outlined-button>`; none of the four selectors match it. Corroborating *(box)*: kanidm's journal carried **zero** `client_id=whakapapa` authorise requests for the whole boot — the app was never asked. ## C — Paperless sends no PKCE, kanidm enforces it (document-archive: 2 legs) — **the only product red** ``` operator-document-archive red kanidm rendered its OWN error page for proof-operator ... Operation ID: cf570a53-67cb-4b6f-b8ca-f70416b96a13 Error Code: InvalidState ``` Cross-referenced *(box)*, `journalctl -u kanidm`: ``` cf570a53-67cb-4b6f-b8ca-f70416b96a13 INFO uri: /ui/oauth2?client_id=paperless&redirect_uri=... &scope=profile+email+openid&response_type=code&state=asf0eJzj5CNyvbHa <- no code_challenge cf570a53-... ERROR 🚨 [error]: No PKCE code challenge was provided with client in enforced PKCE mode | event_tag_id: 12 | o2rs.name: "paperless" cf570a53-... ERROR 🚨 [error]: Unable to authorise - error: invalid_request ``` (identical for `3143402d-...`, the member). `kanidm system oauth2 create` leaves PKCE enforced, and ADR 0196 wants it that way (`idssidp_test.go:59`: *"EVERY client is PKCE S256"*). django-allauth's `openid_connect` provider only sends a challenge when switched on, and `internal/clan/paperless.go:616` mints the provider JSON without it: ```go '{openid_connect:{APPS:[{provider_id:$pname,name:$pname,client_id:$cid,secret:$sec,settings:{server_url:$url}}]}}' ``` --- ## Two further product reds hiding behind A and B The healer re-walked the healed doors against the kept box, which reached kanidm for the first time. Both verified independently *(box)*: - **newsletters** — `441911f0-...: No PKCE code challenge was provided with client in enforced PKCE mode | o2rs.name: "newsletters"`. - **whakapapa** — `34e0f603-...: Unable to authorise - error: invalid_origin`. The only redirect Gramps Web ever sends is `.../api/oidc/callback/custom`, but `internal/clan/whakapapa.go:172` registers `const whakapapaOIDCRedirectPath = "/api/oidc/callback/kanidm"`. The app's own `GET /api/oidc/config/` says why: `{"providers":[{"id":"custom","login_url":".../?provider=custom","name":"kanidm"}]}` — `GRAMPSWEB_OIDC_NAME` sets the display *name*; the generic provider's *id* stays `custom`, and the callback route is keyed on the id. ## Where the fixes stand Checked against upstream `main` (`415f53ea`, this checkout is still at the drive's `fb2d2b3c`): - **C is already fixed** — `e74b1cbb document-archive: Paperless' OIDC client now sends PKCE...`. - **A and B are NOT.** The healer wrote them (`76b1317e`/`b3f87f01`) but its rebase died: `logs/healer-claude.err` ends `CONFLICT (content): Merge conflict in app/tests/e2e/fixtures/roleDoors.ts` / `rolesProof.ts`, unresolved. The commit is in no local ref, `git status` is clean, and `rolesProof.ts` still has no `entry` field. **The eight-leg fixture heal was lost and has to be re-landed.** - **whakapapa's redirect and newsletters' PKCE** are on no branch. ## Suspected layer **Harness** for 8 of 10 legs (A + B — the #1547 door-walk fixture, first run, two vocabulary gaps: no per-app entry path, and a button scan blind to custom elements). **Product/provisioning** (`internal/clan/`) for the other 2, plus the two that only became visible once the walk got further. ## What plugging it needs 1. Re-land the lost fixture heal: an optional `DoorProfile.entry` walked once when the published door settles on neither chrome nor login (`archive` → `/login`, `surveys`/`newsletters` → `/admin`), and widen the SSO hop to the accessible-name engine plus custom-element hosts so `<grampsjs-oidc-button>`/`<md-outlined-button>` and listmonk's bare `Login` label are both reachable. Resolve the `roleDoors.ts`/`rolesProof.ts` conflicts against `fb2d2b3c`+. 2. `internal/clan/whakapapa.go:172` → `"/api/oidc/callback/custom"`, and the pinned expectation at `whakapapa_test.go:279`. 3. **Needs a human ruling:** listmonk configures OIDC through its own `security.oidc.*` admin API (`internal/clan/newsletters.go:517-564`) and exposes no PKCE switch. If it cannot send a challenge, the only lever is `kanidm system oauth2 warning-insecure-client-disable-pkce newsletters` — a carve-out from ADR 0196, not a repair. Rule that (and whether it needs a DDR) before a worker touches it. Nothing here was modified or filed; the box was read read-only. drive `20260918T183606Z` red at `operator-archive`: `archive: proof-operator's walk reached neither the app's own login nor a login form at https://archive.roles-proof.idss.nz/ (looked for "#navigation, #user-bar" / "form input[name=\"email\"]") — the` evidence: `/home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260918T183606Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 93dbfecd635f -->
Owner

Everything this ticket asks for is on main in e74b1cbb (the door entry paths, the shadow-DOM sign-in hop, Paperless PKCE) — #1603 says the same in its correction note. The whakapapa callback route is #1603; the PKCE ruling is #1601. Closing as landed.

Everything this ticket asks for is on main in `e74b1cbb` (the door entry paths, the shadow-DOM sign-in hop, Paperless PKCE) — #1603 says the same in its correction note. The whakapapa callback route is #1603; the PKCE ruling is #1601. Closing as landed.
ben closed this issue 2026-09-18 19:59:22 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#1602
No description provided.