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

  1. Roles a worker can hold — ROLE_VOCABULARY in crates/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.

  2. Clients — Client in crates/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 (its sub is 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).

  3. Worker-portal roles — WorkerRole in services/canopy-web/src/session.rs: Caseworker, EligibilitySpecialist, Supervisor, Analyst, Admin, StudioAdmin, Auditor, SecurityAdmin, and the fail-closed Unprivileged (sign-in is refused). WorkerRole::from_roles picks one arm of the session’s roles by precedence admin > studio_admin > supervisor > analyst > eligibility_specialist > auditor > caseworker > security_admin. quality_control has no arm, so the cast’s qc.reviewer (quality_control + analyst) is an Analyst in 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

caseworker

Frontline staff

Reads case data, runs intake and determinations, files appeals: a member of CASEWORKER_WRITER_ROLES, the write bar, and of WorkerRole::can_write. No worker role signs a determination — the program service’s key does (ADR-002).

eligibility_specialist

Trained eligibility staff

The same bars as caseworker, plus DETERMINATION_OPERATOR_ROLES, the bar on canopy-eligibility’s quarantined-envelope routes (OPERATOR, services/canopy-eligibility/src/api/quarantine.rs). The portal adds WorkerRole::is_determination_operator — the SNAP advance-notice exemption and the quarantined determinations worklist (/ops/quarantined-determinations, which calls those routes on the worker’s delegation; operator-only actions).

supervisor

Approval authority

Everything a specialist has, plus every supervisor or admin bar: the federal reports (SUPERVISORS, services/canopy-reporting/src/api/mod.rs), the postponement revert, scan override, reopen attestation and representative bar in canopy-applications, the bulk-run reads, pause and resume, the all-workers alert feed, and naming another worker on the scoped feed (resolve_effective_worker) in canopy-eligibility. In the portal, WorkerRole::is_supervisor_class and the Supervisor | Admin matches gate the team queue, the day-30 and scheduler ops pages, quarantined-document release and the representative bar.

quality_control

State QC reviewer

Reads everything a caseworker reads (CASEWORKER_OR_ABOVE_ROLES, CASE_READER_ROLES, WORKER_READER_ROLES) and is in no write bar — see Role bars. Its named grants are the three exports (persons, security, SNAP determinations), SNAP’s envelope and snapshot reads, the CAPS and WIC snapshot reads, and the two Medicaid ELE ops routes (ELE_OPERATOR), each admin or quality_control.

analyst

The portal’s QC persona (jane.qc)

In CASE_READER_ROLES and WORKER_READER_ROLES, so it reads what canopy-web’s case pages and panels show; resolves to WorkerRole::Analyst (the analyst dashboard surface, read-only case search and case detail). can_write is false and /audit-log is 403 — that surface is the auditor’s.

auditor

Pub 1075 §9 read persona

Opens /audit-log, its CSV export and the citation PDF: canopy-web’s api/audit_log.rs, with the modules under api/audit_log/, admits Admin | StudioAdmin | Auditor, and AUDIT_READER_ROLES and CITATION_RENDER_ROLES carry the same set to canopy-security’s event reads and canopy-notices' render route. The portal redirects it from / to /audit-log; it holds no case write.

studio_admin

Composition and onboarding operator

StudioAdminOnly (services/canopy-web/src/studio/extractor.rs) admits Admin | StudioAdmin on /studio*. Also in the case-reader, worker-reader, audit-reader, supervisor-view and citation bars; not in can_write or any write bar.

admin

System operator

In every named bar but SUPERVISOR_VIEW_ROLES, in the audit-log gate and Studio, and the only role on canopy-security’s house admission (SERVICE_OR_ADMIN, services/canopy-security/src/api/mod.rs) and the admin-only operations (the event replay, bulk-run create, enact and retry, the archive run). Membership is the upstream’s; the task-by-task view is the Administrator Guide.

fti_auditor

Separation of duties — admin does not hold it

FTI_AUDITOR (Admission::user_roles(&["fti_auditor"])) on the Pub 1075 §9 FTI access-log reads (src/api/fti_audit_handlers.rs in canopy-medicaid and canopy-tanf). A system caller is 403 there.

data_steward

Separation of duties — admin does not hold it

Admission::user_roles(&["data_steward"]) on the ADR-036 redaction writes in canopy-persons (DATA_STEWARD, services/canopy-persons/src/api/admission_rules.rs) and in each program service, and on canopy-persons' finalize-orphan compensation. A system caller is 403 there.

security_admin

canopy-identity’s administrator — admin does not hold it

The only role canopy-security’s security-administration routes admit (/identity/admin/*, services/canopy-security/src/identity/admin/guard.rs: a delegation for canopy-security, a live session and enabled clients, then the role, then a sign-in at most SECURITY_ADMIN_MAX_AGE_SECONDS old). canopy-web’s /admin/security pages read it from the session (admin_security::SecurityAdminOnly); it reaches no case data.

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

CASEWORKER_WRITER_ROLES

caseworker, eligibility_specialist, supervisor, admin

every case write

CASEWORKER_OR_ABOVE_ROLES

the writers and quality_control

case reads a user reaches through any client

CASE_READER_ROLES

caseworker-or-above, analyst, studio_admin

reads canopy-web’s case sections show

WORKER_READER_ROLES

case readers and auditor

reads any canopy-web session reaches

SUPERVISOR_VIEW_ROLES

supervisor, studio_admin

canopy-web’s supervisor panels

AUDIT_READER_ROLES

admin, studio_admin, auditor

canopy-security’s event reads

DETERMINATION_OPERATOR_ROLES

eligibility_specialist, supervisor, admin

the quarantined-envelope routes

CITATION_RENDER_ROLES

admin, studio_admin, auditor

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

POST /v1/determine — snap, tanf, medicaid, caps

WRITER = Admission::system().and_user_roles(CASEWORKER_WRITER_ROLES) — post_determine in services/canopy-snap/src/api/determine_handler.rs and in src/api/handlers.rs of canopy-tanf and canopy-caps and src/api/handlers/determine.rs of canopy-medicaid

A system caller, or a writer’s delegation through any client: canopy-eligibility’s onward delegation of the worker’s token. A quality_control-only user is 403 required_role_missing. canopy-snap’s provenance guard then refuses every caller but canopy-eligibility (determine_policy.rs), and canopy-medicaid’s refuses an orchestrator-only field from any other.

POST /v1/determine — wic

WRITER = Admission::user_roles(CASEWORKER_WRITER_ROLES) (services/canopy-wic/src/api/handlers.rs)

No client holds a system edge to canopy-wic, so its admissions have no system arm; a system caller is 403 service_class_on_user_only.

POST /v1/eligibility/determine (orchestrator)

WRITER (system; writer), and for a bulk or order marker also SELF_CALL = system_from(&[Eligibility]) — post_determine, services/canopy-eligibility/src/api/handlers.rs

The worker’s entry point; …/determine/dry-run is write-free and admits caseworker-or-above. The orchestrator carries the worker’s delegation onward — see Cross-service token flow.

GET /v1/persons/{id} (canopy-persons)

delegated::PERSONS_GET_PERSONS_ID = system; CASE_READER_ROLES via canopy-web, canopy-cli. The portal’s person read is PORTAL_PERSON_CORE (in services/canopy-persons/src/api/admission_rules.rs) = portal portal:persons:read alone, plus require_owned_person, on GET /v1/persons/{id}/core, which never opens the SSN (#2706)

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 /core, are rows of the same shape; its export is admin or quality_control, its redactions data_steward.

POST /v1/applications (canopy-applications)

delegated::APPLICATIONS_POST_APPLICATIONS = system; CASEWORKER_WRITER_ROLES via canopy-web, canopy-cli

Worker intake is a WritePermission action in the portal, sent on the worker’s delegation.

POST /v1/reporting/snap/fns-388, POST /v1/reporting/snap/qc-universe, GET /v1/reporting/overpayments

SUPERVISORS = Admission::user_roles(&["supervisor", "admin"]) — services/canopy-reporting/src/api/mod.rs

User-only, through any client (canopy-cli’s canopy report); a system caller is 403 service_class_on_user_only.

canopy-security reads and chain routes (GET /v1/security/events, /v1/security/alerts*, /v1/security/chain/*)

SERVICE_OR_ADMIN = Admission::system().and_user_roles(&["admin"]), widened on the listed reads by their delegated rows (AUDIT_READER_ROLES or WORKER_READER_ROLES via canopy-web, canopy-cli) — services/canopy-security/src/api/mod.rs

A user outside AUDIT_READER_ROLES reads the event list only for one household (require_case_scope); canopy-web gates the audit log itself (Admin | StudioAdmin | Auditor).

POST /v1/documents/render (canopy-notices)

Admission::user_roles(CITATION_RENDER_ROLES)

The audit-citation PDF: admin, studio_admin, auditor — the one write whose bar is not a subset of the writer set.

IPV referral (POST /v1/ipv/cases, canopy-appeals)

WORKER_WRITE = Admission::user_roles(CASEWORKER_WRITER_ROLES) — create_referral, services/canopy-appeals/src/ipv/api.rs

No client holds a system edge to canopy-appeals. The referrer is principal.actor(), recorded as the ipv_cases.referred_by pair; the body carries no referred_by, and a stale one is refused as an unknown field.

Appeals operator routes (the hearing and withdrawal lifecycle, the IPV case actions)

OPERATOR_WRITE = Admission::user_roles_via(&[CLI], CASEWORKER_WRITER_ROLES); reads OPERATOR_READ (caseworker-or-above via canopy-cli); the internal triggers OPERATION (admin via canopy-cli) — services/canopy-appeals/src/api/mod.rs

The writes no service makes, reached by canopy-cli’s canopy appeal and canopy ipv (Amendment 15).

Renewals worker actions (POST /v1/renewals/snap/nudges/{id}/action, POST /v1/renewals/snap/redeterminations/{id}/action)

WRITER (system; writer) — action_recert_nudge, action_redetermination, services/canopy-renewals/src/api/mod.rs

The actor comes from the bearer (principal.actor()): a worker’s canopy subject, or a system caller’s client id, in the action_by pair. Neither body carries action_by; a stale one is refused as an unknown field.

POST /v1/applications/{id}/programs/snap/postpone and …/postponement/revert

WRITER on postpone (postponement.rs); Admission::system().and_user_roles(POSTPONEMENT_REVERT_ROLES), supervisor or admin, on revert (postponement_revert.rs)

The revert is the supervisor-class exception among the SNAP application writes.

GET /v1/households/{household_id}/issuances (canopy-enrollment)

Admission::system().and_user_roles(CASEWORKER_OR_ABOVE_ROLES) + gate_household_actor_access

Two gates in series: a user must be supervisor / admin or hold an active household_assignments row in canopy-applications, asked on the user’s delegation; a system caller passes. A user’s allowed and refused reads both emit audit events.

Assignments (POST /v1/assignments, DELETE /v1/assignments/{id}, GET /v1/assignments?subject=)

SYSTEM = Admission::system()

System provisioning; any user is 403 system_caller_required. GET /v1/assignments/household-ids is the delegated row admitting canopy-eligibility’s and canopy-verification’s onward delegations.

Internal adapter routes (POST /internal/v1/ievs/match, /save/*, /ssa/solq, canopy-verification)

system_from(&[Snap]); system_from(&[Eligibility, Snap]); SOLQ’s delegated row (system: canopy-eligibility; a writer via canopy-eligibility) — services/canopy-verification/src/api/internal.rs

A client pin: another client’s system token is 403 service_not_allowlisted.

Quarantined determination envelopes (GET /v1/eligibility/quarantined-determinations, GET …/{id}, POST …/{id}/resolutions)

OPERATOR = Admission::user_roles(DETERMINATION_OPERATOR_ROLES) — services/canopy-eligibility/src/api/quarantine.rs

User-only; a system caller is 403 service_class_on_user_only, a caseworker or QC user 403 required_role_missing. Each resolution ledgers the caller’s attribution_sub() and the highest operator role it holds.

Medicaid ELE ops (POST /v1/ele/{person_id}/revoke, POST /v1/ele/renewals/run)

ELE_OPERATOR = Admission::user_roles(&["admin", "quality_control"])

The deliberate QC write grants: a policy allow-list, not a bar.

FTI access-log reads (canopy-medicaid, canopy-tanf fti_audit_handlers.rs)

FTI_AUDITOR

Pub 1075 §9; admin does not pass.

Security administration (/identity/admin/*, canopy-security)

The security-admin guard (identity/admin/guard.rs), outside /v1

security_admin, a delegation for canopy-security, and a recent sign-in: else 403 insufficient_scope, or 401 insufficient_user_authentication, which canopy-web answers with a step-up.

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).

  1. 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).

  2. 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' WRITER admits either.

  3. canopy-cli → services: the worker’s delegation from a device-flow session (canopy login).

  4. The portal → services: its system token for each target, with every portal:* scope of its purpose, plus the signed X-Canopy-Applicant claim.

  5. Background work (schedulers, subscribers, retries): the service’s own system token (IdentitySender), along its system or both edges.

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.

Edit this page · default