Fleet authorization inventory
For a maintainer or agent changing an admission, adding a route or reviewing a slice: this page is the fleet-wide census of who each route admits. The executable truth it mirrors is each handler’s principal.admit(&…) and the Admission it names — a row of crates/canopy-auth/src/delegated.rs or a constant beside the handler — and canopy-web’s SCOPE_POLICY / READ_SCOPE_POLICY in xtask/src/cmd/route_authz.rs. The auditor’s summary is RBAC Matrix; tokens and receivers are Security and ADR-049.
Five table families:
-
Route admissions — one row per registered route of each receiving service: the handler, the admission it names with its arms, and the checks and attribution inside the handler.
-
canopy-web — the BFF’s write and read authorization model; its census is
SCOPE_POLICY/READ_SCOPE_POLICY, so this page records the model, not the rows. -
Compiled call graph — one row per edge of the call graph canopy compiles (ADR-049 §4), generated from the code and gated against it and against the peer settings.
-
Delegated routes (canopy-identity) — one row per named admission in
canopy_auth::delegated, generated from the code and gated against it and against each service’s router. -
Caller manifest — every client’s calls: which targets it calls on a user’s request and which on its own system token, and where the bearer comes from.
How to read an Admission cell: the constant the handler admits with (delegated::NAME, a handler constant, or inline for an Admission written in the call), then its arms joined by ;:
-
system— any confidential client’s system token but the portal’s;system: canopy-x— only those clients'; -
portal (scope)— the portal’s system token holding that scope; -
a bar alone — a user’s delegation, through any client, holding one of the bar’s roles;
-
a bar
viaclients — a user’s delegation only when its current actor is one of them: canopy-web, canopy-cli, or a service delegating onward inside the worker’s request.
The bars are crates/canopy-auth/src/roles.rs's: writer = CASEWORKER_WRITER_ROLES, caseworker+ = CASEWORKER_OR_ABOVE_ROLES, case reader = CASE_READER_ROLES, worker reader = WORKER_READER_ROLES, supervisor view = SUPERVISOR_VIEW_ROLES, audit reader = AUDIT_READER_ROLES, determination operator = DETERMINATION_OPERATOR_ROLES, citation render = CITATION_RENDER_ROLES; a literal set is its roles. A write admission names the writer bar or a narrower set, never quality_control (the static census is crates/canopy-test-lib/tests/qc_write_gate_sweep_test.rs, which reads each write route’s admitted constant).
To recompute: re-read each handler’s principal.admit(&…) and the constant’s definition. When a route is added, add its row here; a route whose admission is a canopy_auth::delegated row also regenerates that table (cargo xtask delegated-routes doc).
Route admissions
Every service’s /v1 sits behind its identity receiver (crates/canopy-auth/src/identity_receiver/), which refuses before any handler runs: 401 token_missing or token_rejected, 400 actor_header_retired, 503 keys_unavailable, and 403 for an X-Canopy-Applicant claim from anyone but the portal. A caller the admission refuses is 403 with its ReceiverDenial code (identity_receiver/denial.rs; RBAC Matrix › How a route admits its caller); the portal’s ownership checks (principal.require_owned_*) answer 403 ownership_claim_missing or ownership_mismatch.
Attribution. A handler that records who acted reads it from the bearer: principal.actor() is a user’s canopy subject (Human) or a system caller’s client id (Service, ADR-049 Amendment 3), and principal.attribution_sub() the same as a string. A service’s own background work records its own service name. A body field naming an actor is a label, never identity.
The overpayment routes of canopy-snap, canopy-tanf and canopy-medicaid are shared code (crates/canopy-overpayments/src/api.rs, over each service’s own database); the list’s admission is the mounting service’s delegated row, layered as ListAdmission, and the other routes' its ClaimAdmissions (canopy-snap and canopy-medicaid ANY_SYSTEM, canopy-tanf its own READER / WRITER), and canopy-snap mounts its own POST /v1/overpayments (src/api/overpayments_handler.rs). POST /v1/admin/events/replay is canopy-api’s (crates/canopy-api/src/admin.rs), mounted by canopy-enrollment, canopy-medicaid, canopy-notices, canopy-security, canopy-snap and canopy-tanf.
canopy-appeals
No client holds a system edge to canopy-appeals, so no route has a system arm. The filing, the decision and the IPV referral admit a writer through any client; the reads canopy-web’s pages call, its readers; every other route canopy-cli’s operators by its effect (OPERATOR_READ, OPERATOR_WRITE, OPERATION). Timeline rows and the IPV case’s referred_by record principal.actor(); the body’s actor strings (decision_actor, withdrawal_actor, requested_by, the enrollment command label) are labels, not identity.
| Route | Handler | Admission | Notes |
|---|---|---|---|
|
|
|
|
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
records |
|
|
|
records |
|
|
|
records |
|
|
|
|
|
|
|
records |
|
|
|
records |
|
|
|
records |
|
|
|
records |
|
|
|
records |
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
records |
|
|
|
|
|
|
|
records |
|
|
|
records |
|
|
|
records |
|
|
|
records |
|
|
|
records |
|
|
|
records |
|
|
|
canopy-applications
System callers are canopy-eligibility, canopy-appeals, canopy-notices, canopy-reporting and canopy-verification, and the portal on its intake, credential, recovery, application-read, document and ELE-consent routes. The supervisor or admin routes are personal acts: their helpers read the delegation’s subject and refuse a system caller.
| Route | Handler | Admission | Notes |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
portal: |
|
|
|
portal: |
|
|
|
portal: |
|
|
inline: portal ( |
|
|
|
inline: portal ( |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inline: system; |
|
|
|
|
|
|
|
|
portal: |
|
|
|
|
|
|
|
|
|
|
|
admits only canopy-eligibility by |
|
|
|
portal: |
|
|
|
portal: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inline: system; |
|
|
|
|
records |
|
|
|
records |
|
|
|
records |
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inline: system; |
|
|
|
|
records |
|
|
inline: system; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inline: system; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
records |
canopy-caps
System callers are canopy-reporting’s edge; canopy-eligibility reaches the determine route by onward delegation. The provider registry is system-only but for its by-id read.
| Route | Handler | Admission | Notes |
|---|---|---|---|
|
|
|
the authorization tab's family asset certification (#3546) |
|
|
|
|
|
|
inline: system |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
the authorization tab's child care needs (#3184) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inline: |
records |
|
|
|
canopy-snap's snapshot admission (#3427) |
|
|
|
|
|
|
|
no system or direct-user arm (#3065) |
|
|
|
the authorization tab's parent standings (#3184) |
|
|
|
|
|
|
inline: system |
|
|
|
inline: system |
|
|
|
inline: system |
|
|
|
|
|
|
|
inline: system |
canopy-eligibility
System callers are canopy-applications, canopy-renewals and canopy-eligibility itself; the portal reads determinations. The bulk-run writes and the quarantine routes are user-only, and so are the scoped and all-workers alert feeds.
| Route | Handler | Admission | Notes |
|---|---|---|---|
|
|
|
|
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
records |
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
the access event names |
|
|
|
|
|
|
|
portal: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
counts only the delegation’s programs |
|
|
|
|
|
|
|
records |
|
|
|
reads the program’s held list with the operator’s onward delegation ( |
|
|
|
looks the hold up with the operator’s onward delegation; records |
|
|
|
reads the operation’s envelopes with canopy-eligibility’s own system token on the program services' existing operation reads, never the operator’s delegation; records |
|
|
|
|
|
|
|
|
|
|
|
canopy-enrollment
System callers are canopy-appeals, canopy-eligibility, canopy-renewals, canopy-reporting, canopy-snap and the portal (the annual summary). The four household-scoped reads add the household-assignment gate for a user.
| Route | Handler | Admission | Notes |
|---|---|---|---|
|
|
|
mounted by |
|
|
|
|
|
|
|
|
|
|
inline: system |
|
|
|
|
|
|
|
|
records |
|
|
inline: system |
records |
|
|
inline: system |
|
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
inline: system |
|
|
|
|
|
|
|
inline: system; caseworker+ |
|
|
|
inline: system |
|
|
|
inline: system; caseworker+ |
|
|
|
|
|
|
|
|
|
|
|
inline: system |
|
|
|
|
|
|
|
inline: system |
|
|
|
inline: system; portal ( |
portal: |
|
|
inline: system; caseworker+ |
|
canopy-medicaid
System callers are canopy-eligibility and canopy-reporting. The FTI access-log reads admit fti_auditor alone, the ELE ops routes admin or quality_control.
| Route | Handler | Admission | Notes |
|---|---|---|---|
|
|
|
mounted by |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
records |
|
|
|
the categories tab's cooperation findings (#3191) |
|
|
|
|
|
|
|
the categories tab's counted hours (#3205) |
|
|
|
the categories tab's reports in the window (#3205) |
|
|
|
|
|
|
|
#2673: the replay adoption read |
|
|
|
the federal |
|
|
|
|
|
|
|
|
|
|
inline: |
records |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
no system or direct-user arm (#3065) |
|
|
|
|
|
|
|
the mounting router layers the admission ( |
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
canopy-notices
Only the portal holds a system edge to canopy-notices, so the reads admit the portal and canopy-web’s readers, the render route the citation audience, and the producer routes canopy-cli’s operators.
| Route | Handler | Admission | Notes |
|---|---|---|---|
|
|
|
mounted by |
|
|
inline: citation render |
|
|
|
|
portal: |
|
|
|
|
|
|
|
|
|
|
|
portal: |
|
|
inline: portal ( |
portal: |
|
|
|
portal: |
|
|
|
canopy-persons
System callers are canopy-applications, canopy-eligibility, canopy-medicaid, canopy-notices, canopy-renewals, canopy-reporting, canopy-snap, canopy-tanf and canopy-verification, and the portal on GET /v1/persons/{id}/core alone (#2706). Every person, household and fact route but GET /v1/persons/{id}/core (PORTAL_PERSON_CORE) is a delegated row; the finalize control surface admits canopy-applications' system token alone.
| Route | Handler | Admission | Notes |
|---|---|---|---|
|
|
inline: |
the export event names |
|
|
|
|
|
|
|
|
|
|
|
the |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
the |
|
|
|
the |
|
|
|
|
|
|
|
the |
|
|
|
portal: |
|
|
|
opens no SSN, stages no |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(#2546) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
canopy-renewals
System callers are canopy-eligibility and canopy-reporting, and the portal on the in-force certification read. The periodic-report commands, universe snapshots and scheduler trigger are system-only.
| Route | Handler | Admission | Notes |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inline: system |
|
|
|
|
portal: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inline: system |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
records |
|
|
inline: system |
|
|
|
inline: system |
|
|
|
inline: system |
|
|
|
inline: system |
|
|
|
inline: system |
|
|
|
inline: system |
|
|
|
inline: system |
|
|
|
inline: system |
|
|
|
|
records |
|
|
inline: system |
|
|
|
inline: system |
|
|
|
|
|
|
|
|
|
|
|
|
canopy-reporting
No client holds a system edge to canopy-reporting. Every route admits a supervisor or admin user through any client (canopy-cli’s canopy report), except the overpayment summary’s delegated row. A report run records attribution_sub() as its requester.
| Route | Handler | Admission | Notes |
|---|---|---|---|
|
|
|
|
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
canopy-rules
Every program service and canopy-eligibility call canopy-rules on system tokens; canopy-cli’s caseworker-or-above operators read the rule sets and evaluate.
| Route | Handler | Admission | Notes |
|---|---|---|---|
|
|
inline: system |
|
|
|
|
|
|
|
inline: system |
|
|
|
|
|
|
|
|
canopy-security
System callers are every program service, canopy-eligibility, canopy-web (the worker directory) and the portal (the audit ingest). The house admission is SERVICE_OR_ADMIN, widened by the delegated rows for canopy-web’s and canopy-cli’s audit readers.
| Route | Handler | Admission | Notes |
|---|---|---|---|
|
|
|
mounted by |
|
|
inline: |
the export event names |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inline: |
records |
|
|
|
|
|
|
inline: system; portal ( |
|
|
|
|
|
|
|
|
|
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inline: system |
|
|
|
inline: system |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inline: system |
canopy-identity’s routes are mounted at canopy-security’s router root, outside /v1, its receiver and its OpenAPI document; none takes a receiver admission:
| Route | Handler | Who may call |
|---|---|---|
|
|
anyone; a bearer is not read |
|
|
anyone |
|
|
a confidential client authenticated in the form by a |
|
|
canopy-web by its assertion, for its sessions and native sessions; canopy-cli for its own native session |
|
|
canopy-cli, a public client |
|
|
canopy-web by its assertion |
|
|
the security-admin guard ( |
Detail: canopy-security API Reference.
canopy-snap
System callers are canopy-eligibility and canopy-reporting, and the portal on the parameter read. The envelope operation read admits canopy-eligibility’s system token alone.
| Route | Handler | Admission | Notes |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#3220; a service bearer is 403 |
|
|
|
#3220; a service bearer is 403 |
|
|
|
#3218; a service bearer is 403 |
|
|
|
|
|
|
|
#3219; a service bearer is 403 |
|
|
|
#3219 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mounted by |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
canopy-appeals' hearing view reads it as an onward delegation |
|
|
|
records |
|
|
inline: |
records |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inline: |
the access event names |
|
|
|
no system or direct-user arm (#3065) |
|
|
|
the mounting router layers the admission ( |
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
records |
|
|
|
canopy-tanf
Every system arm lists its clients: canopy-reporting’s system token (SYSTEM_CALLERS, delegated::TANF_SYSTEM_CALLERS, and the overpayment routes through ClaimAdmissions), and on the family-composition read canopy-eligibility’s too (#3322); canopy-eligibility otherwise reaches the determine route by onward delegation. The FTI access-log reads admit fti_auditor alone.
| Route | Handler | Admission | Notes |
|---|---|---|---|
|
|
|
mounted by |
|
|
|
the federal |
|
|
|
|
|
|
|
|
|
|
inline: |
records |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
no system or direct-user arm (#3065) |
|
|
|
the mounting router layers the admission ( |
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
the #2315 work-standard classification; no delegated arm |
|
|
|
the #3048 family-composition read, and #3322’s TANF-cash member fact; no delegated arm |
|
|
|
the #3193 full-week hours read; no delegated arm |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
records |
|
|
|
canopy-verification
System callers are canopy-applications, canopy-eligibility and canopy-snap, and the portal on the inbox and respond routes. The /internal/v1 adapter routes sit behind the same receiver and admit by a route layer.
| Route | Handler | Admission | Notes |
|---|---|---|---|
|
|
|
served in a |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
portal: |
|
|
|
|
|
|
|
records |
|
|
|
|
|
|
inline: system; writer |
|
|
|
|
|
|
|
inline: system; writer |
records |
|
|
inline: system; writer |
records |
|
|
inline: system; portal ( |
portal: |
|
|
|
canopy-wic
canopy-eligibility reaches the determine route by onward delegation. The only system arm is canopy-appeals' on the four hearing-hold routes (#3387), which admit nothing else.
| Route | Handler | Admission | Notes |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inline: |
records |
|
|
|
canopy-snap's snapshot admission less its system arm (#3427) |
|
|
|
|
|
|
|
no system or direct-user arm (#3065) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
records |
|
|
|
|
|
|
|
|
|
|
|
|
canopy-web
canopy-web takes no admission: it serves worker sessions and calls the services on each worker’s delegation (Caller manifest), so its own authorization is the write and read model below.
Mutation authorization (#1516 / ADR-044)
Every mutating registration carries a machine-enforced PROGRAM-scope
classification on top of the #1004 role-tier extractor — the census lives in
SCOPE_POLICY (xtask/src/cmd/route_authz.rs) and is a cargo xtask
validate gate (an unlisted mutation, or a total that differs from the
EXPECTED_MUTATING_TOTAL canary — 119, #3546's CAPS asset
certification the latest — fails the build), so this page
records the model, not the rows:
-
RequireExtractor — the program is a compile-time fact; the handler takes
ProgramScope<Snap|Tanf|Medicaid|Caps|Wic>(sealed tags; a shadow type cannot match), which 403s before the form body is read. Covers the per-program case actions and both IEVS handlers (SNAP authoritatively — they mutate the snap service regardless of the posted label). -
RequireAuthorizedWrite — the program set is a property of the resource: the household’s participating programs (any-of, shared facts — the fact editors, and the pregnancy and homelessness actions in
pregnancy.rsandhomelessness.rs, #3147); the application row’sprograms_requested(all-of — approve, deny, request-verification, the document actions); the path program on the per-program routes (run-determination and the section/data-collection proxies, unknown slugs refused); all selected programs on file-application; any-of SNAP/TANF on ELE consent (its trigger pair); all-of the re-read envelope’s program on the quarantine worklist’s resolve (ops_quarantine.rs (resolve_quarantined_determination), #2061); all-of the re-read hold’s own program on the held worklist’s adopt and drop (ops_held.rs (adopt_held_determination, drop_held_determination), #3127), whose request bodies and paths carry the hold’s ids, never the form’s. Empty, unrecognized or non-string sets fail closed (422), never a permitted write. -
NotProgramScoped(reason) — the composition overrides, the two studio wizard mutations (
studio/wizard.rs:post_step,post_cancel, each underStudioAdminOnly, whichpolicy_forrequires of that file), the fleet-wide ops scheduler trigger (#1642), the sign-out (logout, #2517: the worker’s own session underCsrfCheckedSignOut, no case data), the eight security-administration writes (admin_security.rs, underSecurityAdminOnly) and the four device approval writes (device.rs, underApproverSession), each with its recorded reason.
Enforcement is structural, not remembered: the internal clients' write verbs
are module-private, reachable only through ScopedClients in exchange for an
AuthorizedResource proof (or the enumerated NeutralWrite: the
audit-citation render RPC and the ops scheduler trigger), so deleting a handler’s check stops
compiling; the audit adds classification completeness, extractor presence,
authorization reach, and class-borrowing symmetry on top. Routed tampering
matrix: services/canopy-web/src/api/scope_authz_route_tests.rs.
Read authorization (#1518 / ADR-044)
Every protected GET registration carries a READ_SCOPE_POLICY classification
(xtask/src/cmd/route_authz.rs, pinned by the EXPECTED_PROTECTED_GET_TOTAL
canary — 45, #3127’s held-determination worklist the latest) under the
same gate: unlisted, stale, and
count-mismatched entries all fail cargo xtask validate, and a ScopedRead
entry must REACH a scope carrier (the query-filter/participation/proof
mechanisms) via the #1516 fixpoint engine — a name-level tripwire,
deliberately over-approximate: removing a handler’s LAST carrier un-reaches
it and fails the audit, while the classification table itself stays the
human-audited truth. The model:
-
Participation gate (case detail, its tab/fact-history fragments, the cross-program summary): the household must participate in an in-scope program — the union of
programs_requestedacross its applications, the same authority as the #1516 fact-write gate (any-of). On the FULL PAGE an empty union is an honest 404 — no household-existence oracle — and an unparseable one 422s, both rendering the shared error page; the tab and fact-history FRAGMENTS keep their banner denial shapes until #1526; a lookup failure refuses the view everywhere. -
Row gate (case search, command palette): each candidate household passes the participation check before its row is BUILT; unknown participation drops fail-closed. Case search additionally degrades the fragment so an outage cannot read as "not found"; the per-keystroke palette omits silently (no degraded-state UI by design). A person with no household participates in nothing and never renders.
-
Query-time filters (application/notices/appeals indexes, team queue, renewals legs, the dashboard hero and panels, the #2061 quarantine worklist
ops_quarantine.rs (get_quarantine_worklist)): every list fetch carries the worker’sprograms=storage slugs (or fans per-program routes over canonical slugs) — the degenerate unfiltered fetch has no call site. -
One-program view gate (the #3127 held worklist
ops_held.rs (get_held_worklist)): canopy-eligibility’s held list reads one program and checks no program scope, so the page’s selector offers only the worker’s canonical slugs andScopeDenied::view_gaterefuses any otherprogram=(403, an unknown slug 422) before the one read. -
Artifact authorization (notice PDF, document bytes): the artifact is authorized by its OWNING case (the notice’s program or its household’s participation; the document’s application
programs_requested) before a byte streams — possession of the id is not access. -
Panels are compile-time plugins dispatched by slug, invisible to the route walker: the per-panel matrix is the
PANEL_SCOPE_POLICYexhaustiveness test inservices/canopy-web/src/dashboard/panels/mod.rs(every panel slug; per-program panels render an explicit scoped-out card, never a fetch). -
Audit surfaces (#1519): audit rows carry the authoritative
programsset upstream (canopy-security: publisher envelope assertion → routing-key derivation → curated neutral families → NULL); the audit page, CSV export, the dashboard panel, the case-detail Audit section and the Activity tab all send the worker’sprograms=query-time, and citation-by-id authorizes against the ROW’s set (neutral admits; overlap required; a no-assertion row is a 404 before attestation is even consulted). The BFF’sevent_programclassifier is retired as an authorization input. Pre-#1519 rows have no assertion and drop from every scoped worker’s view — the recorded forward-only posture (see the20261128000000migration header andsecurity-operations.adoc). -
/sse (#1520): the stream emits minimal invalidation messages (routing key + household id — never the envelope, which pre-#1520 carried every program’s determination and notice payloads to every authenticated worker); each connection filters fail-closed on the event’s program metadata (publisher assertion, else routing-key derivation, else NOT delivered — the #1519 precedence), and a mid-connection scope change terminates the stream so the browser reconnects through the full auth path. Read-denial shape unification: #1526.
Live disclosure regression: tests/e2e/specs/program-scope-reads.spec.ts
(the tanf-only worker, whose legitimate universe is the seed’s one
snap+tanf household).
Compiled call graph
The call graph canopy compiles (ADR-049 §4, Amendment 4): one row per (caller, target) pair a canopy client may call, from canopy_auth::identity_policy::edges() in crates/canopy-auth/src/identity_policy/call_graph.rs, whose per-caller doc comments name the call sites behind each kind. A delegation edge admits a delegation token, a system edge a system token, and a both edge either; a pair with no row carries nothing.
The table is generated: cargo xtask call-graph doc prints it, one row per edge, sorted by caller id then target id as the census sorts its pairs. cargo xtask call-graph check, the call-graph validate stage (#2644), fails on any difference between this table and the compiled graph, in either direction and kinds included, and on any difference between the compiled graph and the census of peer settings (cargo xtask call-graph census; the naming convention it reads is in Coding Conventions): an observed pair that is not compiled, an observed sender that is no compiled client, or a compiled pair no setting names. There is no allowlist: an exception is a compiled edge with its doc comment.
| Caller | Target | Kind |
|---|---|---|
canopy-appeals |
canopy-applications |
both |
canopy-appeals |
canopy-enrollment |
both |
canopy-appeals |
canopy-snap |
delegation |
canopy-appeals |
canopy-wic |
system |
canopy-applications |
canopy-eligibility |
both |
canopy-applications |
canopy-persons |
both |
canopy-applications |
canopy-renewals |
delegation |
canopy-applications |
canopy-verification |
both |
canopy-caps |
canopy-rules |
system |
canopy-caps |
canopy-security |
system |
canopy-cli |
canopy-appeals |
delegation |
canopy-cli |
canopy-applications |
delegation |
canopy-cli |
canopy-caps |
delegation |
canopy-cli |
canopy-eligibility |
delegation |
canopy-cli |
canopy-medicaid |
delegation |
canopy-cli |
canopy-notices |
delegation |
canopy-cli |
canopy-persons |
delegation |
canopy-cli |
canopy-renewals |
delegation |
canopy-cli |
canopy-reporting |
delegation |
canopy-cli |
canopy-rules |
delegation |
canopy-cli |
canopy-security |
delegation |
canopy-cli |
canopy-snap |
delegation |
canopy-cli |
canopy-tanf |
delegation |
canopy-cli |
canopy-wic |
delegation |
canopy-eligibility |
canopy-applications |
both |
canopy-eligibility |
canopy-caps |
delegation |
canopy-eligibility |
canopy-eligibility |
system |
canopy-eligibility |
canopy-enrollment |
both |
canopy-eligibility |
canopy-medicaid |
both |
canopy-eligibility |
canopy-persons |
both |
canopy-eligibility |
canopy-renewals |
both |
canopy-eligibility |
canopy-rules |
system |
canopy-eligibility |
canopy-security |
system |
canopy-eligibility |
canopy-snap |
both |
canopy-eligibility |
canopy-tanf |
both |
canopy-eligibility |
canopy-verification |
both |
canopy-eligibility |
canopy-wic |
delegation |
canopy-enrollment |
canopy-applications |
delegation |
canopy-medicaid |
canopy-persons |
system |
canopy-medicaid |
canopy-rules |
system |
canopy-medicaid |
canopy-security |
system |
canopy-notices |
canopy-applications |
system |
canopy-notices |
canopy-persons |
system |
canopy-portal |
canopy-applications |
system |
canopy-portal |
canopy-eligibility |
system |
canopy-portal |
canopy-enrollment |
system |
canopy-portal |
canopy-notices |
system |
canopy-portal |
canopy-persons |
system |
canopy-portal |
canopy-renewals |
system |
canopy-portal |
canopy-security |
system |
canopy-portal |
canopy-snap |
system |
canopy-portal |
canopy-verification |
system |
canopy-renewals |
canopy-eligibility |
both |
canopy-renewals |
canopy-enrollment |
system |
canopy-renewals |
canopy-persons |
system |
canopy-reporting |
canopy-applications |
system |
canopy-reporting |
canopy-caps |
system |
canopy-reporting |
canopy-enrollment |
system |
canopy-reporting |
canopy-medicaid |
both |
canopy-reporting |
canopy-persons |
system |
canopy-reporting |
canopy-renewals |
system |
canopy-reporting |
canopy-snap |
both |
canopy-reporting |
canopy-tanf |
both |
canopy-snap |
canopy-enrollment |
both |
canopy-snap |
canopy-persons |
both |
canopy-snap |
canopy-rules |
system |
canopy-snap |
canopy-security |
system |
canopy-snap |
canopy-verification |
system |
canopy-tanf |
canopy-persons |
system |
canopy-tanf |
canopy-rules |
system |
canopy-tanf |
canopy-security |
system |
canopy-verification |
canopy-applications |
both |
canopy-verification |
canopy-persons |
both |
canopy-web |
canopy-appeals |
delegation |
canopy-web |
canopy-applications |
delegation |
canopy-web |
canopy-caps |
delegation |
canopy-web |
canopy-eligibility |
delegation |
canopy-web |
canopy-enrollment |
delegation |
canopy-web |
canopy-medicaid |
delegation |
canopy-web |
canopy-notices |
delegation |
canopy-web |
canopy-persons |
delegation |
canopy-web |
canopy-renewals |
delegation |
canopy-web |
canopy-reporting |
delegation |
canopy-web |
canopy-security |
both |
canopy-web |
canopy-snap |
delegation |
canopy-web |
canopy-tanf |
delegation |
canopy-web |
canopy-verification |
delegation |
canopy-web |
canopy-wic |
delegation |
canopy-wic |
canopy-rules |
system |
canopy-wic |
canopy-security |
system |
Delegated routes (canopy-identity)
The named admissions of canopy_auth::delegated (ADR-049 Amendment 15): the routes a delegation caller reaches — canopy-web, canopy-cli, or a service inside a worker’s request — each admitted by its row’s constant, the route’s translated bar plus one via arm naming exactly those callers with the roles their pages let through. System is the system arm (any client but the portal, or the listed clients); Portal the portal arm’s scope; Users the roles admitting a user through any actor; Via and Via roles the via arm. A role set is the bar constant it equals in crates/canopy-auth/src/roles.rs, else its roles.
The table is generated from canopy_auth::delegated_routes(), whose rows are the named admissions in crates/canopy-auth/src/delegated.rs, each citing its handler and named <SERVICE>_<METHOD>_<PATH WORDS> for the handler to admit with: cargo xtask delegated-routes doc prints it, sorted by service, path and method. cargo xtask delegated-routes check, the delegated-routes validate stage (#2802), fails on any difference between this table and the compiled one, and on a listed route its service does not register, by a syn census of each router’s .route(…) calls through the contract path constants.
| Service | Method | Path | System | Portal | Users | Via | Via roles |
|---|---|---|---|---|---|---|---|
canopy-appeals |
GET |
|
— |
— |
— |
canopy-web |
SUPERVISOR_VIEW_ROLES |
canopy-appeals |
GET |
|
— |
— |
— |
canopy-web |
WORKER_READER_ROLES |
canopy-appeals |
GET |
|
— |
— |
— |
canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-appeals |
GET |
|
— |
— |
— |
canopy-web |
WORKER_READER_ROLES |
canopy-applications |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-appeals, canopy-web |
WORKER_READER_ROLES |
canopy-applications |
GET |
|
any |
— |
— |
canopy-cli |
CASEWORKER_OR_ABOVE_ROLES |
canopy-applications |
GET |
|
any |
— |
— |
canopy-web |
admin, supervisor |
canopy-applications |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
WORKER_READER_ROLES |
canopy-applications |
GET |
|
any |
— |
— |
canopy-eligibility |
CASEWORKER_WRITER_ROLES |
canopy-applications |
GET |
|
any |
— |
— |
canopy-web |
WORKER_READER_ROLES |
canopy-applications |
POST |
|
any |
— |
— |
canopy-cli |
admin, supervisor |
canopy-applications |
GET |
|
any |
portal:applications:read |
— |
canopy-web |
CASE_READER_ROLES |
canopy-applications |
POST |
|
any |
— |
— |
canopy-cli |
CASEWORKER_WRITER_ROLES |
canopy-applications |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
WORKER_READER_ROLES |
canopy-applications |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
WORKER_READER_ROLES |
canopy-applications |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
WORKER_READER_ROLES |
canopy-applications |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
WORKER_READER_ROLES |
canopy-applications |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
WORKER_READER_ROLES |
canopy-applications |
DELETE |
|
any |
— |
— |
canopy-cli |
CASEWORKER_WRITER_ROLES |
canopy-applications |
GET |
|
any |
portal:applications:read |
— |
canopy-cli, canopy-eligibility, canopy-verification, canopy-web |
WORKER_READER_ROLES |
canopy-applications |
GET |
|
any |
— |
— |
canopy-cli, canopy-web |
WORKER_READER_ROLES |
canopy-applications |
POST |
|
any |
— |
— |
canopy-cli, canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-applications |
GET |
|
any |
— |
— |
canopy-eligibility, canopy-verification |
CASEWORKER_OR_ABOVE_ROLES |
canopy-applications |
GET |
|
any |
— |
— |
canopy-enrollment, canopy-web |
CASEWORKER_OR_ABOVE_ROLES |
canopy-applications |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
WORKER_READER_ROLES |
canopy-applications |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
WORKER_READER_ROLES |
canopy-applications |
POST |
|
any |
— |
admin, supervisor |
canopy-appeals |
CASEWORKER_WRITER_ROLES |
canopy-caps |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-caps |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-caps |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-caps |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-caps |
GET |
|
any |
— |
admin, quality_control |
canopy-eligibility |
CASEWORKER_OR_ABOVE_ROLES |
canopy-caps |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-caps |
GET |
|
— |
— |
— |
canopy-eligibility |
admin, eligibility_specialist, supervisor |
canopy-caps |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-caps |
GET |
|
any |
— |
— |
canopy-web |
CASE_READER_ROLES |
canopy-eligibility |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
WORKER_READER_ROLES |
canopy-eligibility |
GET |
|
— |
— |
admin, supervisor |
canopy-web |
admin, studio_admin, supervisor |
canopy-eligibility |
GET |
|
any |
portal:determinations:read |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
WORKER_READER_ROLES |
canopy-eligibility |
GET |
|
— |
— |
— |
canopy-web |
CASE_READER_ROLES |
canopy-enrollment |
PUT |
|
any |
— |
— |
canopy-appeals |
CASEWORKER_WRITER_ROLES |
canopy-enrollment |
GET |
|
any |
— |
— |
canopy-appeals, canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-enrollment |
GET |
|
any |
— |
— |
canopy-web |
CASE_READER_ROLES |
canopy-enrollment |
GET |
|
any |
— |
— |
canopy-eligibility, canopy-snap |
CASEWORKER_WRITER_ROLES |
canopy-enrollment |
GET |
|
any |
— |
— |
canopy-web |
CASE_READER_ROLES |
canopy-enrollment |
POST |
|
any |
— |
— |
canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-enrollment |
GET |
|
any |
— |
— |
canopy-web |
CASE_READER_ROLES |
canopy-enrollment |
POST |
|
any |
— |
— |
canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-enrollment |
POST |
|
any |
— |
— |
canopy-web |
WORKER_READER_ROLES |
canopy-medicaid |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-medicaid |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-medicaid |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-medicaid |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-medicaid |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-medicaid |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-medicaid |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-medicaid |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-medicaid |
GET |
|
— |
— |
— |
canopy-eligibility |
admin, eligibility_specialist, supervisor |
canopy-medicaid |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-medicaid |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-reporting |
CASE_READER_ROLES |
canopy-notices |
GET |
|
— |
portal:notices:read |
— |
canopy-web |
WORKER_READER_ROLES |
canopy-notices |
GET |
|
— |
portal:notices:read |
— |
canopy-web |
WORKER_READER_ROLES |
canopy-notices |
GET |
|
— |
portal:notices:read |
— |
canopy-web |
WORKER_READER_ROLES |
canopy-persons |
GET |
|
any |
— |
— |
canopy-cli, canopy-eligibility, canopy-snap, canopy-web |
CASE_READER_ROLES |
canopy-persons |
DELETE |
|
any |
— |
— |
canopy-cli, canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-persons |
POST |
|
any |
— |
— |
canopy-cli, canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-persons |
DELETE |
|
any |
— |
— |
canopy-cli, canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-persons |
POST |
|
any |
— |
— |
canopy-cli, canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-persons |
GET |
|
any |
— |
— |
canopy-cli, canopy-eligibility, canopy-verification, canopy-web |
WORKER_READER_ROLES |
canopy-persons |
POST |
|
any |
— |
— |
canopy-applications, canopy-verification, canopy-web |
WORKER_READER_ROLES |
canopy-persons |
POST |
|
any |
— |
— |
canopy-cli |
CASEWORKER_WRITER_ROLES |
canopy-persons |
DELETE |
|
any |
— |
— |
canopy-cli, canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-persons |
POST |
|
any |
— |
— |
canopy-cli, canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-persons |
GET |
|
any |
— |
— |
canopy-web |
CASE_READER_ROLES |
canopy-persons |
POST |
|
any |
— |
— |
canopy-cli, canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-persons |
GET |
|
any |
— |
— |
canopy-cli |
CASEWORKER_OR_ABOVE_ROLES |
canopy-persons |
POST |
|
any |
— |
— |
canopy-cli, canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-persons |
GET |
|
any |
— |
— |
canopy-cli |
CASEWORKER_OR_ABOVE_ROLES |
canopy-persons |
DELETE |
|
any |
— |
— |
canopy-cli, canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-persons |
POST |
|
any |
— |
— |
canopy-cli, canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-persons |
GET |
|
any |
— |
— |
canopy-cli, canopy-web |
WORKER_READER_ROLES |
canopy-persons |
POST |
|
any |
— |
— |
canopy-cli, canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-persons |
GET |
|
any |
— |
— |
canopy-cli, canopy-web |
WORKER_READER_ROLES |
canopy-persons |
DELETE |
|
any |
— |
— |
canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-persons |
POST |
|
any |
— |
— |
canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-persons |
POST |
|
any |
— |
— |
canopy-cli, canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-persons |
DELETE |
|
any |
— |
— |
canopy-cli |
admin, supervisor |
canopy-persons |
GET |
|
any |
— |
— |
canopy-cli, canopy-web |
CASE_READER_ROLES |
canopy-persons |
PUT |
|
any |
— |
— |
canopy-cli, canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-persons |
POST |
|
any |
— |
— |
canopy-applications, canopy-web |
WORKER_READER_ROLES |
canopy-persons |
GET |
|
any |
— |
— |
canopy-cli, canopy-web |
WORKER_READER_ROLES |
canopy-persons |
POST |
|
any |
— |
— |
canopy-cli, canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-persons |
DELETE |
|
any |
— |
— |
canopy-cli, canopy-web |
CASEWORKER_WRITER_ROLES |
canopy-renewals |
POST |
|
any |
— |
— |
canopy-cli |
admin |
canopy-renewals |
GET |
|
any |
— |
— |
canopy-cli, canopy-web |
CASE_READER_ROLES |
canopy-renewals |
GET |
|
any |
— |
— |
canopy-web |
CASE_READER_ROLES |
canopy-renewals |
GET |
|
any |
— |
— |
canopy-applications |
CASEWORKER_WRITER_ROLES |
canopy-renewals |
GET |
|
any |
portal:certifications:read |
— |
canopy-eligibility, canopy-web |
WORKER_READER_ROLES |
canopy-renewals |
GET |
|
any |
— |
— |
canopy-web |
WORKER_READER_ROLES |
canopy-renewals |
GET |
|
any |
— |
— |
canopy-web |
CASE_READER_ROLES |
canopy-renewals |
GET |
|
any |
— |
— |
canopy-cli, canopy-web |
CASE_READER_ROLES |
canopy-renewals |
GET |
|
any |
— |
— |
canopy-web |
WORKER_READER_ROLES |
canopy-reporting |
GET |
|
— |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
SUPERVISOR_VIEW_ROLES |
canopy-rules |
POST |
|
any |
— |
— |
canopy-cli |
CASEWORKER_OR_ABOVE_ROLES |
canopy-rules |
GET |
|
any |
— |
— |
canopy-cli |
CASEWORKER_OR_ABOVE_ROLES |
canopy-rules |
GET |
|
any |
— |
— |
canopy-cli |
CASEWORKER_OR_ABOVE_ROLES |
canopy-security |
GET |
|
any |
— |
admin |
canopy-cli |
AUDIT_READER_ROLES |
canopy-security |
GET |
|
any |
— |
admin |
canopy-cli, canopy-web |
AUDIT_READER_ROLES |
canopy-security |
GET |
|
any |
— |
admin |
canopy-cli, canopy-web |
WORKER_READER_ROLES |
canopy-security |
GET |
|
any |
— |
admin |
canopy-cli, canopy-web |
AUDIT_READER_ROLES |
canopy-security |
GET |
|
any |
— |
admin |
canopy-cli, canopy-web |
WORKER_READER_ROLES |
canopy-security |
GET |
|
any |
— |
admin |
canopy-cli |
AUDIT_READER_ROLES |
canopy-security |
GET |
|
any |
— |
admin |
canopy-cli, canopy-web |
WORKER_READER_ROLES |
canopy-security |
GET |
|
any |
— |
admin |
canopy-cli |
AUDIT_READER_ROLES |
canopy-snap |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-snap |
GET |
|
any |
— |
— |
canopy-appeals, canopy-cli, canopy-web |
CASE_READER_ROLES |
canopy-snap |
GET |
|
any |
— |
admin, quality_control |
canopy-eligibility |
CASEWORKER_OR_ABOVE_ROLES |
canopy-snap |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-snap |
POST |
|
any |
— |
— |
canopy-eligibility |
CASEWORKER_OR_ABOVE_ROLES |
canopy-snap |
GET |
|
— |
— |
— |
canopy-eligibility |
admin, eligibility_specialist, supervisor |
canopy-snap |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-snap |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-snap |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-reporting |
CASE_READER_ROLES |
canopy-snap |
GET |
|
any |
portal:snap-params:read |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
WORKER_READER_ROLES |
canopy-snap |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-snap |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-cli, canopy-web |
CASE_READER_ROLES |
canopy-tanf |
GET |
|
canopy-reporting |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-tanf |
GET |
|
— |
— |
— |
canopy-eligibility |
admin, eligibility_specialist, supervisor |
canopy-tanf |
GET |
|
canopy-reporting |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-reporting |
CASE_READER_ROLES |
canopy-tanf |
GET |
|
canopy-reporting |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
SUPERVISOR_VIEW_ROLES |
canopy-tanf |
GET |
|
canopy-reporting |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-tanf |
POST |
|
canopy-reporting |
— |
— |
canopy-web |
CASE_READER_ROLES |
canopy-tanf |
POST |
|
canopy-reporting |
— |
— |
canopy-web |
CASE_READER_ROLES |
canopy-tanf |
POST |
|
canopy-reporting |
— |
— |
canopy-web |
CASE_READER_ROLES |
canopy-tanf |
GET |
|
canopy-reporting |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-tanf |
GET |
|
canopy-reporting |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-tanf |
POST |
|
canopy-reporting |
— |
— |
canopy-web |
CASE_READER_ROLES |
canopy-verification |
POST |
|
canopy-eligibility |
— |
— |
canopy-eligibility |
CASEWORKER_WRITER_ROLES |
canopy-verification |
POST |
|
canopy-applications |
— |
— |
canopy-applications |
WORKER_READER_ROLES |
canopy-verification |
POST |
|
canopy-applications |
— |
— |
canopy-applications |
CASEWORKER_WRITER_ROLES |
canopy-verification |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-verification |
GET |
|
— |
— |
— |
canopy-web |
CASEWORKER_OR_ABOVE_ROLES |
canopy-verification |
GET |
|
any |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-verification |
GET |
|
any |
portal:verifications:read |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
WORKER_READER_ROLES |
canopy-wic |
GET |
|
— |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-wic |
GET |
|
— |
— |
admin, quality_control |
canopy-eligibility |
CASEWORKER_OR_ABOVE_ROLES |
canopy-wic |
GET |
|
— |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-wic |
GET |
|
— |
— |
— |
canopy-eligibility |
admin, eligibility_specialist, supervisor |
canopy-wic |
GET |
|
— |
— |
CASEWORKER_OR_ABOVE_ROLES |
canopy-web |
CASE_READER_ROLES |
canopy-wic |
GET |
|
— |
— |
— |
canopy-web |
CASE_READER_ROLES |
Caller manifest
Every client’s calls, edge by edge, as the compiled call graph’s slice docs name them (crates/canopy-auth/src/identity_policy/call_graph.rs, each caller’s doc comment naming the call sites behind each kind). canopy-identity mints a token only along a compiled edge, and every receiver checks the edge again (a delegation’s current actor must hold a delegation edge to it, a system token’s client a system edge).
Where a bearer comes from:
-
canopy-web — per request,
WebSender::callsover the worker’s web session gives anArc<WebOutbound>that mints the worker’s delegation for each target (auth::Outbound,services/canopy-web/src/auth/serve.rs); its own system token (WebSender::system_bearer) serves only canopy-security’s worker directory. -
A service — inside a request, its handlers send through the request’s outbound (
canopy_auth::RequestOutbound, inserted inside the receiver byrequest_outbound_middleware): for a user caller, the user’s delegation carried onward, the service its current actor; for a system caller, the service’s own system token. Work no request owns (schedulers, MQ consumers, durable retries, boot) and shared bookkeeping (thecanopy-validatorsexistence probes, canopy-appeals' adverse-action client) send through the service’sIdentitySender, system origin. Each send goes throughcanopy_auth::send_with_retry, which mints once more only after a receiver refuses the bearer (refuses_the_bearer). -
The portal —
canopy_auth::PortalSender, its system token for each target carrying everyportal:*scope of its purpose, plus the signedX-Canopy-Applicantclaim on resource-keyed calls (services/canopy-portal/src/ownership.rs). -
canopy-cli —
DeviceClient::token(target)over the operator’s device session for the profile (canopy login).
| Caller | Delegation (a user’s request) | System |
|---|---|---|
canopy-web |
every service but canopy-security; canopy-security’s audit-log, fact-history and activity reads |
canopy-security: the worker observation ( |
canopy-portal |
— |
canopy-applications, canopy-eligibility, canopy-enrollment, canopy-notices, canopy-persons, canopy-renewals, canopy-security (the detached |
canopy-cli |
canopy-appeals, canopy-applications, canopy-caps, canopy-eligibility, canopy-medicaid, canopy-notices, canopy-persons, canopy-renewals, canopy-reporting, canopy-rules, canopy-security, canopy-snap, canopy-tanf, canopy-wic |
— |
canopy-appeals |
canopy-applications: the contested record’s read at filing, the hearing view and the decision’s inline overturn; canopy-snap: the hearing view |
canopy-applications: the overturn retry and the reconciliation; canopy-enrollment: the adverse-action client on every path (the filing’s binding and inline stay, the decision’s command, the assessment worker, the stay retry, the reconciliation); canopy-wic: the hearing hold on every path (the filing’s read and hold, the decision’s and withdrawal’s release or cancel, the hold retry), since canopy-wic’s hold routes admit no user |
canopy-applications |
canopy-eligibility, canopy-persons, canopy-renewals, canopy-verification, inside canopy-web’s or canopy-cli’s request (the inline saga drives, interviews, the representative bar, the renewal filing) |
canopy-eligibility, canopy-persons, canopy-verification: the saga ticks, the finalize reconciler, the NOMI and day-30 legs, and the portal’s finalize and recovery |
canopy-caps |
— |
canopy-rules (determine), canopy-security (the boot signing-key registration) |
canopy-eligibility |
canopy-applications, canopy-caps, canopy-enrollment, canopy-medicaid, canopy-persons, canopy-renewals, canopy-snap, canopy-tanf, canopy-verification, canopy-wic: a worker’s determine and its reads, carried onward |
canopy-applications, canopy-enrollment, canopy-medicaid, canopy-persons, canopy-renewals, canopy-snap, canopy-verification: the saga- and order-driven and bulk runs; canopy-eligibility itself: the bulk and order self-calls; canopy-rules and canopy-security: bookkeeping reads |
canopy-enrollment |
canopy-applications: the household-assignment check for a user neither |
— |
canopy-medicaid |
— |
canopy-persons (the ELE consumers, heal pass and renewal tick), canopy-rules, canopy-security |
canopy-notices |
— |
canopy-applications, canopy-persons: the work-item worker and the recovery consumer |
canopy-renewals |
canopy-eligibility: the change report’s income screen |
canopy-eligibility, canopy-persons: the materiality consumer; canopy-enrollment: the scheduler and the system-only commands |
canopy-reporting |
canopy-medicaid, canopy-snap, canopy-tanf: the overpayment summary and export |
canopy-applications, canopy-caps, canopy-enrollment, canopy-medicaid, canopy-persons, canopy-renewals, canopy-snap, canopy-tanf: the durable run worker |
canopy-snap |
canopy-enrollment, canopy-persons: the overpayment recompute |
canopy-enrollment: the claim-screen pass; canopy-persons and canopy-verification: the detached IEVS task; canopy-rules; canopy-security |
canopy-tanf |
— |
canopy-persons (the activities-summary batch canopy-reporting’s run worker calls), canopy-rules, canopy-security |
canopy-verification |
canopy-applications, canopy-persons: |
canopy-applications, canopy-persons: the same handler from canopy-applications' postponement saga; canopy-persons: the IEVS callback |
canopy-wic |
— |
canopy-rules (determine), canopy-security (the boot signing-key registration) |
canopy-eligibility’s SSA SOLQ pre-dispatch is off in development (#2495). canopy-verification serves its IEVS, SAVE and SOLQ routes only in a noop-adapters build.
Services with no routes
canopy-exchange builds no receiver, and ApiServer mounts /v1 only behind one, so its empty routes() (services/canopy-exchange/src/api/mod.rs) stays unreachable: a route added there answers 404 until the service becomes a receiver (crates/canopy-api/src/lib.rs). It calls no service.