archive: build the Omeka S header-auth module (IdssHeaderAuth) — JIT member sign-in from X-Idss-Identity, operator → global_admin via the reconciler, installed declaratively, strip on exempt paths (ruled by Ben on #1545) #1548
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#1548
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?
Spec
#1535 — Ben's ruling (2026-09-16): one community sign-in at every door; operator = admin everywhere. Ruled on #1545 by Ben, 2026-09-16: option 1 now (own accounts + the #1532 reveal, the card says "front door only" until this lands) and build the header-auth module — Omeka S has no OIDC module and its only SSO module is SAML-only, which kanidm does not speak.
Build — an Omeka S module
IdssHeaderAuth(PHP, upstream-shaped, contributed back)The Grist/LimeSurvey shape, in Omeka's own module system (Laminas MVC; the erseco image the archive port runs,
internal/clan/archive.go):X-Idss-Identity→HTTP_X_IDSS_IDENTITY; module setting names the header). Look the user up by a stable external id (store the person id in a module-owned table or as the user's email-shaped key<id>@idss.local— pick one and say why); JIT-create on first sight with roleresearcher(member default — the port declares it), then establish Omeka's session for them. No header ⇒ Omeka's own login page as today (the exempt/health paths, ADR 0074). Never read the header when the module setting is off.global_admin; the mapping is #1537'sReconcileRolecalling Omeka's REST API with the minted admin key the reconcile oneshot already writes (archive.go:119,key_identity/key_credential) —PATCH /api/users/{id}o:role. The module only ever JIT-creates at the member role; promotion is the control plane's act. (A second header for role is REJECTED: one more thing to strip, no audit.)omeka-reconcileoneshot) and enabled + configured by that oneshot (omeka-s-cli module:enable, settings via CLI/API), idempotent on re-run. The archive port's declaration flips tosignin: header.ArchiveExemptPaths(archive.go:245) getsheader_up -X-Idss-Identityin the front-door render and afrontdoor_test.gocase; a forged header on an exempt path must be dropped.Acceptance
researcher+ session; header + known ⇒ session, role untouched; setting off ⇒ inert.global_adminvia the API fake; revoke ⇒researcher.archive.<apex>, member = researcher, no second login).Files
New repo
Matou/omeka-s-module-idss-header-auth;internal/clan/archive.go(+ the oneshot),internal/clan/frontdoor.go+ tests, the port declaration (#1537),docs/GOTCHAS.mdif a hazard surfaces.Blocked —
agent-blocked(cannot-proceed: required PHP/Omeka build+test toolchain is unavailable, and the module's own repo does not yet exist)A Sandcastle Go-sandbox iteration claimed this ticket. Its central deliverable is a PHP Omeka S module (
IdssHeaderAuth, Laminas MVC) living in a new external repoMatou/omeka-s-module-idss-header-auth, and the primary acceptance clause is PHPUnit module tests against Omeka's module test harness. None of that can be built or verified in this environment, so the slice is not implementable here:php,php8.x,composer,phpunitare all absent fromPATH, and PHP is not in thenix developdevshell / flake. The Sandcastle image is Go/Nix-only. So the module source cannot be built, lint-checked, or its PHPUnit acceptance run — and this is a security-sensitive auth path (JIT member account creation from a trusted header, operator →global_admin) where shipping un-run, un-syntax-checked PHP and claiming verification would be dishonest. Ben's #1545 ruling already blessed the design; the block is purely the toolchain, not the decision.GET /api/v1/repos/Matou/omeka-s-module-idss-header-auth→ 404. The idss render is meant to bind-mount the module dir and pin it by commit (internal/clan/archive.go+ theomeka-reconcileoneshot). There is no commit to pin, and repo creation + first push under the Matou org is not a Go-sandbox act.whole_composition.go:275records "Archive ships no member-orbit reconciler (a community archive carries no per-member lifecycle state)". The reconcile leg (operator ⇒global_adminvia a new archiveReconcileRolecalling Omeka RESTPATCH /api/users/{id}o:role, plus its contract test and wiring intoservicePorts+ the #1537 roles reconciler) is a new control-plane subsystem, not a small edit — and it depends on the module existing.What is already in place (so the human can scope the split)
/api/*generically.frontdoor.gorenderRoutestripsX-Idss-Identityon every service's exempt handle (renderProxy(..., stripIdentity=true), frontdoor.go:531), andArchiveExemptPaths = ["/api/*"]already exists (archive.go:245). So item 4's strip is present; only a dedicatedfrontdoor_test.goarchive case would be additive.What a human must do to re-arm
Matou/omeka-s-module-idss-header-auth(the PHP module + PHPUnit), OR provide a Sandcastle lane with a PHP/composer/phpunit + Omeka module-test environment so an agent can build and run its acceptance.signin: headerport flip, the archiveReconcileRoleport + its contract test + composition wiring, and afrontdoor_test.goarchive-strip case — into a dependent idss ticket (depends_onthe module repo's first pinned commit), which a Go-sandbox agent can complete and prove.ready-for-agentto whichever piece is implementable in this lane.No code was changed this run.
Acknowledged — this is a human-input item now (Ben): the sandbox has no PHP/composer/PHPUnit lane and
Matou/omeka-s-module-idss-header-authdoes not exist. Two ways to re-arm, Ben's call: (a) create the module repo + a PHP lane so a worker can build and prove it, or (b) hand the module to a session on a machine withnix shell nixpkgs#php83 nixpkgs#php83Packages.composer. Per the #1545 ruling ("option 1 now"), the full proof drive #1547 no longer blocks on this ticket — it asserts Omeka'sownposture (the front-door-only card line) until the module lands, and a later fire proves the module. Dependency removed 2026-09-16.Built in session (Ben's go, 2026-09-27) — main
4e7c9a4e, ADR 0285, live on whakatohea-demointernal/clan/omeka/IdssHeaderAuthin this repo, embedded in the render, baked into the Nix store and mounted read-only. There is no separate repo (ADR 0285 §1); offering it upstream is a follow-up.m-<sha256(identity)[:24]>@<archive host>(the ADR 0283 form). New accounts are researcher. Stewards are global_admin, applied at deploy: a newarchivesvcport is AppliesAtDeploy, like surveys, and a former steward steps down to researcher.phpis on PATH (nix shell nixpkgs#php83); render, attach and port tests always run.Still owed: the browser proof through the real front door. Ben opens
archive.<apex>→ admin with no second login. This stays open for that.Triage:
enhancement+ready-for-humanThe build is done and verified in code; only a human-eyes acceptance item is left, so this is
ready-for-human, notready-for-agent.Established (grounded against the repo):
IdssHeaderAuthmodule landed onmainat4e7c9a4e(ADR 0285), living in-repo atinternal/clan/omeka/IdssHeaderAuth, embedded in the render and mounted read-only — no separateMatou/omeka-s-module-idss-header-authrepo (ADR 0285 §1 supersedes the original ticket's external-repo plan; upstreaming is a follow-up).m-<sha256(identity)[:24]>@<archive host>; JIT accounts areresearcher, stewards areglobal_adminapplied at deploy via a newarchivesvcAppliesAtDeploy port; the module is public-path only (private path is ungated so a header there vouches for nothing).phpis on PATH; render/attach/port tests always run; live proof was taken direct to the container on whakatohea-demo (steward → global_admin reaches Settings/user-edit; member → researcher refused Settings; a second person in the same browser gets their own account; no header → Omeka's own login).What still blocks close (Ben's own note, 2026-09-27): the browser proof through the real front door — Ben opens
archive.<apex>and lands in admin with no second login.Why human
Ben's eyes on a live trust surface. The only outstanding acceptance clause is a manual, first-person browser observation of an authentication/SSO trust surface (identity-header → JIT member sign-in, steward →
global_admin) through the live front door on whakatohea-demo. It is not covered by any existing test, drive, or probe — Ben explicitly reserved it as a hands-and-eyes check — so ADR 0174's two-way-door path does not apply (nothing existing proves it). Ben himself claimed it in the 2026-09-16 and 2026-09-27 comments. Residue: one live front-door browser sign-in that a person must watch succeed.Live proof — done (Ben, 2026-09-27)
Ben opened the Community archive on whakatohea-demo, went to the admin dashboard, and landed signed in with no second login, through the real front door on an IDIP community. The account is keyed on his AID, with the global_admin role. Closing.
Follow-ups: