- The agent image ships Betterleaks 1.9.0 (MIT, gitleaks' successor by its
author; pinned with checksum) instead of gitleaks 8.21.2. It reads our
rules/gitleaks.toml unchanged, incl. the #464/#482 allowlists; `git .`
replaces `detect --source .`, `dir .` stays. Live validation (which sends
secrets to their providers) is never passed and a test pins that; the
scan runs without network.
- The findings keep the scanner name `gitleaks` (finding_store::
SECRET_SCANNER), so fingerprints (#491) and tracker issues carry over.
- RunFindings::adopt_renamed_secrets: a secret now reported under another
rule (Betterleaks' composite aws-access-token reports a lone key id as
generic-api-key; renamed vendor rules) takes over the stored row of the
same target, file and match whose old rule no longer reports it: same id,
status, triage and issue, with the new rule, title and severity.
- Compared on every fixture tree: identical results, except two planted
hard-coded passwords Betterleaks finds in the C firmware fixture
(generic-password), added to its nightly baseline.
- Docs (tools, guides), test plan check 33.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
Every member of a tenant could use Prüfwerk fully, whatever their org
role: nothing but manual findings checked org_roles. A FINANCE user
could create and delete targets, start scans and triage findings.
Now, as decided on 30.09.2026:
- IT_ADMIN, USER: read and write.
- CXO, LEGAL: read only. GET/HEAD/OPTIONS plus the POSTs that only
read (OSCAL assess, pentest report export, code chat, help chat).
- FINANCE or no role: no access.
- Agent: one middleware (api::role_gate) right after the JWT one
refuses with 403 {"error":"forbidden_role","access":...}. It is
classified by route template, so ids do not matter. Support sessions
(TenantContext.staff) and requests without a tenant context
(platform service API, Werkbank runner and admin APIs, health) are
unchanged. Manual findings stay IT_ADMIN-only.
- Core: ProductAccess and TenantContext::product_access.
- Dashboard: a role without access sees a "no access" page (DE/EN)
with a link back to the portal, and no server function runs for it.
Read-only roles get a read-only note, and write actions (add target,
scan, edit, delete, triage, tokens, MCP servers, pentest control,
graph/embedding builds, notification dismiss) are hidden. The direct
MCP server functions check the role, and access tokens are withheld
from read-only roles.
- MCP server: unchanged. Its tokens are tenant-bound and carry no
roles, its tools only read, and creating a token now needs write
access.
- Docs: the roles table in Getting Started.
- The crates are at version 0.4.4.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB