feat(auth): Prüfwerk access for the RBAC step 4 roles (#989) #990

Merged
sharang merged 1 commits from feat/rbac-step4-roles into main 2026-11-12 10:24:59 +00:00
Owner

Summary

Closes #989. Decided by Sharang (2026-11-12), for v0.4.15.

Role (token code) Prüfwerk
PSIRT, DEVELOPMENT full: read and write (triage, scans)
QUALITY, PURCHASING, AUDITOR read only
PRIVACY, EXTERNAL none, as before
  • Each code parses to its own OrgRole, no longer Unknown. ProductAccess::for_roles, and so the role gate and the dashboard, follow the table.
  • Admin-only actions stay with IT_ADMIN / OWNER: manual findings, the git source, licence policy and review decisions.
  • Confirming a licence follows full access, so PSIRT and DEVELOPMENT may confirm. The dashboard's hint now says "eine Rolle mit Schreibzugriff" instead of listing roles.
  • Docs: the role tables in getting started (DE/EN) and the SBOM licence section.
  • Not part of this: the tenant-registry rights catalogue (pruefwerk:*).

Test plan

  • cargo fmt --all --check
  • clippy with -D warnings: compliance-core, compliance-agent, compliance-dashboard (server and web)
  • compliance-core lib (262): parsing all seven codes; the access table, including mixed roles (EXTERNAL + AUDITOR → read only)
  • compliance-agent lib (1070): the role-gate router matrix with all seven roles (read and write)
  • compliance-dashboard (193)

🤖 Generated with Claude Code

## Summary Closes #989. Decided by Sharang (2026-11-12), for v0.4.15. | Role (token code) | Prüfwerk | | --- | --- | | `PSIRT`, `DEVELOPMENT` | full: read and write (triage, scans) | | `QUALITY`, `PURCHASING`, `AUDITOR` | read only | | `PRIVACY`, `EXTERNAL` | none, as before | - Each code parses to its own `OrgRole`, no longer `Unknown`. `ProductAccess::for_roles`, and so the role gate and the dashboard, follow the table. - Admin-only actions stay with `IT_ADMIN` / `OWNER`: manual findings, the git source, licence policy and review decisions. - Confirming a licence follows full access, so PSIRT and DEVELOPMENT may confirm. The dashboard's hint now says "eine Rolle mit Schreibzugriff" instead of listing roles. - Docs: the role tables in getting started (DE/EN) and the SBOM licence section. - Not part of this: the tenant-registry rights catalogue (`pruefwerk:*`). ## Test plan - [x] `cargo fmt --all --check` - [x] clippy with `-D warnings`: compliance-core, compliance-agent, compliance-dashboard (`server` and `web`) - [x] compliance-core lib (262): parsing all seven codes; the access table, including mixed roles (EXTERNAL + AUDITOR → read only) - [x] compliance-agent lib (1070): the role-gate router matrix with all seven roles (read and write) - [x] compliance-dashboard (193) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sharang added 1 commit 2026-11-12 10:02:03 +00:00
feat(auth): Prüfwerk access for the RBAC step 4 roles (#989)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 5m44s
CI / Check (pull_request) Successful in 22m11s
648cf3102d
Decided 2026-11-12: PSIRT and DEVELOPMENT get full access (they triage
findings and run scans); QUALITY, PURCHASING and AUDITOR read only;
PRIVACY and EXTERNAL none, as before. Each parses to its own OrgRole.
Admin-only actions (manual findings, git source, licence decisions) stay
with IT_ADMIN and OWNER; confirming a licence follows full access, so
PSIRT and DEVELOPMENT may confirm.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sharang merged commit ea1b48dd37 into main 2026-11-12 10:24:59 +00:00
Sign in to join this conversation.