operator-whakapapa: kanidm invalid_origin — Gramps callback route is /custom, not /kanidm #1603
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
2 participants
Notifications
Due date
No due date set.
Reference
Matou/idss#1603
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?
The run
artifacts/verdict.json:Not the known frontier. Pairing flipped —
{"leg": "pair", "status": "green", "ms": 235}— andskip: 0:legs.jsoncarries no skip entry and therefore no skip reason, so nothing was waived for the own-VPS carrier. Everything throughmember-filesis green. The ten reds are fiveoperator-<slug>/member-<slug>pairs of the #1547 roles-proof door walk.Live box. The access line in the brief was refused:
root@134.199.157.41: Permission denied (publickey,keyboard-interactive)— it carries no identity.artifacts/live-box.jsonrecords the drive's own per-run key (state/rent-operator/id_ed25519); everything marked (box) below was read read-only through that, nothing mutated.systemctl --failed --no-legendprinted nothing — no failed unit; this is not an infra red.Eight of the ten reds are already fixed at
mainSix legs (
operator|member-archive,-surveys,-newsletters) died because the walk entered at the address the services row publishes, which for those three apps is the community's public page:Two more (
operator|member-document-archive) were product: Paperless sent no PKCE and kanidm enforces it. Confirmed (box),journalctl -u kanidm -b, cross-referenced by the Operation IDlegs.jsonnames:All eight are fixed upstream.
mainis now415f53ea(this checkout is still at the drive'sfb2d2b3c);e74b1cbb("document-archive: Paperless' OIDC client now sends PKCE") carries both halves — verified against the raw files atref=main:rolesProof.ts:158gainedentry?: stringwithentry: '/login'(archive),'/index.php/admin'(surveys),'/admin'(newsletters), androleDoors.ts:165now walks it —await page.goto(profile.entry ? doorPath(door, profile.entry) : door, ...).(Correction to #1602, filed for this same run at 19:53: it reports the fixture heal as "lost" to the rebase conflict in
logs/healer-claude.err. It was re-landed ine74b1cbb;roleDoors.ts:41-51also carries the accessible-name fallback that reaches Gramps Web's<md-outlined-button>, whichclickAny's four light-DOM selectors (ceremony.ts:407) cannot see.)The residual: whakapapa is still red at
main, and it is mechanicalOnce the sign-in button is hopped, the app does reach kanidm — and kanidm refuses it. (box), the authorise attempt from the healer's re-walk:
Gramps Web sends
/api/oidc/callback/**custom**. The registered redirect is/api/oidc/callback/**kanidm**—internal/clan/whakapapa.go:172, unchanged atmain:The reasoning in that comment is the defect. Gramps Web keys the callback on the provider id, not its display name. The app's own config, read (box) off loopback
http://127.0.0.1:8085/api/oidc/config/:GRAMPSWEB_OIDC_NAME = "kanidm"(whakapapa.go:640) sets onlyname; the generic provider's id stayscustom. So kanidm never has the origin the app actually redirects to, and answersinvalid_origin.Suspected layer
Product / provisioning —
internal/clan/whakapapa.go. Not harness (the walk reaches the IdP and the refusal is the IdP's own), not infra (no failed unit;fileswalks its Nextcloud OIDC door green on the same box, so the IdP side is sound — this is per-app client registration).What plugging it needs
internal/clan/whakapapa.go:172→const whakapapaOIDCRedirectPath = "/api/oidc/callback/custom", correct the comment's "NAMEd" reasoning to the provider id, and re-pininternal/clan/whakapapa_test.go:279(redirect="https://whakapapa.awa.example.nz/api/oidc/callback/kanidm"). Also worth touchingwhakapapa.go:640's trailing comment, which repeats the wrong route.441911f0-7e60-44e3-86c7-6d1a542f4568 ERROR … No PKCE code challenge was provided with client in enforced PKCE mode | o2rs.name: "newsletters". Neither app exposes a PKCE switch, so the lever is a per-client carve-out from ADR 0196. That is #1601 (bug,priority,ready-for-human) — leave the ruling there.archive/surveys/document-archivegreen andnewslettersre-redding on PKCE alone;whakapapastays red until both 1 and 2 land.Nothing in the run directory or the repo was modified, nothing was filed, and the box was read read-only.
drive
20260918T183606Zred atmember-archive:archive: proof-member'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 pevidence:
/home/dev/swarm/Matou/idss/test-results/drive-rented-services/20260918T183606Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedClaimed by the #1547 babysitting session: landing item 1 (the
/api/oidc/callback/customredirect) now. Item 2 stays on #1601.Item 1 landed on main as
85aa9b92:whakapapaOIDCRedirectPath = /api/oidc/callback/custom, comments corrected, render test re-pinned. Item 2 (PKCE) is #1601, waiting on Ben's ruling — whakapapa stays red until it lands. Closing so the drive re-fires and proves archive, surveys and document-archive meanwhile.