fix(auth): OWNER has IT_ADMIN's rights in Prüfwerk (#982)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 4m41s
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 / Check (pull_request) Successful in 20m36s

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>
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-11-12 09:48:24 +01:00
1 parent f5697ff21d
commit ca39450774
11 files changed
+54 -29

No files matched your search

+2 -2
View File
@@ -35,11 +35,11 @@ What you can do in Prüfwerk depends on your role in the workspace:
| Role | Prüfwerk |
| --- | --- |
| `IT_ADMIN`, `USER` | everything: add targets, run scans, triage findings |
| `OWNER`, `IT_ADMIN`, `USER` | everything: add targets, run scans, triage findings |
| `CXO`, `LEGAL` | read only: view and export findings, reports, SBOM, evidence |
| `FINANCE`, or none of these | no access |
Only `IT_ADMIN` can add or import findings by hand.
Only `IT_ADMIN` and `OWNER` can add or import findings by hand.
## Quick Walkthrough
+1 -1
View File
@@ -38,7 +38,7 @@ Was Sie in Prüfwerk tun können, hängt von Ihrer Rolle im Arbeitsbereich ab:
| Rolle | Prüfwerk |
| --- | --- |
| IT-Administration (`IT_ADMIN`), Benutzer (`USER`) | alles: Prüfobjekte anlegen, prüfen, Befunde bewerten |
| Inhaber (`OWNER`), IT-Administration (`IT_ADMIN`), Benutzer (`USER`) | alles: Prüfobjekte anlegen, prüfen, Befunde bewerten |
| Geschäftsführung (`CXO`), Recht (`LEGAL`) | nur lesen: Befunde, Berichte, Stückliste, Nachweise ansehen und exportieren |
| Finanzen (`FINANCE`) oder keine dieser Rollen | kein Zugriff |
+2 -2
View File
@@ -10,7 +10,7 @@ Two ways to add them, both on a target's details under **Targets**:
- **Import a report**: a tool's report as a whole, in SARIF 2.1.0 or OWASP
ZAP's JSON report.
Only the organisation's administrators (`IT_ADMIN`) can add or import findings.
Only the organisation's administrators (`IT_ADMIN`, `OWNER`) can add or import findings.
A tester working for a customer is invited into that customer's organisation
with that role.
@@ -59,4 +59,4 @@ curl -X POST "$AGENT/api/v1/targets/$TARGET/findings/import?format=sarif&kind=pe
`format` is `sarif` or `zap`; `kind` is `pentest` or `dast`. The import answers
with `{"total": …, "imported": …, "duplicates": …}`. A document that is not
the named format is refused with 422, and a user without `IT_ADMIN` with 403.
the named format is refused with 422, and a user without `IT_ADMIN` or `OWNER` with 403.
+3 -3
View File
@@ -231,7 +231,7 @@ Copyleft-licensed dependencies can require you to release your source code under
### Confirming a license
Where the scan finds no license (**Unknown**) or a wrong one, people with the
IT_ADMIN or USER role can confirm the license themselves; CXO and LEGAL can
OWNER, IT_ADMIN or USER role can confirm the license themselves; CXO and LEGAL can
read the confirmations (LEGAL decides about them in the
[legal review](#license-policy-and-legal-review)).
@@ -285,9 +285,9 @@ announced period (60 days unless changed) is listed in advance.
The default policy forbids nothing: copyleft, bought and unknown licenses
of shipped components need a review, everything else is allowed. Only the
LEGAL and IT_ADMIN roles can change the policy; everyone else can read it.
LEGAL, IT_ADMIN and OWNER roles can change the policy; everyone else can read it.
**The review.** People with the **LEGAL** role (and IT_ADMIN) decide the
**The review.** People with the **LEGAL** role (and IT_ADMIN or OWNER) decide the
components *Zur Prüfung*:
1. Click **Freigeben** in a row, or tick several rows and click