IDIP: the credential detail screen grows the SERVICE ACCESS restrict/open editor (ADR 0222 edit 3) #1156

Closed
opened 2026-09-02 19:00:18 +00:00 by ben · 2 comments
Owner

Parent

ADR 0222 (ruled #1063, 2026-09-02) — wiring edit 3 of 3. Design contract: docs/ux/wireframes/p6-members-idip/p6-s7i-credential-detail.html (SERVICE ACCESS section, Ben-confirmed 2026-09-02) + the p6-members-idip.mermaid "sets the credential's service access" edge.

What to build

A steward on the credential detail screen sees SERVICE ACCESS — every catalogue service with its front-door state ("open to all members" / "restricted — Finance holders only" / "restricted — Kaimahi holders only" when another credential restricts it) — and each row's underlined edit link slides an editor down in place beneath that row (never a popup, one open at a time): Open to all members vs Restrict — <this credential's> holders too, with Cancel. Restricting is additive — every credential already opening the service keeps its door — and the copy says so, naming the other credentials. Stewards are never locked out either way.

Wireframe contract names verbatim: service-access, access-matrix, access-<svc> rows with access-open/access-restricted/access-restricted-other states, change-access-<svc>, change-access-<svc>-expanded, set-open-<svc>/set-restricted-<svc>/cancel-change-access, matrix-note. The built kanidm-path KomitiDetailScreen access control is the direct template (same additive semantics, same action names).

The write path rides the steward-gated IDIP families (#1094/#1098's resolver — a plain member gets the 403 not_operator); the rows land in the same matrix store the gate reads, keyed on the credential slug, so a change bites on the affected member's next request. No signing ceremony: matrix rows are control-plane state, not credential acts (ADR 0222).

Acceptance criteria

  • The credential detail screen's SERVICE ACCESS section lists the catalogue services with honest per-row state, including "restricted by another credential" rendered as its own state
  • edit slides the editor down beneath its row; open-to-all and restrict both land, additive restrict keeps other credentials' doors, and the section re-reads to show the new state
  • The matrix-note carries the ADR 0222 copy: enforced at the front door, roster checked live, no presentation
  • A non-steward session is refused the write (403 not_operator); the routes never trust a header identity
  • Membership's own detail screen shows no SERVICE ACCESS section (every service is open to live members by construction — restricting to Membership is the default, not a row)
  • Dashboard unit tests over the seam (the KomitiDetailScreen test pattern); wireframe contract names asserted

Blocked by

  • The gate-reads-the-IDIP-roster ticket (edit 1): shipping this editor before enforcement exists would make the matrix-note a lie — rows must bite when written.
## Parent ADR 0222 (ruled #1063, 2026-09-02) — wiring edit 3 of 3. Design contract: `docs/ux/wireframes/p6-members-idip/p6-s7i-credential-detail.html` (SERVICE ACCESS section, Ben-confirmed 2026-09-02) + the `p6-members-idip.mermaid` "sets the credential's service access" edge. ## What to build A steward on the credential detail screen sees SERVICE ACCESS — every catalogue service with its front-door state ("open to all members" / "restricted — Finance holders only" / "restricted — Kaimahi holders only" when another credential restricts it) — and each row's underlined `edit` link slides an editor down in place beneath that row (never a popup, one open at a time): **Open to all members** vs **Restrict — <this credential's> holders too**, with Cancel. Restricting is additive — every credential already opening the service keeps its door — and the copy says so, naming the other credentials. Stewards are never locked out either way. Wireframe contract names verbatim: `service-access`, `access-matrix`, `access-<svc>` rows with `access-open`/`access-restricted`/`access-restricted-other` states, `change-access-<svc>`, `change-access-<svc>-expanded`, `set-open-<svc>`/`set-restricted-<svc>`/`cancel-change-access`, `matrix-note`. The built kanidm-path `KomitiDetailScreen` access control is the direct template (same additive semantics, same action names). The write path rides the steward-gated IDIP families (#1094/#1098's resolver — a plain member gets the 403 `not_operator`); the rows land in the same matrix store the gate reads, keyed on the credential slug, so a change bites on the affected member's next request. No signing ceremony: matrix rows are control-plane state, not credential acts (ADR 0222). ## Acceptance criteria - [ ] The credential detail screen's SERVICE ACCESS section lists the catalogue services with honest per-row state, including "restricted by another credential" rendered as its own state - [ ] `edit` slides the editor down beneath its row; open-to-all and restrict both land, additive restrict keeps other credentials' doors, and the section re-reads to show the new state - [ ] The matrix-note carries the ADR 0222 copy: enforced at the front door, roster checked live, no presentation - [ ] A non-steward session is refused the write (403 not_operator); the routes never trust a header identity - [ ] Membership's own detail screen shows no SERVICE ACCESS section (every service is open to live members by construction — restricting to Membership is the default, not a row) - [ ] Dashboard unit tests over the seam (the KomitiDetailScreen test pattern); wireframe contract names asserted ## Blocked by - The gate-reads-the-IDIP-roster ticket (edit 1): shipping this editor before enforcement exists would make the matrix-note a lie — rows must bite when written.

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

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

close-report for #1156 — status success

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

envelope
{
  "issue": 1156,
  "status": "success",
  "commits": [
    "7aa91577c695d7fbefea5f4faf3e1e566fc00055"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/main.go",
    "dashboard/src/components/members/CredentialsSurface.vue",
    "dashboard/src/lib/api/generated.ts",
    "dashboard/src/lib/api/idipCredentialsClient.ts",
    "dashboard/src/lib/idipCredentials.ts",
    "dashboard/tests/unit/credentialsSurface.test.ts",
    "dashboard/tests/unit/idipMemberCredentials.test.ts",
    "dashboard/tests/unit/idipRosterPanel.test.ts",
    "dashboard/tests/unit/removeMember.test.ts",
    "internal/controlapi/idip_service_access.go",
    "internal/controlapi/idip_service_access_test.go",
    "internal/keriawire/wire.go",
    "packages/openapi-spec/openapi.yaml"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci --command go test ./internal/controlapi/ ./internal/keriawire/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go test ./control-plane/cmd/control-plane/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command go build ./...",
      "exit_code": 0
    },
    {
      "command": "dashboard: node_modules/.bin/vitest run",
      "exit_code": 0
    },
    {
      "command": "dashboard: node_modules/.bin/vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "packages/openapi-spec: node scripts/generate-client.mjs --check",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The credential detail screen's SERVICE ACCESS section lists the catalogue services with honest per-row state, including restricted-by-another-credential as its own state": "CredentialsSurface.vue service-access section renders one access-<svc> row per matrix service with data-status access-open/access-restricted/access-restricted-other composed by controlapi credentialAccessView (idip_service_access.go); test 'AC1/AC3' in credentialsSurface.test.ts + TestIdipServiceAccess_ReadComposesState",
    "edit slides the editor down beneath its row; open-to-all and restrict both land, additive restrict keeps other credentials' doors, and the section re-reads to show the new state": "change-access-<svc> toggles change-access-<svc>-expanded row; setOpen/setRestricted call the seam and reload access; restrictAdditive (idip_service_access.go) keeps existing openers + adds committee:<slug>; tests 'AC2: edit slides...' and 'AC2: open to all...' + TestIdipServiceAccess_RestrictIsAdditive/_Open",
    "The matrix-note carries the ADR 0222 copy: enforced at the front door, roster checked live, no presentation": "IdipServiceAccessMatrixNote constant (idip_service_access.go) rendered at data-field=matrix-note; asserted by TestIdipServiceAccess_ReadComposesState and credentialsSurface AC1/AC3 test",
    "A non-steward session is refused the write (403 not_operator); the routes never trust a header identity": "routes gated via operatorAuthed+StewardResolver; TestIdipServiceAccess_MemberForbidden proves 403 not_operator for a signed-in member and 401 for a self-named header alone, and no write landed",
    "Membership's own detail screen shows no SERVICE ACCESS section": "section v-if guarded on !detail.builtIn; loadAccess returns early for built-in (no access call); test 'AC5: Membership hides SERVICE ACCESS entirely'",
    "Dashboard unit tests over the seam (the KomitiDetailScreen test pattern); wireframe contract names asserted": "credentialsSurface.test.ts asserts service-access, access-matrix, access-<svc>, access-open/restricted/restricted-other, change-access-<svc>[-expanded], set-open-<svc>, set-restricted-<svc>, cancel-change-access, matrix-note"
  },
  "summary": "The S7i credential detail grows the SERVICE ACCESS restrict/open editor over a new steward-gated IDIP matrix seam that writes the same matrix the gate reads (ADR 0222 edit 3 of 3).",
  "reason": "",
  "blockers": []
}
**close-report** for #1156 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1156, "status": "success", "commits": [ "7aa91577c695d7fbefea5f4faf3e1e566fc00055" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/main.go", "dashboard/src/components/members/CredentialsSurface.vue", "dashboard/src/lib/api/generated.ts", "dashboard/src/lib/api/idipCredentialsClient.ts", "dashboard/src/lib/idipCredentials.ts", "dashboard/tests/unit/credentialsSurface.test.ts", "dashboard/tests/unit/idipMemberCredentials.test.ts", "dashboard/tests/unit/idipRosterPanel.test.ts", "dashboard/tests/unit/removeMember.test.ts", "internal/controlapi/idip_service_access.go", "internal/controlapi/idip_service_access_test.go", "internal/keriawire/wire.go", "packages/openapi-spec/openapi.yaml" ], "tests": [ { "command": "nix develop .#go-ci --command go test ./internal/controlapi/ ./internal/keriawire/", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go test ./control-plane/cmd/control-plane/", "exit_code": 0 }, { "command": "nix develop .#go-ci --command go build ./...", "exit_code": 0 }, { "command": "dashboard: node_modules/.bin/vitest run", "exit_code": 0 }, { "command": "dashboard: node_modules/.bin/vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "packages/openapi-spec: node scripts/generate-client.mjs --check", "exit_code": 0 } ], "criteria": { "The credential detail screen's SERVICE ACCESS section lists the catalogue services with honest per-row state, including restricted-by-another-credential as its own state": "CredentialsSurface.vue service-access section renders one access-<svc> row per matrix service with data-status access-open/access-restricted/access-restricted-other composed by controlapi credentialAccessView (idip_service_access.go); test 'AC1/AC3' in credentialsSurface.test.ts + TestIdipServiceAccess_ReadComposesState", "edit slides the editor down beneath its row; open-to-all and restrict both land, additive restrict keeps other credentials' doors, and the section re-reads to show the new state": "change-access-<svc> toggles change-access-<svc>-expanded row; setOpen/setRestricted call the seam and reload access; restrictAdditive (idip_service_access.go) keeps existing openers + adds committee:<slug>; tests 'AC2: edit slides...' and 'AC2: open to all...' + TestIdipServiceAccess_RestrictIsAdditive/_Open", "The matrix-note carries the ADR 0222 copy: enforced at the front door, roster checked live, no presentation": "IdipServiceAccessMatrixNote constant (idip_service_access.go) rendered at data-field=matrix-note; asserted by TestIdipServiceAccess_ReadComposesState and credentialsSurface AC1/AC3 test", "A non-steward session is refused the write (403 not_operator); the routes never trust a header identity": "routes gated via operatorAuthed+StewardResolver; TestIdipServiceAccess_MemberForbidden proves 403 not_operator for a signed-in member and 401 for a self-named header alone, and no write landed", "Membership's own detail screen shows no SERVICE ACCESS section": "section v-if guarded on !detail.builtIn; loadAccess returns early for built-in (no access call); test 'AC5: Membership hides SERVICE ACCESS entirely'", "Dashboard unit tests over the seam (the KomitiDetailScreen test pattern); wireframe contract names asserted": "credentialsSurface.test.ts asserts service-access, access-matrix, access-<svc>, access-open/restricted/restricted-other, change-access-<svc>[-expanded], set-open-<svc>, set-restricted-<svc>, cancel-change-access, matrix-note" }, "summary": "The S7i credential detail grows the SERVICE ACCESS restrict/open editor over a new steward-gated IDIP matrix seam that writes the same matrix the gate reads (ADR 0222 edit 3 of 3).", "reason": "", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#1156
No description provided.