feat(authz): the new bundles are assignable (RBAC step 4) #123

Merged
sharang merged 1 commits from feat/assignable-bundles into main 2026-11-11 20:37:37 +00:00
Owner

RBAC plan step 4, registry part: the seven new bundles become assignable, and the registry's own role checks read the catalogue.

What changes

  • Catalogue 2026-11-11.1: PSIRT, DEVELOPMENT, QUALITY, PRIVACY, PURCHASING, AUDITOR and EXTERNAL are assignable. Their capabilities are unchanged from step 1.
  • Invitations (POST /v1/tenants/{id}/invites) and role changes accept exactly the assignable bundles (case-insensitive). Before, an invitation took any upper-snake word; an unknown one granted nothing but was written to Keycloak.
  • Notification recipients, managed services and Prüfwerk settings check authz.AnyGrants(org_roles, capability) instead of hard-coded role lists. The last-admin guard asks for registry:members.manage.

What does not change

  • For today's six bundles, every registry check gives the same answer: a pin test compares them with the role tables as they stood on 2026-11-10, and checks that IsTenantAdmin still agrees.
  • Individual capabilities (step 3) still don't count in the registry's own checks.
  • No migration, no Keycloak change.

New behaviour

  • AUDITOR reads managed services.
  • PSIRT and DEVELOPMENT get findings mails; QUALITY, PRIVACY, PURCHASING and AUDITOR get document mails; EXTERNAL gets neither.
  • None of the new bundles can manage the team.

Portal and Werkmeister PRs follow (Team page role and position choice).

🤖 Generated with Claude Code

https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf

RBAC plan step 4, registry part: the seven new bundles become assignable, and the registry's own role checks read the catalogue. **What changes** - Catalogue `2026-11-11.1`: PSIRT, DEVELOPMENT, QUALITY, PRIVACY, PURCHASING, AUDITOR and EXTERNAL are `assignable`. Their capabilities are unchanged from step 1. - Invitations (`POST /v1/tenants/{id}/invites`) and role changes accept exactly the assignable bundles (case-insensitive). Before, an invitation took any upper-snake word; an unknown one granted nothing but was written to Keycloak. - Notification recipients, managed services and Prüfwerk settings check `authz.AnyGrants(org_roles, capability)` instead of hard-coded role lists. The last-admin guard asks for `registry:members.manage`. **What does not change** - For today's six bundles, every registry check gives the same answer: a pin test compares them with the role tables as they stood on 2026-11-10, and checks that `IsTenantAdmin` still agrees. - Individual capabilities (step 3) still don't count in the registry's own checks. - No migration, no Keycloak change. **New behaviour** - AUDITOR reads managed services. - PSIRT and DEVELOPMENT get findings mails; QUALITY, PRIVACY, PURCHASING and AUDITOR get document mails; EXTERNAL gets neither. - None of the new bundles can manage the team. Portal and Werkmeister PRs follow (Team page role and position choice). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
sharang added 1 commit 2026-11-11 20:29:45 +00:00
feat(authz): the new bundles are assignable (RBAC step 4)
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 6m6s
ci / image (pull_request) Skipped
dc44eb22bb
PSIRT, DEVELOPMENT, QUALITY, PRIVACY, PURCHASING, AUDITOR and EXTERNAL
can be given to a member (catalogue 2026-11-11.1). Invitations and role
changes accept exactly the catalogue's assignable bundles.

The registry's own checks read the catalogue instead of role lists:
notification recipients, managed services and Prüfwerk settings. For
today's six bundles nothing changes (pinned against the 2026-11-10
tables); AUDITOR now reads managed services, and the new bundles get
the mails their capabilities name. Individual capabilities still do not
count in the registry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014aRnCGqELxoix5TfpX8Ejf
sharang merged commit 3ed8780615 into main 2026-11-11 20:37:37 +00:00
Sign in to join this conversation.