provision: the files OIDC seed is private-path-only — own-VPS operators bounce to kanidm /ui/apps with no linked applications (deploy.go filesLiveSet's deferred T4 scope, now due; branded-login leg also needs a fresh context) #560
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#560
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?
Milestone context
Drive
20260815T032509Zis the deepest run ever: seeded certs (zero LE contact — #559 proven first try), finish green, files-healthy healthy on probe 1 (#557's route proven live), door leg green. Red atbranded-login— the first of the four never-run parity legs.What the red shows
The browser (holding the operator's kanidm session from the ceremony, same context) hit
https://files.<apex>, Nextcloud auto-redirected to kanidm — and kanidm bounced to/ui/appsshowing "No linked applications available" (DOM snapshot in the run's error-context.md; branded "E2E Drive" nav renders, so the IdP brand is fine). The OIDC authorize never completed because there is nothing to authorize against:grep -c files-oidc droplet-journal.txt→ 0. The files OIDC seed (kanidm oauth2 client for Nextcloud + operator access group + Nextclouduser_oidcconfig) never ran.internal/provision/deploy.gofilesLiveSetsetsfiles.IDPHost/WebPortonly undercoHosted && o.privateFrontDoor, with the in-code comment ruling "the public gateway's OIDC seed + real :443 ride the public front-door path, out of this arc's scope" (drive-arc T4/ADR 0150). The scope has arrived.Fix directed
files.IDPHost = hostnames.IDP(o.apex)whenevercoHosted(the public path needs NO WebPort rewrites — real :443, simpler than private): kanidm oauth2 client (redirect URIhttps://files.<apex>/…), operator group grant,user_oidcprovider config againsthttps://id.<apex>— the same seed the private path proved in drive 17, minus the forwarded-port rewrites. Consent stays disabled (kanidm disable-consent-prompt, prior ruling).privateFrontDoor-keyed regression breaks a test, not a drive (third instance of this class: #529 port, #557 route, now the OIDC seed).assertBrandedLogin(provision.ts:480+) expects kanidm's login FORM, but the drive's browser always carries the ceremony's session — once OIDC works, the authorize will skip the form and land straight in Nextcloud. Open the branded-login assertion in a FRESH browser context (incognito) so the form genuinely renders; the existing warm context then serves the oidc-admin leg (session → Nextcloud landing).Evidence
test-results/drive-droplet/20260815T032509Z/: error-context.md DOM snapshot (/ui/apps, "No linked applications available"), test-failed-*.png, droplet-journal.txt (kanidm oauth2 sync at baseline 03:30:51, nothing after; zero files-oidc lines).Frontier tooth of #492 (blocks it).
swarm-claim host=matou-dev-server-01 run=6587
(automated multi-host claim — lowest live claim id works this ticket)
Agent Brief
Category: bug
Summary: The files OIDC seed only runs on the private front-door co-host path — the own-VPS (public front-door) co-host path never provisions it, so operators bounce to kanidm's "No linked applications available" instead of signing into Nextcloud.
Current behavior:
When the files service is co-hosted with the front door, the deploy only provisions the files OIDC seed (kanidm OAuth2 client for Nextcloud, operator access-group grant, Nextcloud OIDC provider config) when the front door is also on the private path. On the own-VPS (public front-door) co-host path, the files service deploys and is reachable, but nothing is registered with kanidm for it. Visiting the files URL redirects through kanidm login and lands on kanidm's app picker showing no linked applications — there is nothing to authorize against. This mirrors a now-fixed class of bug (loopback port, front-door route) where behavior was incorrectly keyed off "private front door" instead of "co-hosted."
Desired behavior:
The files OIDC seed runs whenever the deploy is co-hosted, regardless of which front-door path it's on:
:443— no forwarded/loopback web-port rewrite is needed on this path (that rewrite is specific to the private path's forwarded-port browser access).Signing in through the public files URL should complete OIDC authorization and land the operator in Nextcloud, instead of dead-ending at kanidm's app picker.
Key interfaces:
Acceptance criteria:
Out of scope:
Verification performed during triage: confirmed the current code gates the IdP-host/web-port fields on
coHosted && <private-front-door flag>exactly as this issue describes (both conditions currently required; should becoHostedalone for the IdP-host field). Confirmed the branded-login E2E helper referenced exists and matches the described warm-session assumption. Confirmed #492 (the parent drive issue this blocks) is open. No.out-of-scope/precedent or existing implementation found — this is a genuine, unimplemented gap, not a duplicate.close-report for #560 — status
success✅ close-report gates passed — every claim verified against main; closing.
envelope