Child spec: files-member — the member lands in files by claim alone (DDR 0173) #514

Closed
opened 2026-08-14 06:10:55 +00:00 by ben · 2 comments
Owner

Parent

Wayfinder map #7 (OurCloud v1 program scope) — feature: files-member (FM). Child spec for #366 ("files: the member sign-in journey — a non-admin kanidm identity lands in Nextcloud", the drive-arc spec's named follow-up), carried through the design tier in auto-accept mode at Ben's instruction (2026-08-14) — decisions are AGENT-DECIDED (the shell/monitoring/P4b precedent); Ben signs off the gates on the finished artifacts: DDR 0173 (the member lands in files by claim alone). Standing on: ADR 0150 (files consumes kanidm OIDC; operator is admin), ADR 0076 (access matrix + Tier 1 claim-native role mapping), ADR 0074 (suspension's three moves), DDR 0158 (the files door lands on the IdP), DDR 0172 (the gate-served refusal surface — spec #511).

Design contract: docs/ux/flows/files-member.mermaid + docs/ux/wireframes/files-member/ (FM-S2x; DA-S1/DA-S2x and members' P6-S5 referenced, not duplicated; Nextcloud's Files home is an external door — linked, never drawn). CONTEXT.md holds the vocabulary: Files member journey (FM) — door outcomes.

Problem Statement

Everything proven live signs in the operator: ADR 0150's drive asserts the admin landing, occ-verified. A plain member — the person the community actually exists for — has a sign-in path that merely happens to exist via user_oidc defaults: nobody has decided what their first sign-in provisions (username, display name, groups, quota), what a member who shouldn't be there sees (awaiting approval, suspended, komiti-restricted), or asserted that a member can never land an admin session. An unasserted default on the community's most-used door is a defect waiting to be discovered by a member.

Solution

The member lands in files by claim alone. An active member opens the files door, lands straight on the community sign-in (DDR 0158), and their first sign-in creates their files account from the OIDC token — username, display name, komiti as groups — never an admin session, never a reconciler pre-creation, no quota surface in v1. Waiting and suspension are enforced at the IdP (no new gate); a komiti-restricted member on the public path gets the branded gate-served refusal with files copy ("Files isn't open to you"), and the private path's un-enforced matrix is a stated limit, never silently claimed. A member-tier drive leg asserts the whole journey through the surfaces a member actually touches.

User Stories

  1. As an active member, I want opening the files door to land me on the community sign-in, so there is one sign-in surface everywhere.

    • Given an active member with no live session, when they open files.<apex>, then the door lands straight on the community IdP's branded sign-in (DDR 0158 — no Nextcloud login screen), and a completed sign-in returns them into Files.
  2. As an active member signing in for the first time, I want my files account created from my community identity alone, so there is nothing to set up and no second account.

    • Given a kanidm person who has never opened files, when their first OIDC sign-in completes, then a files account exists carrying their username and display name from the token, and no operator action, reconciler pre-creation, or local password was involved.
  3. As a komiti member, I want my komiti to exist as groups in files, so sharing with my committee just works.

    • Given a member of one or more komiti, when they sign in to files, then each komiti rides the OIDC groups claim into a matching Nextcloud group (ADR 0076 Tier 1 — the same claim machinery ADR 0150 built for files-admin, widened past the admin group).
  4. As a community, I want a plain member to never land an admin session, so the operator/member boundary holds inside the app too.

    • Given any member not in the files-admin group, when they sign in, then their session holds no Administration entry and no admin group membership — asserted, not assumed.
  5. As a returning member, I want revisits to be silent, so files feels like mine.

    • Given a member with a live community SSO session, when they open the files door again, then the IdP hop completes without re-prompting and they land straight in Files.
  6. As an awaiting-approval member, I want the door to not half-work, so approval means something.

    • Given a member awaiting approval, when they attempt the community sign-in, then the IdP does not authenticate them (enforced at the IdP — both paths, no new gate), and the waiting screen (P6-S5) remains the surface that tells them where they stand.
    • Given the operator approves them, when they next sign in, then the journey completes as story 2.
  7. As a community, I want a suspended member's files access to die with the suspend, so the one-switch promise holds on the busiest door.

    • Given a suspended member, when they attempt to sign in, then the IdP refuses (ADR 0074 move 1).
    • Given a suspended member with a live public-path files session, when their next request passes the gate, then it is denied and the gate-served suspended surface (DA-S2x) renders (ADR 0074 move 2); sync-client access dies by move 3's reconciler credential disable, unchanged by this slice.
  8. As a member whose komiti don't open files, I want an honest branded refusal, so a closed door still speaks in my community's voice.

    • Given files is matrix-restricted to named komiti (ADR 0076) and a signed-in member's komiti do not include it, when they request the files door on the public path, then the gate answers 403 and the branded refusal surface renders with the files copy (FM-S2x: refusal-line "Files isn't open to you.", signed-in-identity, what-it-means naming the komiti rule, doors open-portal + sign-out, data-status="refused-service") — never raw JSON, never Nextcloud's own error.
    • The portal door stays (a matrix refusal is service-scoped, unlike suspension); re-sign-in is not offered.
  9. As an operator on the private path, I want the un-enforced matrix said honestly, so I never believe a restriction that isn't real.

    • Given a private-path community, when service routes render, then they remain ungated (ADR 0150 — Nextcloud's own OIDC login is the wall) and the un-enforced matrix at the private files door is a stated limit (DDR 0173), surfaced in the deployment's honest copy where restriction is displayed — never silently claimed as enforced.
  10. As a community, I want ocadmin to stay out of every member journey, so the reconciler credential never becomes a login.

    • Given any member-tier flow in this spec, then ocadmin is never used to authenticate a browser session (ADR 0150's demotion holds).
  11. As an operator, I want the member tier proven by the drive, so "members can sign in" is an assertion, not a hope.

    • Given the e2e drive's community, when the member-tier leg runs, then it creates a by-hand member, signs them in at the files door through the surfaces the app actually shows (the DDR 0165 posture), and asserts: the Files landing, the display name, the komiti group present, and no Administration entry.
    • Given the leg then suspends the member, when they next touch the door, then the refusal is asserted.
  12. As a member, I want the closed-door surfaces to wear my community's brand, so even refusal is ours.

    • Given any gate-served FM surface renders, then it carries the community logo and the kit's voice; the sign-in surface itself stays kanidm's branded page (never a second login screen).

Implementation Decisions

  • Claim-alone provisioning: the files render's OIDC provisioning widens the groups claim past files-admin so komiti flow as Nextcloud groups; display name mapped; group provisioning stays on; username derivation from the token pinned by test. No reconciler pre-creation; no quota configuration in v1 (Nextcloud's default rides; storage governance is a future slice).
  • IdP-level enforcement for waiting/suspension: approval enables authentication at the IdP; suspend is exactly ADR 0074's existing switch. This slice adds no new enforcement mechanism — it asserts the existing ones on the member tier.
  • The matrix refusal is the DDR 0172 surface with service copy — the #511 spec's story 12 given its files wording (FM-S2x). Public-path only; the private path's ungated service routes stand (ADR 0150) and the limit is stated where restriction is displayed.
  • No new screens beyond FM-S2x: sign-in is kanidm's page (DA-S1 depiction), suspended is DA-S2x, waiting is P6-S5, and Nextcloud's Files home is an external door (MAIL-M3 precedent).
  • kanidm copy is not editable (#485's constraint): pre-approval and suspension sign-in failures render kanidm's own message; no bespoke wall is invented in front of the IdP.

Testing Decisions

Test external behaviour at existing seams; the ideal remains the fewest, highest seams:

  • Files render seam (the clan files render tests): pin the member-shaped OIDC provisioning — the widened groups claim, display-name mapping, group provisioning on, and that only the files-admin group maps to Nextcloud admin. Prior art: the existing files render / renderNextcloudOIDC seam tests (ADR 0150's suite).
  • Gate seam (the control-api gate tests): a service-target 403 renders the refusal surface with files copy; the deny projection kills a live member session (the existing suspend seam's FakeAuthGate hooks). Prior art: the auth-gate and suspend seam tests; composes with #511's refusal-surface work.
  • The e2e drive's member-tier leg (the journey fixtures): the story-11 assertions, driven through the door surfaces via CDP, occ used only to verify server-side facts (group membership, non-admin) — the ADR 0150 drive's occ-verification precedent.

A good test asserts what a member's browser observes and what occ reports — never user_oidc internals.

Out of Scope

  • The portal and how a member discovers the files URL — the journey starts at the door; portal design is its own feature.
  • Quota / storage governance surfaces — v1 rides Nextcloud's default.
  • Gating the private path's service routes — ADR 0150's posture stands; matrix enforcement there is the named service-gating follow-up, and this spec only states the limit.
  • Per-app role mapping beyond Tier 1 (komiti → group folders etc.) — ADR 0076's Tier 2 reconciler verbs are their own slices.
  • Mailbox and other member services — mail's member journey is #229's world; this spec is the files door only.
  • #425's first-contact cert warning — unchanged; its proof rides the rehearsal drives.

Further Notes

  • Depends on nothing open to start, but story 8's surface is the DDR 0172 refusal machinery being built by #511 — sequence the refusal-copy story after it (or land the shared surface first from whichever ticket the swarm picks up first; the surface is one component either way).
  • The awaiting-approval IdP mechanics ("account not authenticatable until approve") should reuse whatever the members slice already does at approve-time; if nothing does yet, that gap is this spec's story 6, not a new design question.
  • AGENT-DECIDED provenance: every decision here traces to DDR 0173; Ben's sign-off of the flow + seam gates on the finished artifacts is the human confirmation (the shell/monitoring/P4b precedent).
## Parent Wayfinder map #7 (OurCloud v1 program scope) — feature: **files-member** (FM). Child spec for #366 ("files: the member sign-in journey — a non-admin kanidm identity lands in Nextcloud", the drive-arc spec's named follow-up), carried through the design tier **in auto-accept mode at Ben's instruction (2026-08-14)** — decisions are AGENT-DECIDED (the shell/monitoring/P4b precedent); Ben signs off the gates on the finished artifacts: **DDR 0173** (the member lands in files by claim alone). Standing on: ADR 0150 (files consumes kanidm OIDC; operator is admin), ADR 0076 (access matrix + Tier 1 claim-native role mapping), ADR 0074 (suspension's three moves), DDR 0158 (the files door lands on the IdP), DDR 0172 (the gate-served refusal surface — spec #511). Design contract: `docs/ux/flows/files-member.mermaid` + `docs/ux/wireframes/files-member/` (FM-S2x; DA-S1/DA-S2x and members' P6-S5 referenced, not duplicated; Nextcloud's Files home is an external door — linked, never drawn). CONTEXT.md holds the vocabulary: **Files member journey (FM) — door outcomes**. ## Problem Statement Everything proven live signs in the operator: ADR 0150's drive asserts the admin landing, occ-verified. A plain member — the person the community actually exists for — has a sign-in path that merely *happens to exist* via `user_oidc` defaults: nobody has decided what their first sign-in provisions (username, display name, groups, quota), what a member who shouldn't be there sees (awaiting approval, suspended, komiti-restricted), or asserted that a member can never land an admin session. An unasserted default on the community's most-used door is a defect waiting to be discovered by a member. ## Solution The member lands in files by claim alone. An active member opens the files door, lands straight on the community sign-in (DDR 0158), and their first sign-in creates their files account from the OIDC token — username, display name, komiti as groups — never an admin session, never a reconciler pre-creation, no quota surface in v1. Waiting and suspension are enforced at the IdP (no new gate); a komiti-restricted member on the public path gets the branded gate-served refusal with files copy ("Files isn't open to you"), and the private path's un-enforced matrix is a stated limit, never silently claimed. A member-tier drive leg asserts the whole journey through the surfaces a member actually touches. ## User Stories 1. **As an active member, I want opening the files door to land me on the community sign-in**, so there is one sign-in surface everywhere. - Given an active member with no live session, when they open `files.<apex>`, then the door lands straight on the community IdP's branded sign-in (DDR 0158 — no Nextcloud login screen), and a completed sign-in returns them into Files. 2. **As an active member signing in for the first time, I want my files account created from my community identity alone**, so there is nothing to set up and no second account. - Given a kanidm person who has never opened files, when their first OIDC sign-in completes, then a files account exists carrying their username and display name from the token, and no operator action, reconciler pre-creation, or local password was involved. 3. **As a komiti member, I want my komiti to exist as groups in files**, so sharing with my committee just works. - Given a member of one or more komiti, when they sign in to files, then each komiti rides the OIDC `groups` claim into a matching Nextcloud group (ADR 0076 Tier 1 — the same claim machinery ADR 0150 built for files-admin, widened past the admin group). 4. **As a community, I want a plain member to never land an admin session**, so the operator/member boundary holds inside the app too. - Given any member not in the files-admin group, when they sign in, then their session holds no Administration entry and no admin group membership — asserted, not assumed. 5. **As a returning member, I want revisits to be silent**, so files feels like mine. - Given a member with a live community SSO session, when they open the files door again, then the IdP hop completes without re-prompting and they land straight in Files. 6. **As an awaiting-approval member, I want the door to not half-work**, so approval means something. - Given a member awaiting approval, when they attempt the community sign-in, then the IdP does not authenticate them (enforced at the IdP — both paths, no new gate), and the waiting screen (P6-S5) remains the surface that tells them where they stand. - Given the operator approves them, when they next sign in, then the journey completes as story 2. 7. **As a community, I want a suspended member's files access to die with the suspend**, so the one-switch promise holds on the busiest door. - Given a suspended member, when they attempt to sign in, then the IdP refuses (ADR 0074 move 1). - Given a suspended member with a live public-path files session, when their next request passes the gate, then it is denied and the gate-served suspended surface (DA-S2x) renders (ADR 0074 move 2); sync-client access dies by move 3's reconciler credential disable, unchanged by this slice. 8. **As a member whose komiti don't open files, I want an honest branded refusal**, so a closed door still speaks in my community's voice. - Given files is matrix-restricted to named komiti (ADR 0076) and a signed-in member's komiti do not include it, when they request the files door on the public path, then the gate answers 403 and the branded refusal surface renders with the files copy (FM-S2x: `refusal-line` "Files isn't open to you.", `signed-in-identity`, `what-it-means` naming the komiti rule, doors `open-portal` + `sign-out`, `data-status="refused-service"`) — never raw JSON, never Nextcloud's own error. - The portal door stays (a matrix refusal is service-scoped, unlike suspension); re-sign-in is not offered. 9. **As an operator on the private path, I want the un-enforced matrix said honestly**, so I never believe a restriction that isn't real. - Given a private-path community, when service routes render, then they remain ungated (ADR 0150 — Nextcloud's own OIDC login is the wall) and the un-enforced matrix at the private files door is a stated limit (DDR 0173), surfaced in the deployment's honest copy where restriction is displayed — never silently claimed as enforced. 10. **As a community, I want `ocadmin` to stay out of every member journey**, so the reconciler credential never becomes a login. - Given any member-tier flow in this spec, then `ocadmin` is never used to authenticate a browser session (ADR 0150's demotion holds). 11. **As an operator, I want the member tier proven by the drive**, so "members can sign in" is an assertion, not a hope. - Given the e2e drive's community, when the member-tier leg runs, then it creates a by-hand member, signs them in at the files door through the surfaces the app actually shows (the DDR 0165 posture), and asserts: the Files landing, the display name, the komiti group present, and no Administration entry. - Given the leg then suspends the member, when they next touch the door, then the refusal is asserted. 12. **As a member, I want the closed-door surfaces to wear my community's brand**, so even refusal is ours. - Given any gate-served FM surface renders, then it carries the community logo and the kit's voice; the sign-in surface itself stays kanidm's branded page (never a second login screen). ## Implementation Decisions - **Claim-alone provisioning**: the files render's OIDC provisioning widens the `groups` claim past files-admin so komiti flow as Nextcloud groups; display name mapped; group provisioning stays on; username derivation from the token pinned by test. No reconciler pre-creation; no quota configuration in v1 (Nextcloud's default rides; storage governance is a future slice). - **IdP-level enforcement for waiting/suspension**: approval enables authentication at the IdP; suspend is exactly ADR 0074's existing switch. This slice adds **no new enforcement mechanism** — it asserts the existing ones on the member tier. - **The matrix refusal is the DDR 0172 surface with service copy** — the #511 spec's story 12 given its files wording (FM-S2x). Public-path only; the private path's ungated service routes stand (ADR 0150) and the limit is stated where restriction is displayed. - **No new screens beyond FM-S2x**: sign-in is kanidm's page (DA-S1 depiction), suspended is DA-S2x, waiting is P6-S5, and Nextcloud's Files home is an external door (MAIL-M3 precedent). - **kanidm copy is not editable** (#485's constraint): pre-approval and suspension sign-in failures render kanidm's own message; no bespoke wall is invented in front of the IdP. ## Testing Decisions Test external behaviour at existing seams; the ideal remains the fewest, highest seams: - **Files render seam** (the clan files render tests): pin the member-shaped OIDC provisioning — the widened groups claim, display-name mapping, group provisioning on, and that only the files-admin group maps to Nextcloud `admin`. Prior art: the existing files render / `renderNextcloudOIDC` seam tests (ADR 0150's suite). - **Gate seam** (the control-api gate tests): a service-target 403 renders the refusal surface with files copy; the deny projection kills a live member session (the existing suspend seam's FakeAuthGate hooks). Prior art: the auth-gate and suspend seam tests; composes with #511's refusal-surface work. - **The e2e drive's member-tier leg** (the journey fixtures): the story-11 assertions, driven through the door surfaces via CDP, occ used only to verify server-side facts (group membership, non-admin) — the ADR 0150 drive's occ-verification precedent. A good test asserts what a member's browser observes and what occ reports — never `user_oidc` internals. ## Out of Scope - **The portal and how a member discovers the files URL** — the journey starts at the door; portal design is its own feature. - **Quota / storage governance surfaces** — v1 rides Nextcloud's default. - **Gating the private path's service routes** — ADR 0150's posture stands; matrix enforcement there is the named service-gating follow-up, and this spec only *states* the limit. - **Per-app role mapping beyond Tier 1** (komiti → group folders etc.) — ADR 0076's Tier 2 reconciler verbs are their own slices. - **Mailbox and other member services** — mail's member journey is #229's world; this spec is the files door only. - **#425's first-contact cert warning** — unchanged; its proof rides the rehearsal drives. ## Further Notes - Depends on nothing open to *start*, but story 8's surface is the DDR 0172 refusal machinery being built by **#511** — sequence the refusal-copy story after it (or land the shared surface first from whichever ticket the swarm picks up first; the surface is one component either way). - The awaiting-approval IdP mechanics ("account not authenticatable until approve") should reuse whatever the members slice already does at approve-time; if nothing does yet, that gap is this spec's story 6, not a new design question. - AGENT-DECIDED provenance: every decision here traces to DDR 0173; Ben's sign-off of the flow + seam gates on the finished artifacts is the human confirmation (the shell/monitoring/P4b precedent).
Author
Owner

swarm-claim host=matou-dev-server-01 run=5966
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=5966 (automated multi-host claim — lowest live claim id works this ticket)
Author
Owner

close-report for #514 — status blocked

✅ close-report gates passed — every claim verified against main; closing.

envelope
{
  "issue": 514,
  "status": "blocked",
  "commits": [
    "92004d6"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/e2e/journey.droplet.spec.ts",
    "internal/clan/files.go",
    "internal/clan/files_test.go",
    "internal/clan/frontdoor.go",
    "internal/controlapi/authgate.go",
    "internal/controlapi/authgate_test.go",
    "internal/controlapi/refusal.go",
    "internal/controlapi/refusal_test.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci --command go test ./internal/controlapi/ ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go build ./...",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go vet ./internal/controlapi/ ./internal/clan/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Story 2 — files account created from the OIDC token alone (username, display name, no operator/reconciler/password)": "internal/clan/files.go renderNextcloudOIDC + new test TestRenderFiles_OIDCProvisionsMemberByClaimAlone (files_test.go) pins --mapping-uid=preferred_username, --mapping-display-name=name, --mapping-email=email, group-provisioning on; no reconciler pre-creation, no local password.",
    "Story 3 — komiti exist as groups in files (widened past files-admin)": "PARTIAL: the OIDC token is widened — the `groups` scope now rides the scope-map so a member's komiti flow in the standard `groups` claim (files.go; test asserts 'openid email profile groups'). Komiti MATERIALISING as Nextcloud groups is DEFERRED — see blocker 1 (a genuine design fork surfaced this run).",
    "Story 4 — a plain member never lands an admin session": "files.go: only the files-admin group writes `admin` into the collision-proof ocgroups claim; test asserts exactly one ocgroups claim-map and it is NextcloudAdminGroup, and no other group maps to admin.",
    "Story 5 — returning member revisits are silent (SSO)": "Existing mechanism (ADR 0150 / DDR 0158 single-provider auto-redirect, allow_multiple_user_backends=0) — unchanged and standing; no new work needed.",
    "Story 6 — awaiting-approval member cannot authenticate at the IdP": "NOT ADDRESSED this run — the spec routes it to the existing members approve-time mechanism; needs verification/wiring (blocker 3).",
    "Story 7 — suspended member's live session dies at the gate, suspended surface renders": "Gate seam: authgate.go serves the branded DA-S2x surface (data-status=refused-suspended, one door, no reason on screen) on a suspend deny; test TestAuthGate_SuspendedRendersBrandedSuspendedSurface. (The deny-projection kill itself is the existing ADR 0074 suspend machinery, unchanged.)",
    "Story 8 — komiti-restricted member on the public path gets the branded gate-served refusal with files copy (FM-S2x), never raw JSON": "internal/controlapi/refusal.go renders FM-S2x (refused-service, 'Files isn't open to you.', signed-in-identity, what-it-means naming the komiti rule, open-portal + sign-out, data-status=refused-service); authgate.go content-negotiates it for browsers; tests TestAuthGate_MatrixRefusalRendersBrandedFilesSurface + refusal_test.go assert the contract and that the raw JSON verdict does not leak to a browser.",
    "Story 9 — private path's un-enforced matrix stated honestly": "NOT ADDRESSED this run — a deployment honest-copy surface; not built (blocker 3).",
    "Story 10 — ocadmin never authenticates a browser session": "Existing (ADR 0150 demotion); render comment reaffirms it; no member flow here uses ocadmin.",
    "Story 11 — the member tier proven by the e2e drive": "DEFERRED to a live drive: the member-tier leg (app/tests/e2e/journey.droplet.spec.ts) is a named-skip carrying its DDR 0165 assertion plan (Files landing + display name + komiti group + no-admin, then suspend->refusal); it goes live once a by-hand member + komiti-group materialisation are wired on a real gateway (blocker 2).",
    "Story 12 — closed-door surfaces wear the community brand": "refusal.go renders the community logo slot (data-field=community-logo) and the community voice; test asserts the brand renders on the surface."
  },
  "summary": "Landed the two unit-testable seams of files-member (DDR 0173): the files render's member-shaped claim-alone provisioning (pinned, incl. only-files-admin->admin) and the DDR 0172 branded gate-served refusal surface (refused-service FM-S2x + refused-suspended DA-S2x), all green on origin/main; full spec completion is blocked on a surfaced design fork + live-infra items.",
  "reason": "The two unit-testable seams named in the spec's Testing Decisions (files render + gate) are delivered, tested, and on origin/main. Full spec completion needs a human on three items this iteration cannot close: (1) a DESIGN DECISION for story 3 — how komiti MATERIALISE as Nextcloud groups. Nextcloud user_oidc maps groups from ONE claim; the operator's admin bit needs the bare value `admin`, which only a kanidm claim-map gives (the `groups` scope emits SPNs like nextcloud_admins@domain and, on the `groups` claim, WINS the collision and strips `admin` — drive 20260810T141436Z). So admin must ride the ocgroups claim-map, and komiti (runtime, unknown at render time) must ALSO ride ocgroups via per-komiti claim-maps added at komiti-creation — which is komiti-management (ADR 0076) machinery, not this static render. The render widens the token and provides the channel; the materialisation slice is the open decision. (2) The e2e member-tier drive leg (story 11) needs a live lab gateway. (3) Stories 6 (awaiting-approval IdP enforcement) and 9 (private-path stated-limit honest copy) are unbuilt. Handing to a human to decide the komiti-materialisation mechanism and to split/schedule the live tail.",
  "blockers": [
    "Story 3 design fork: komiti->Nextcloud-group materialisation mechanism (per-komiti ocgroups claim-maps at komiti-creation vs an alternative) — Nextcloud's single group-claim + bare-`admin` requirement means it cannot be done statically at this render; needs a decision / a komiti-management slice.",
    "Story 11: the e2e member-tier drive leg needs a live lab gateway to run (named-skip with its DDR 0165 plan is committed).",
    "Story 6 (awaiting-approval IdP enforcement) and Story 9 (private-path stated-limit honest copy) are unbuilt."
  ]
}
**close-report** for #514 — status `blocked` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 514, "status": "blocked", "commits": [ "92004d6" ], "changed_files": [ "STATUS.md", "app/tests/e2e/journey.droplet.spec.ts", "internal/clan/files.go", "internal/clan/files_test.go", "internal/clan/frontdoor.go", "internal/controlapi/authgate.go", "internal/controlapi/authgate_test.go", "internal/controlapi/refusal.go", "internal/controlapi/refusal_test.go" ], "tests": [ { "command": "nix develop .#go-ci --command go test ./internal/controlapi/ ./internal/clan/", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go build ./...", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go vet ./internal/controlapi/ ./internal/clan/", "exit_code": 0 } ], "criteria": { "Story 2 — files account created from the OIDC token alone (username, display name, no operator/reconciler/password)": "internal/clan/files.go renderNextcloudOIDC + new test TestRenderFiles_OIDCProvisionsMemberByClaimAlone (files_test.go) pins --mapping-uid=preferred_username, --mapping-display-name=name, --mapping-email=email, group-provisioning on; no reconciler pre-creation, no local password.", "Story 3 — komiti exist as groups in files (widened past files-admin)": "PARTIAL: the OIDC token is widened — the `groups` scope now rides the scope-map so a member's komiti flow in the standard `groups` claim (files.go; test asserts 'openid email profile groups'). Komiti MATERIALISING as Nextcloud groups is DEFERRED — see blocker 1 (a genuine design fork surfaced this run).", "Story 4 — a plain member never lands an admin session": "files.go: only the files-admin group writes `admin` into the collision-proof ocgroups claim; test asserts exactly one ocgroups claim-map and it is NextcloudAdminGroup, and no other group maps to admin.", "Story 5 — returning member revisits are silent (SSO)": "Existing mechanism (ADR 0150 / DDR 0158 single-provider auto-redirect, allow_multiple_user_backends=0) — unchanged and standing; no new work needed.", "Story 6 — awaiting-approval member cannot authenticate at the IdP": "NOT ADDRESSED this run — the spec routes it to the existing members approve-time mechanism; needs verification/wiring (blocker 3).", "Story 7 — suspended member's live session dies at the gate, suspended surface renders": "Gate seam: authgate.go serves the branded DA-S2x surface (data-status=refused-suspended, one door, no reason on screen) on a suspend deny; test TestAuthGate_SuspendedRendersBrandedSuspendedSurface. (The deny-projection kill itself is the existing ADR 0074 suspend machinery, unchanged.)", "Story 8 — komiti-restricted member on the public path gets the branded gate-served refusal with files copy (FM-S2x), never raw JSON": "internal/controlapi/refusal.go renders FM-S2x (refused-service, 'Files isn't open to you.', signed-in-identity, what-it-means naming the komiti rule, open-portal + sign-out, data-status=refused-service); authgate.go content-negotiates it for browsers; tests TestAuthGate_MatrixRefusalRendersBrandedFilesSurface + refusal_test.go assert the contract and that the raw JSON verdict does not leak to a browser.", "Story 9 — private path's un-enforced matrix stated honestly": "NOT ADDRESSED this run — a deployment honest-copy surface; not built (blocker 3).", "Story 10 — ocadmin never authenticates a browser session": "Existing (ADR 0150 demotion); render comment reaffirms it; no member flow here uses ocadmin.", "Story 11 — the member tier proven by the e2e drive": "DEFERRED to a live drive: the member-tier leg (app/tests/e2e/journey.droplet.spec.ts) is a named-skip carrying its DDR 0165 assertion plan (Files landing + display name + komiti group + no-admin, then suspend->refusal); it goes live once a by-hand member + komiti-group materialisation are wired on a real gateway (blocker 2).", "Story 12 — closed-door surfaces wear the community brand": "refusal.go renders the community logo slot (data-field=community-logo) and the community voice; test asserts the brand renders on the surface." }, "summary": "Landed the two unit-testable seams of files-member (DDR 0173): the files render's member-shaped claim-alone provisioning (pinned, incl. only-files-admin->admin) and the DDR 0172 branded gate-served refusal surface (refused-service FM-S2x + refused-suspended DA-S2x), all green on origin/main; full spec completion is blocked on a surfaced design fork + live-infra items.", "reason": "The two unit-testable seams named in the spec's Testing Decisions (files render + gate) are delivered, tested, and on origin/main. Full spec completion needs a human on three items this iteration cannot close: (1) a DESIGN DECISION for story 3 — how komiti MATERIALISE as Nextcloud groups. Nextcloud user_oidc maps groups from ONE claim; the operator's admin bit needs the bare value `admin`, which only a kanidm claim-map gives (the `groups` scope emits SPNs like nextcloud_admins@domain and, on the `groups` claim, WINS the collision and strips `admin` — drive 20260810T141436Z). So admin must ride the ocgroups claim-map, and komiti (runtime, unknown at render time) must ALSO ride ocgroups via per-komiti claim-maps added at komiti-creation — which is komiti-management (ADR 0076) machinery, not this static render. The render widens the token and provides the channel; the materialisation slice is the open decision. (2) The e2e member-tier drive leg (story 11) needs a live lab gateway. (3) Stories 6 (awaiting-approval IdP enforcement) and 9 (private-path stated-limit honest copy) are unbuilt. Handing to a human to decide the komiti-materialisation mechanism and to split/schedule the live tail.", "blockers": [ "Story 3 design fork: komiti->Nextcloud-group materialisation mechanism (per-komiti ocgroups claim-maps at komiti-creation vs an alternative) — Nextcloud's single group-claim + bare-`admin` requirement means it cannot be done statically at this render; needs a decision / a komiti-management slice.", "Story 11: the e2e member-tier drive leg needs a live lab gateway to run (named-skip with its DDR 0165 plan is committed).", "Story 6 (awaiting-approval IdP enforcement) and Story 9 (private-path stated-limit honest copy) are unbuilt." ] } ``` </details>
ben closed this issue 2026-08-14 07:36:30 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#514
No description provided.