Build: service-side service-access editor + install-time who-can-reach question (DDR 0273) #1782

Closed
opened 2026-09-23 17:13:54 +00:00 by matou-build-agent · 2 comments

Build the two-door service-access matrix + the install-time question (design landed in DDR 0273)

Design contract landed for #1780: DDR 0273, p6-members-idip/p6-s13i-service-access.html, p4-provisioning/p4-s2c-who-can-reach.html, amended p6-s1i-members.html / p6-s7i-credential-detail.html / p4-s3-review-impact.html, flow nodes S13i (p6-members-idip.mermaid) and S2c (p4-provisioning.mermaid). This is the engineering build against that contract. IDIP path only (ADR 0222 scope).

interface

  • The service × credential access matrix (ADR 0076/0222) is one store, already written from the credential's side (S7i → the control-plane rename/appearance-adjacent route family). Add a service-keyed door over the same rows: read a service's openers, set open / set restricted-to-[credential slugs] (additive), keyed on the service slug. No change to GateDecision or any enforcement path.
  • Install-time write: on the IDIP provisioning path, the operator's per-new-service choice from P4-S2c is written as that service's matrix row before first service answer; absent choice = open to all (ADR 0076 default).

seam (TDD)

  • Control-plane: a service-keyed set/read over the shared matrix rows round-trips and is identical to the credential-keyed door's view of the same rows (open/restrict from one is immediately true in the other); restrict is additive; Membership is never an offered opener; stewards never locked out.
  • Install: provisioning an IDIP service with a chosen policy writes the row before the service is reachable; with no choice the row is open-to-all (unchanged from today); the kanidm path writes no such row (skips P4-S2c).

acceptance (Given/When/Then)

  1. Given a steward on the IDIP Members tab, when they open the SERVICE ACCESS card for Files and choose "Restrict to holders → Finance", then the matrix row for Files is restricted: [finance], S7i's Finance detail shows Files as opened, and the front door admits only live Finance holders (+ stewards).
  2. Given Files is restricted to Finance, when the steward opens Finance's detail (S7i) and opens Files to all members, then the service-side card for Files reads "Open to all members" — the same row, both doors.
  3. Given an IDIP operator provisioning a new service, when they reach P4-S2c and pick "Only holders of… Kaimahi" for Chat, then the Chat matrix row is written restricted: [kaimahi] before Chat first answers, and P4-S3 shows the ACCESS line.
  4. Given an IDIP operator who leaves every new service on the default at P4-S2c, then each service opens to all members exactly as today (no row change vs current behaviour).
  5. Given a kanidm-path operator provisioning a service, then P4-S2c is not shown and no per-service access row is written by this path (komiti parity is out of scope).
  6. Given a community that has defined no credential, when the operator reaches P4-S2c, then only the all-members default is offered with the empty-state note.

out_of_scope

  • Any change to enforcement (GateDecision, the live roster check) — this is UI + policy-write only.
  • kanidm/komiti parity for the install question and service-side editor (DDR 0273 decision 5 — deferred Ben option).
  • The monitoring Services tab (P5-S1) access line + drill (DDR 0273 "open" note — a later follow-up).
  • Signing ceremonies: setting the matrix is a control-plane setting, not a twelve-words act (no S11i unlock).

needs_human_decision

  • (none — DDR 0273 adopted the proposed default under ADR 0174; komiti parity is deferred, not blocking.)

Relates to #1780, #1156, ADR 0076/0222, DDR 0217, DDR 0273.

## Build the two-door service-access matrix + the install-time question (design landed in DDR 0273) Design contract landed for #1780: **DDR 0273**, `p6-members-idip/p6-s13i-service-access.html`, `p4-provisioning/p4-s2c-who-can-reach.html`, amended `p6-s1i-members.html` / `p6-s7i-credential-detail.html` / `p4-s3-review-impact.html`, flow nodes S13i (`p6-members-idip.mermaid`) and S2c (`p4-provisioning.mermaid`). This is the engineering build against that contract. **IDIP path only** (ADR 0222 scope). ### interface - The service × credential access matrix (ADR 0076/0222) is **one store**, already written from the credential's side (S7i → the control-plane rename/appearance-adjacent route family). Add a **service-keyed door** over the **same rows**: read a service's openers, set open / set restricted-to-`[credential slugs]` (additive), keyed on the service slug. No change to `GateDecision` or any enforcement path. - Install-time write: on the IDIP provisioning path, the operator's per-new-service choice from P4-S2c is written as that service's matrix row **before first service answer**; absent choice = open to all (ADR 0076 default). ### seam (TDD) - Control-plane: a service-keyed set/read over the shared matrix rows round-trips and is identical to the credential-keyed door's view of the same rows (open/restrict from one is immediately true in the other); restrict is additive; Membership is never an offered opener; stewards never locked out. - Install: provisioning an IDIP service with a chosen policy writes the row before the service is reachable; with no choice the row is open-to-all (unchanged from today); the kanidm path writes no such row (skips P4-S2c). ### acceptance (Given/When/Then) 1. **Given** a steward on the IDIP Members tab, **when** they open the SERVICE ACCESS card for Files and choose "Restrict to holders → Finance", **then** the matrix row for Files is `restricted: [finance]`, S7i's Finance detail shows Files as opened, and the front door admits only live Finance holders (+ stewards). 2. **Given** Files is restricted to Finance, **when** the steward opens Finance's detail (S7i) and opens Files to all members, **then** the service-side card for Files reads "Open to all members" — the same row, both doors. 3. **Given** an IDIP operator provisioning a new service, **when** they reach P4-S2c and pick "Only holders of… Kaimahi" for Chat, **then** the Chat matrix row is written `restricted: [kaimahi]` before Chat first answers, and P4-S3 shows the ACCESS line. 4. **Given** an IDIP operator who leaves every new service on the default at P4-S2c, **then** each service opens to all members exactly as today (no row change vs current behaviour). 5. **Given** a kanidm-path operator provisioning a service, **then** P4-S2c is not shown and no per-service access row is written by this path (komiti parity is out of scope). 6. **Given** a community that has defined no credential, **when** the operator reaches P4-S2c, **then** only the all-members default is offered with the empty-state note. ### out_of_scope - Any change to enforcement (`GateDecision`, the live roster check) — this is UI + policy-write only. - **kanidm/komiti parity** for the install question and service-side editor (DDR 0273 decision 5 — deferred Ben option). - The monitoring Services tab (P5-S1) access line + drill (DDR 0273 "open" note — a later follow-up). - Signing ceremonies: setting the matrix is a control-plane setting, not a twelve-words act (no S11i unlock). ### needs_human_decision - (none — DDR 0273 adopted the proposed default under ADR 0174; komiti parity is deferred, not blocking.) Relates to #1780, #1156, ADR 0076/0222, DDR 0217, DDR 0273.
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=30963
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=30963 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #1782 — status success

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

envelope
{
  "issue": 1782,
  "status": "success",
  "commits": [
    "ba97b116e53953e7d31246de17811944785c2974"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/main.go",
    "dashboard/src/components/members/MembersSurface.vue",
    "dashboard/src/components/members/ServiceAccessSurface.vue",
    "dashboard/src/components/provisioning/ReviewImpactScreen.vue",
    "dashboard/src/components/provisioning/SetupSurface.vue",
    "dashboard/src/components/provisioning/WhoCanReachScreen.vue",
    "dashboard/src/components/shell/FleetSurface.vue",
    "dashboard/src/lib/api/generated.ts",
    "dashboard/src/lib/api/idipCredentialsClient.ts",
    "dashboard/src/lib/idipCredentials.ts",
    "dashboard/src/lib/mountRegistry.ts",
    "dashboard/tests/unit/credentialsSurface.test.ts",
    "dashboard/tests/unit/idipMemberCredentials.test.ts",
    "dashboard/tests/unit/idipRosterPanel.test.ts",
    "dashboard/tests/unit/provisionWhoCanReach.test.ts",
    "dashboard/tests/unit/removeMember.test.ts",
    "dashboard/tests/unit/serviceAccessSurface.test.ts",
    "internal/controlapi/idip_service_access.go",
    "internal/controlapi/idip_service_side_access.go",
    "internal/controlapi/idip_service_side_access_test.go",
    "internal/keriawire/wire.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci --command go test ./internal/controlapi/... ./control-plane/...",
      "exit_code": 0
    },
    {
      "command": "nix develop --command bash -c 'cd dashboard && vitest run'",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci --command bash -c 'gofmt -l; go vet ./internal/controlapi/... ./internal/keriawire/...; golangci-lint run ./internal/controlapi/... ./internal/keriawire/...'",
      "exit_code": 0
    },
    {
      "command": "nix develop --command bash -c 'cd dashboard && vue-tsc -p tsconfig.json'",
      "exit_code": 0
    },
    {
      "command": "nix develop --command npx eslint <changed dashboard files>",
      "exit_code": 0
    }
  ],
  "criteria": {
    "1. SERVICE ACCESS card → Restrict to Finance → matrix row restricted:[finance], S7i shows Files opened, front door admits Finance holders+stewards": "ServiceAccessSurface.vue S13i editor calls restrictServiceTo → idip_service_side_access.go writes the SAME member.AccessMatrix row S7i reads; seam test TestIdipServiceSideAccess_RestrictIsAdditiveAndMirrorsCredentialDoor proves the credential door sees it (opensThis); enforcement/GateDecision untouched (reads the shared row). serviceAccessSurface.test.ts 'acceptance 1'.",
    "2. Files restricted → open from Finance's S7i → service-side card reads Open to all — same row, both doors": "Both doors write member.AccessMatrix.SetPolicy; TestIdipServiceSideAccess_OpenMirrorsCredentialDoor + serviceAccessSurface.test.ts 'acceptance 2' (open clears, summary reads access-open).",
    "3. IDIP operator P4-S2c → Only holders of Kaimahi for Chat → row restricted:[kaimahi] before Chat answers + P4-S3 ACCESS line": "WhoCanReachScreen.vue (P4-S2c) collects the pick; SetupSurface.runDeploy writes restrictServiceTo BEFORE props.source.deploy; ReviewImpactScreen ACCESS line renders. provisionWhoCanReach.test.ts 'acceptance 3' asserts write is at deploy (before), ACCESS line present.",
    "4. Operator leaves default at P4-S2c → each service opens to all as today (no row change)": "Default choice writes no row (SetupSurface only writes services with a non-empty restrict pick). provisionWhoCanReach.test.ts 'acceptance 4' (access.writes empty; ACCESS line reads open to all members).",
    "5. kanidm-path operator → P4-S2c not shown, no row written": "SetupSurface routes to S2c only when access.list() reads non-null (IDIP); a 404/null skips it and no write fires. provisionWhoCanReach.test.ts 'acceptance 5'.",
    "6. Community with no credential → only all-members default + empty-state note": "WhoCanReachScreen hides the restrict option when candidates empty and shows no-credentials-note. provisionWhoCanReach.test.ts 'acceptance 6'."
  },
  "summary": "Built the DDR 0273 service-side access door (control-plane + S1i grid + S13i editor) and the IDIP install-time who-can-reach question (P4-S2c) that writes the first policy before deploy, over the one shared matrix — enforcement untouched.",
  "blockers": []
}
**close-report** for #1782 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1782, "status": "success", "commits": [ "ba97b116e53953e7d31246de17811944785c2974" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/main.go", "dashboard/src/components/members/MembersSurface.vue", "dashboard/src/components/members/ServiceAccessSurface.vue", "dashboard/src/components/provisioning/ReviewImpactScreen.vue", "dashboard/src/components/provisioning/SetupSurface.vue", "dashboard/src/components/provisioning/WhoCanReachScreen.vue", "dashboard/src/components/shell/FleetSurface.vue", "dashboard/src/lib/api/generated.ts", "dashboard/src/lib/api/idipCredentialsClient.ts", "dashboard/src/lib/idipCredentials.ts", "dashboard/src/lib/mountRegistry.ts", "dashboard/tests/unit/credentialsSurface.test.ts", "dashboard/tests/unit/idipMemberCredentials.test.ts", "dashboard/tests/unit/idipRosterPanel.test.ts", "dashboard/tests/unit/provisionWhoCanReach.test.ts", "dashboard/tests/unit/removeMember.test.ts", "dashboard/tests/unit/serviceAccessSurface.test.ts", "internal/controlapi/idip_service_access.go", "internal/controlapi/idip_service_side_access.go", "internal/controlapi/idip_service_side_access_test.go", "internal/keriawire/wire.go" ], "tests": [ { "command": "nix develop .#go-ci --command go test ./internal/controlapi/... ./control-plane/...", "exit_code": 0 }, { "command": "nix develop --command bash -c 'cd dashboard && vitest run'", "exit_code": 0 }, { "command": "nix develop .#go-ci --command bash -c 'gofmt -l; go vet ./internal/controlapi/... ./internal/keriawire/...; golangci-lint run ./internal/controlapi/... ./internal/keriawire/...'", "exit_code": 0 }, { "command": "nix develop --command bash -c 'cd dashboard && vue-tsc -p tsconfig.json'", "exit_code": 0 }, { "command": "nix develop --command npx eslint <changed dashboard files>", "exit_code": 0 } ], "criteria": { "1. SERVICE ACCESS card → Restrict to Finance → matrix row restricted:[finance], S7i shows Files opened, front door admits Finance holders+stewards": "ServiceAccessSurface.vue S13i editor calls restrictServiceTo → idip_service_side_access.go writes the SAME member.AccessMatrix row S7i reads; seam test TestIdipServiceSideAccess_RestrictIsAdditiveAndMirrorsCredentialDoor proves the credential door sees it (opensThis); enforcement/GateDecision untouched (reads the shared row). serviceAccessSurface.test.ts 'acceptance 1'.", "2. Files restricted → open from Finance's S7i → service-side card reads Open to all — same row, both doors": "Both doors write member.AccessMatrix.SetPolicy; TestIdipServiceSideAccess_OpenMirrorsCredentialDoor + serviceAccessSurface.test.ts 'acceptance 2' (open clears, summary reads access-open).", "3. IDIP operator P4-S2c → Only holders of Kaimahi for Chat → row restricted:[kaimahi] before Chat answers + P4-S3 ACCESS line": "WhoCanReachScreen.vue (P4-S2c) collects the pick; SetupSurface.runDeploy writes restrictServiceTo BEFORE props.source.deploy; ReviewImpactScreen ACCESS line renders. provisionWhoCanReach.test.ts 'acceptance 3' asserts write is at deploy (before), ACCESS line present.", "4. Operator leaves default at P4-S2c → each service opens to all as today (no row change)": "Default choice writes no row (SetupSurface only writes services with a non-empty restrict pick). provisionWhoCanReach.test.ts 'acceptance 4' (access.writes empty; ACCESS line reads open to all members).", "5. kanidm-path operator → P4-S2c not shown, no row written": "SetupSurface routes to S2c only when access.list() reads non-null (IDIP); a 404/null skips it and no write fires. provisionWhoCanReach.test.ts 'acceptance 5'.", "6. Community with no credential → only all-members default + empty-state note": "WhoCanReachScreen hides the restrict option when candidates empty and shows no-credentials-note. provisionWhoCanReach.test.ts 'acceptance 6'." }, "summary": "Built the DDR 0273 service-side access door (control-plane + S1i grid + S13i editor) and the IDIP install-time who-can-reach question (P4-S2c) that writes the first policy before deploy, over the one shared matrix — enforcement untouched.", "blockers": [] } ``` </details>
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#1782
No description provided.