RBAC Matrix
For a security auditor or ATO assessor checking who may call what: this page names the roles, the clients, the role bars the admissions compose, and a representative endpoint per admission shape. The per-route census is Authorization Inventory; upstream sign-in and role mapping are IdP Integration; tokens, receivers and data tenancy are Security; the screen-by-screen view is Portal Modules and Role Access.
Three inventories
-
Roles a worker can hold —
ROLE_VOCABULARYincrates/canopy-auth/src/roles.rs:admin,analyst,auditor,caseworker,data_steward,eligibility_specialist,fti_auditor,quality_control,security_admin,studio_admin,supervisor. canopy-identity’s upstream projection (canopy_auth::upstream::project) keeps only these names from the upstream’s answer, so an unmapped upstream group never reaches a session, a delegation token or an audit payload; operators map their upstream’s groups onto them (ADR-044). On the devstack each is a Kanidm group,canopy_role_<name>(devstack/kanidm/migrations/00-canopy.hjson). There is no applicant role: an applicant holds no canopy-identity credential at all. -
Clients —
Clientincrates/canopy-auth/src/identity_policy/clients.rs: a confidential client per service that sends, plus canopy-web and the portal, and the native client canopy-cli. A system token names its client (itssubis the client id) and carries no role (ADR-049 §3); a delegation token carries the user’s canopy subject, roles and programs, and its actor chain, the current actor first. Which client may call which service, with which kind of token, is the compiled call graph (Cross-service token flow; table in Authorization Inventory). -
Worker-portal roles —
WorkerRoleinservices/canopy-web/src/session.rs:Caseworker,EligibilitySpecialist,Supervisor,Analyst,Admin,StudioAdmin,Auditor,SecurityAdmin, and the fail-closedUnprivileged(sign-in is refused).WorkerRole::from_rolespicks one arm of the session’s roles by precedenceadmin>studio_admin>supervisor>analyst>eligibility_specialist>auditor>caseworker>security_admin.quality_controlhas no arm, so the cast’sqc.reviewer(quality_control+analyst) is anAnalystin the portal.
Role catalogue
Two sentences per role; the symbol named is the admission or gate that enforces the sentence.
| Role | Who | What the code lets it do |
|---|---|---|
|
Frontline staff |
Reads case data, runs intake and determinations, files appeals: a member of |
|
Trained eligibility staff |
The same bars as |
|
Approval authority |
Everything a specialist has, plus every |
|
State QC reviewer |
Reads everything a caseworker reads ( |
|
The portal’s QC persona ( |
In |
|
Pub 1075 §9 read persona |
Opens |
|
Composition and onboarding operator |
|
|
System operator |
In every named bar but |
|
Separation of duties — |
|
|
Separation of duties — |
|
|
canopy-identity’s administrator — |
The only role canopy-security’s security-administration routes admit ( |
An applicant reaches only their own household, through canopy-portal’s reference-number login (HH-[a-f0-9]{8} code + passcode, verified by canopy-applications POST /v1/applicants/verify-credential) and an opaque Redis session (ADR-008, ADR-026). The portal calls the services with its own system tokens, and the signed X-Canopy-Applicant claim binds each resource-keyed call to that applicant (Cross-service token flow).
Role bars
A route’s admission names its roles as a bar from crates/canopy-auth/src/roles.rs or as a literal set (&["supervisor", "admin"]):
| Bar | Roles | Typical use |
|---|---|---|
|
|
every case write |
|
the writers and |
case reads a user reaches through any client |
|
caseworker-or-above, |
reads canopy-web’s case sections show |
|
case readers and |
reads any canopy-web session reaches |
|
|
canopy-web’s supervisor panels |
|
|
canopy-security’s event reads |
|
|
the quarantined-envelope routes |
|
|
the audit-citation render, the one write outside the writer set |
quality_control reads and never writes, and three tiers enforce it: every write admission names CASEWORKER_WRITER_ROLES (or a narrower set), read admissions keep CASEWORKER_OR_ABOVE_ROLES or a reader bar, and the worker portal checks WorkerRole::can_write. The bar follows the handler’s effect, not the HTTP verb. The static census is crates/canopy-test-lib/tests/qc_write_gate_sweep_test.rs, which reads each write route's handler, the functions of its service the handler runs, and the constants they admit by. It finds each by its path, from the file that registers the route and through use, super:: and crate::, so a handler or a constant is not taken for a namesake in another module; a name the path does not place is searched for across the service, and a choice between definitions that differ fails the test rather than being guessed. The live probes are tests/qc_read_only_test.rs in eleven services, on qc.reviewer's delegation from the token broker.
How a route admits its caller
Every service’s /v1 sits behind its identity receiver, which authenticates the bearer (401 token_missing or token_rejected) and builds the request’s Principal. Each handler then calls principal.admit(&ADMISSION)? with a named Admission (crates/canopy-auth/src/identity_receiver/admission.rs; ADR-049 Amendment 14): a row of crates/canopy-auth/src/delegated.rs or a constant beside the handler. Its arms:
-
system — any confidential client’s system token but the portal’s (
Admission::system()), or only listed clients' (system_from); -
portal — the portal’s system token holding a named
portal:*scope; -
users — a user’s delegation, through any client, holding one of the roles;
-
via — a user’s delegation only when its current actor is a listed client (
user_roles_via): canopy-web, canopy-cli, or a service delegating onward inside the worker’s request.
A caller no arm admits is 403 with the first refusal in order: portal_on_non_portal_route / portal_scope_missing; service_class_on_user_only (a system caller on a user-only route) / service_not_allowlisted; system_caller_required (a user on a system-only route) / actor_not_allowed / required_role_missing. The portal’s routes add the ownership check (principal.require_owned_*: 403 ownership_claim_missing or ownership_mismatch).
Endpoint enforcement (representative)
One row per admission shape, drawn from the handlers. Full census: Authorization Inventory.
| Endpoint | Admission | Notes |
|---|---|---|
|
|
A system caller, or a writer’s delegation through any client: canopy-eligibility’s onward delegation of the worker’s token. A |
|
|
No client holds a system edge to canopy-wic, so its admissions have no system arm; a system caller is 403 |
|
|
The worker’s entry point; |
|
|
A delegated row: the via arm names the clients a worker reaches the route through. canopy-persons' other reads and writes, but the portal’s |
|
|
Worker intake is a |
|
|
User-only, through any client (canopy-cli’s |
canopy-security reads and chain routes ( |
|
A user outside |
|
|
The audit-citation PDF: |
IPV referral ( |
|
No client holds a system edge to canopy-appeals. The referrer is |
Appeals operator routes (the hearing and withdrawal lifecycle, the IPV case actions) |
|
The writes no service makes, reached by canopy-cli’s |
Renewals worker actions ( |
|
The actor comes from the bearer ( |
|
|
The revert is the supervisor-class exception among the SNAP application writes. |
|
|
Two gates in series: a user must be |
Assignments ( |
|
System provisioning; any user is 403 |
Internal adapter routes ( |
|
A client pin: another client’s system token is 403 |
Quarantined determination envelopes ( |
|
User-only; a system caller is 403 |
Medicaid ELE ops ( |
|
The deliberate QC write grants: a policy allow-list, not a bar. |
FTI access-log reads (canopy-medicaid, canopy-tanf |
|
Pub 1075 §9; |
Security administration ( |
The security-admin guard ( |
|
Cross-service token flow
canopy-identity, in canopy-security, is the only issuer, and it mints a token only along an edge of the compiled call graph (crates/canopy-auth/src/identity_policy/call_graph.rs; the table).
-
Worker → canopy-web: a web session, opened through canopy-identity’s federation of the upstream sign-in. canopy-web → each service: the worker’s delegation for that one target, minted per request (
WebOutbound); canopy-web’s own system token serves only the worker directory (the observed-worker sink and the name refill). -
canopy-eligibility → the program services and its peers: inside a worker’s determine, the worker’s delegation carried onward (current actor canopy-eligibility); for a system caller’s run, or off a request, canopy-eligibility’s system token. The program services'
WRITERadmits either. -
canopy-cli → services: the worker’s delegation from a device-flow session (
canopy login). -
The portal → services: its system token for each target, with every
portal:*scope of its purpose, plus the signedX-Canopy-Applicantclaim. -
Background work (schedulers, subscribers, retries): the service’s own system token (
IdentitySender), along itssystemorbothedges.
No service holds a worker’s token beyond its request, and no shared secret stands in for a token: canopy-verification’s adapter routes admit their callers' system tokens. Key material and rotation: Security Operations and Signing Key Rotation.