Minimal role-based access control so a pilot tenant can give people read-only access. Scope is deliberately small (#190 reduced to "minimal"): map the platform's org_roles claim to three roles and enforce Viewer as read-only.
What to change
Map org_roles → Admin / Member / Viewer.
Enforce Viewer as read-only in the agent API.
Enforce Viewer as read-only in the dashboard UI (no write affordances).
Declare the role mapping in product.manifest.yaml (MVP-1.8).
Acceptance
A Viewer token is refused on every write endpoint (target create/delete, scan trigger, finding status change, evidence import) with 403.
The dashboard hides or disables write actions for a Viewer.
Admin and Member behaviour is unchanged for the pilot.
The mapping appears in the registered manifest; #190 closed as the minimal scope.
## Goal
Minimal role-based access control so a pilot tenant can give people read-only access. Scope is deliberately small (#190 reduced to "minimal"): map the platform's `org_roles` claim to three roles and enforce Viewer as read-only.
## What to change
- Map `org_roles` → Admin / Member / Viewer.
- Enforce Viewer as read-only in the agent API.
- Enforce Viewer as read-only in the dashboard UI (no write affordances).
- Declare the role mapping in `product.manifest.yaml` (MVP-1.8).
## Acceptance
- [ ] A Viewer token is refused on every write endpoint (target create/delete, scan trigger, finding status change, evidence import) with 403.
- [ ] The dashboard hides or disables write actions for a Viewer.
- [ ] Admin and Member behaviour is unchanged for the pilot.
- [ ] The mapping appears in the registered manifest; #190 closed as the minimal scope.
sharang
added this to the Production MVP milestone 2026-09-20 20:17:25 +00:00
Done in #431: org roles are enforced. IT_ADMIN and USER read and write, CXO and LEGAL read only, FINANCE or no role get no access (agent api::role_gate, dashboard no-access and read-only views).
Done in #431: org roles are enforced. IT_ADMIN and USER read and write, CXO and LEGAL read only, FINANCE or no role get no access (agent `api::role_gate`, dashboard no-access and read-only views).
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.
Goal
Minimal role-based access control so a pilot tenant can give people read-only access. Scope is deliberately small (#190 reduced to "minimal"): map the platform's
org_rolesclaim to three roles and enforce Viewer as read-only.What to change
org_roles→ Admin / Member / Viewer.product.manifest.yaml(MVP-1.8).Acceptance
Done in #431: org roles are enforced. IT_ADMIN and USER read and write, CXO and LEGAL read only, FINANCE or no role get no access (agent
api::role_gate, dashboard no-access and read-only views).