own-VPS files door: the browser surface is gated but the gate-session substrate does not exist — ungate it (ADR 0150 parity) until the ADR 0074 flow lands #565
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
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#565
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?
Drive
20260815T043450Zred atoidc-admin— and this one is a REAL product gap, not a drive defect. Third identical red (035509Z/041856Z reproduced it with less evidence); #562's navigation fix is aboard and working.Evidence (all in
test-results/drive-droplet/20260815T043450Z)https://files.rehearsal-b.idss.nz/loginand ended stranded on kanidm/ui/apps(screenshottest-failed-2.png). No#header, no username field → both waiters inoidcSignInAsOperatortimed out.04:47:52 GET /ui/login -> 303,04:47:52 GET /ui/apps -> 200— and no discovery fetch, no authorize request, ever. Nextcloud'suser_oidcwas never consulted.nextcloud-oidc-startfinished green 04:47:48 (client + origin + scopemap + claimmaps +user_oidcprovider, #559/#560 both held).Cause
renderRoute(internal/clan/frontdoor.go) puts the public files route behindforward_authwith only the sync exemptions (FilesExemptPaths: DAV +/status.php)./loginis not exempt, so the gate intercepts it. The gate 401s (no session), andrenderGateRedirectsends the browser tohttps://id.<apex>/?rd=<original>— but as its own docstring says, the flow that CONSUMESrd(the gate-as-OIDC-client session flow, ADR 0074's named substrate) was never built. The gate'sHeaderSessionResolver(internal/controlapi/authgate.go) readsX-Ourcloud-Identity, which nothing establishes: no cookie, no session store, no OIDC client flow. A browser can NEVER pass this gate. kanidm ignoresrd; a warm session 303s to/ui/apps; dead end.The private path never hits this because ADR 0150 ships its service routes UNGATED — "Nextcloud's own OIDC login is the wall; the auth gate's browser redirect is a named follow-up" — and that walk is proven live (Tairea drive 17 green, occ-verified admin).
Fix (this ticket — the interim, a two-way door per ADR 0174)
Bring the PUBLIC files route to the same posture as ADR 0150's private path: drop the
forward_authbrowser gate from the files route render (keep the route + exempt-path structure so re-gating is a small diff), with a loud comment naming the follow-up ticket that re-gates when the substrate exists. Suspension enforcement stands unchanged where it actually works today: the member-orbit reconciler disables the Nextcloud account (internal/memberorbit) — files.go's own docs already lean on that for the sync-path exemptions./login,/index.php/*,/apps/*,/core/*, static assets; an enumerated list is a whack-a-mole regression farm.renderGateRedirect+ the admin route stay exactly as they are (admin. gating is DDR 0172's and is not in this ticket's scope).files.<apex>/loginreaches Nextcloud →user_oidcauto-redirect (single backend) → kanidm authorize (warm ceremony session, no consent) → back with code →#header. Exactly the proven private-path walk.The real substrate (gate-as-OIDC-client session flow: signin endpoint consuming
rd, session cookieDomain=.<apex>, a cookie SessionResolver, redirect target moved off the IdP root) is the follow-up ticket filed alongside this one, blocked on this one so the two never collide in the same files.advances #492
swarm-claim host=matou-dev-server-01 run=6676
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #565 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope