files: Nextcloud consumes kanidm OIDC; operator lands as admin (ADR 0150, drive-arc T4) #361
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.
Depends on
Reference
Matou/idss#361
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?
Slice T4 of the Nextcloud-provision drive arc —
docs/superpowers/specs/2026-08-09-nextcloud-provision-e2e-design.md(commitc72bff1)Implements ADR 0150 (ADR 0016 made real for files; ADR 0076 Tier 1).
Build
https://files.<apex>/apps/user_oidc/code. Mind DDR 0147's lesson: domain-level kanidm ops needadmin, notidm_admin(unauthorized objects mask as "Item not found").user_oidcenabled + configured viaoccin the oneshot: one provider named for the community, issuerhttps://id.<apex>(forwarded port on the private path, ADR 0149).admingroup; founding addsoperatorto it.ocadminstays reconciler-only (no ceremony ever uses it).Accept
admingroup.Done in
bc458a568e68b5c544d9185f9758f43cfcbefa4e(on origin/main). Files now consumes kanidm OIDC (ADR 0150 / ADR 0016; ADR 0076 Tier 1).files.gonewnextcloud-oidconeshot, emitted only when the co-hosted live set carries anIDPHost): confidential OAuth2 clientnextcloud, redirecthttps://files.<apex>/apps/user_oidc/code, authenticated as the DOMAINadmin(DDR 0147, the kanidm-brand-push pattern); scope-map + claim-map sonextcloud_adminsmembers carry agroupsclaim whose value is Nextcloud's built-inadmingroup; basic secret read back, never pre-shared.user_oidcenabled viaocc; one provider named for the community (apex slug), discoveryid.<apex>/oauth2/openid/nextcloud/.well-known/openid-configuration,--group-provisioning=1 --mapping-groups=groups.vmguest.go): kanidm provisioning declares thenextcloud_adminsgroup (clan.NextcloudAdminGroup) and the operator joins it — a passkey sign-in lands an admin session.ocadminstays reconciler-only.IDPHost; the deploy sets it on the co-hosted private path only (deploy.go).Evidence: seam tests in
internal/clan/files_test.go(OIDC client/user_oidc/group-map/idempotency) +vmguest_test.go(files-admin group + operator membership) green; renderedfiles.nixnix-instantiate --parseclean. Live proof rides T6's drive —occ app:install user_oidcneeds the guest's deploy-time appstore reach, the first likely T4 red.