Closes#982. Decided by Sharang (2026-11-12): map OWNER like IT_ADMIN.
OrgRole::Owner: OWNER from the token parses to it instead of Unknown.
Full read and write, like IT_ADMIN (ProductAccess::for_roles, the role gate).
What only an administrator may do now asks OrgRole::is_admin / TenantContext::is_admin (IT_ADMIN or OWNER), not IT_ADMIN alone:
manual findings;
seeing the git source;
licence policy and review decisions. The 403 now lists needs: [LEGAL, IT_ADMIN, OWNER].
The dashboard derives access from the same core function, so it follows. Its licence help texts and the docs (getting started DE/EN, manual findings, SBOM) name OWNER.
Unchanged: the other new RBAC bundles (PSIRT, DEVELOPMENT, …) still get no access, which fails closed. The rights catalogue is a separate decision.
Test plan
cargo fmt --all --check
clippy with -D warnings for compliance-core and compliance-agent, and for compliance-dashboard with --features server and --features web
compliance-core lib tests (261), including OWNER parsing and OWNER → full access
compliance-agent lib tests (1061), including the role gate matrix with OWNER (read and write), manual findings and licence decisions with OWNER
## Summary
Closes #982. Decided by Sharang (2026-11-12): map OWNER like IT_ADMIN.
- `OrgRole::Owner`: `OWNER` from the token parses to it instead of `Unknown`.
- Full read and write, like IT_ADMIN (`ProductAccess::for_roles`, the role gate).
- What only an administrator may do now asks `OrgRole::is_admin` / `TenantContext::is_admin` (IT_ADMIN or OWNER), not IT_ADMIN alone:
- manual findings;
- seeing the git source;
- licence policy and review decisions. The 403 now lists `needs: [LEGAL, IT_ADMIN, OWNER]`.
- The dashboard derives access from the same core function, so it follows. Its licence help texts and the docs (getting started DE/EN, manual findings, SBOM) name OWNER.
- Unchanged: the other new RBAC bundles (PSIRT, DEVELOPMENT, …) still get no access, which fails closed. The rights catalogue is a separate decision.
## Test plan
- [x] `cargo fmt --all --check`
- [x] clippy with `-D warnings` for compliance-core and compliance-agent, and for compliance-dashboard with `--features server` and `--features web`
- [x] compliance-core lib tests (261), including OWNER parsing and OWNER → full access
- [x] compliance-agent lib tests (1061), including the role gate matrix with OWNER (read and write), manual findings and licence decisions with OWNER
🤖 Generated with [Claude Code](https://claude.com/claude-code)
OrgRole::parse knew only IT_ADMIN, CXO, FINANCE, LEGAL and USER, so an
OWNER got no access at all. OWNER now parses to its own role with full
access, and what only an administrator may do (manual findings, the git
source, licence decisions) asks OrgRole::is_admin (IT_ADMIN or OWNER).
The other new RBAC bundles still get no access.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sharang
merged commit aa022b0d0f into main2026-11-12 09:09:49 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Closes #982. Decided by Sharang (2026-11-12): map OWNER like IT_ADMIN.
OrgRole::Owner:OWNERfrom the token parses to it instead ofUnknown.ProductAccess::for_roles, the role gate).OrgRole::is_admin/TenantContext::is_admin(IT_ADMIN or OWNER), not IT_ADMIN alone:needs: [LEGAL, IT_ADMIN, OWNER].Test plan
cargo fmt --all --check-D warningsfor compliance-core and compliance-agent, and for compliance-dashboard with--features serverand--features web🤖 Generated with Claude Code