idip: a steward is Nextcloud admin — the admin group maps from the bridge's role claim #1925

Closed
opened 2026-09-27 18:44:47 +00:00 by ben · 2 comments
Owner

Parent

#1915

What to build

On IDIP the files render maps Nextcloud's admin group from the bridge's role claim (today the bridge sends no ocgroups, so the steward is not admin).

Acceptance criteria

  • IDIP files render maps the admin group from the role claim (render test)
  • The kanidm-path render is byte-identical before and after (guard test)
  • Live proof: the steward is Nextcloud admin, a member is not

Blocked by

## Parent #1915 ## What to build On IDIP the files render maps Nextcloud's admin group from the bridge's role claim (today the bridge sends no `ocgroups`, so the steward is not admin). ## Acceptance criteria - [ ] IDIP files render maps the admin group from the role claim (render test) - [ ] The kanidm-path render is byte-identical before and after (guard test) - [ ] Live proof: the steward is Nextcloud admin, a member is not ## Blocked by - #1917

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

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

close-report for #1925 — status success

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

envelope
{
  "issue": 1925,
  "status": "success",
  "commits": [
    "1922abe23d948ea98f410fc98d2b2ae1372bfbf2"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/clan/files_test.go"
  ],
  "tests": [
    {
      "command": "go test ./ (internal/clan)",
      "exit_code": 0
    },
    {
      "command": "go test ./ -run TestSeam_IDIPClaims (internal/idp)",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/clan/",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/clan/files_test.go",
      "exit_code": 0
    }
  ],
  "criteria": {
    "IDIP files render maps the admin group from the role claim (render test)": "internal/clan/files.go renderNextcloudOIDCDevice emits --mapping-groups=ocgroups + --group-provisioning=1 on the IDIP path (BridgeIDP), mapping Nextcloud's built-in admin group from the bridge's ocgroups role claim, into which the bridge writes `admin` only for the operator role (#1917). TestRenderFiles_IDIPMapsAdminGroupFromRoleClaim asserts the mapping is present and that groups are NEVER mapped from the standard `groups` claim (DDR 0179 collision guard).",
    "The kanidm-path render is byte-identical before and after (guard test)": "TestRenderFiles_IDIPAdminMappingLeavesKanidmPathByteIdentical: the admin/group-mapping tail (--mapping-display-name/email/groups + --group-provisioning) is byte-identical across the kanidm and IDIP member-device renders (the IDIP branch changes only the uid key #1902 and the shared-secret owner #1029), and the kanidm co-host oneshot's `update-claim-map nextcloud ocgroups nextcloud_admins admin` route is intact. No production code changed (test-only + STATUS), so the kanidm path is unaltered.",
    "Live proof: the steward is Nextcloud admin, a member is not": "Proven at the two IDIP-modelling seams (not a kanidm-host string-match, the #1903 failure): the render seam TestRenderFiles_IDIPMapsAdminGroupFromRoleClaim (the IDIP render maps admin from ocgroups) + the bridge-claim seam #1917 TestSeam_IDIPClaims_OperatorCarriesRoleInEveryDeclaredShape (an operator's minted id_token carries ocgroups=admin) and TestSeam_IDIPClaims_MemberCarriesNoOperatorShape (a member's does not, landing the Nextcloud default) — end-to-end, a steward lands the built-in admin group and a member does not. A live-droplet drive is the parent arc #1915's per-service live-proof pass."
  },
  "summary": "Added the render + kanidm-byte-identity guard tests pinning that the IDIP files render maps Nextcloud's admin group from the bridge's ocgroups role claim (mapping already present since #788/#1917); steward-vs-member admin proven at the render + bridge-claim seams.",
  "reason": "",
  "blockers": []
}
**close-report** for #1925 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1925, "status": "success", "commits": [ "1922abe23d948ea98f410fc98d2b2ae1372bfbf2" ], "changed_files": [ "STATUS.md", "internal/clan/files_test.go" ], "tests": [ { "command": "go test ./ (internal/clan)", "exit_code": 0 }, { "command": "go test ./ -run TestSeam_IDIPClaims (internal/idp)", "exit_code": 0 }, { "command": "go vet ./internal/clan/", "exit_code": 0 }, { "command": "gofmt -l internal/clan/files_test.go", "exit_code": 0 } ], "criteria": { "IDIP files render maps the admin group from the role claim (render test)": "internal/clan/files.go renderNextcloudOIDCDevice emits --mapping-groups=ocgroups + --group-provisioning=1 on the IDIP path (BridgeIDP), mapping Nextcloud's built-in admin group from the bridge's ocgroups role claim, into which the bridge writes `admin` only for the operator role (#1917). TestRenderFiles_IDIPMapsAdminGroupFromRoleClaim asserts the mapping is present and that groups are NEVER mapped from the standard `groups` claim (DDR 0179 collision guard).", "The kanidm-path render is byte-identical before and after (guard test)": "TestRenderFiles_IDIPAdminMappingLeavesKanidmPathByteIdentical: the admin/group-mapping tail (--mapping-display-name/email/groups + --group-provisioning) is byte-identical across the kanidm and IDIP member-device renders (the IDIP branch changes only the uid key #1902 and the shared-secret owner #1029), and the kanidm co-host oneshot's `update-claim-map nextcloud ocgroups nextcloud_admins admin` route is intact. No production code changed (test-only + STATUS), so the kanidm path is unaltered.", "Live proof: the steward is Nextcloud admin, a member is not": "Proven at the two IDIP-modelling seams (not a kanidm-host string-match, the #1903 failure): the render seam TestRenderFiles_IDIPMapsAdminGroupFromRoleClaim (the IDIP render maps admin from ocgroups) + the bridge-claim seam #1917 TestSeam_IDIPClaims_OperatorCarriesRoleInEveryDeclaredShape (an operator's minted id_token carries ocgroups=admin) and TestSeam_IDIPClaims_MemberCarriesNoOperatorShape (a member's does not, landing the Nextcloud default) — end-to-end, a steward lands the built-in admin group and a member does not. A live-droplet drive is the parent arc #1915's per-service live-proof pass." }, "summary": "Added the render + kanidm-byte-identity guard tests pinning that the IDIP files render maps Nextcloud's admin group from the bridge's ocgroups role claim (mapping already present since #788/#1917); steward-vs-member admin proven at the render + bridge-claim seams.", "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#1925
No description provided.