Portal Modules and Role Access
For an auditor or UAT facilitator checking which screens a role can open and what it can do there: this page lists the modules of canopy-web (worker portal) and canopy-portal (applicant portal) with the gate that enforces each row. Endpoint admissions are in RBAC Matrix; the role inventories — the role vocabulary, the clients and the worker portal’s WorkerRole set — are defined in its first section. The columns below are the WorkerRole arms.
Stack
canopy-web is a server-rendered Askama + htmx + Alpine.js BFF (services/canopy-web/templates/base.html loads alpine-csp.min.js; the fragments swap with hx-*). Every route in api::routes(), the Studio wizard, the security-administration pages and device approval sits behind middleware::require_auth and the CSRF layer (services/canopy-web/src/main.rs); a module’s POST actions take the WritePermission extractor, which is WorkerRole::can_write (services/canopy-web/src/session.rs). canopy-portal is a Dioxus 0.7 fullstack app on container port 8090 (CANOPY_PORTAL__PORT), Postgres-free, whose applicant sessions are opaque Redis tokens minted by POST /lookup/submit (services/canopy-portal/src/lookup.rs; session.rs SessionStore) per ADR-008 / ADR-026.
Worker portal (canopy-web)
View = the page renders for the role; Write = the module’s POST actions (WritePermission); — = 403 or not rendered. Every read is additionally filtered by the worker’s program scope (READ_SCOPE_POLICY, xtask/src/cmd/route_authz.rs; ADR-044).
| Module (routes) | Caseworker | Eligibility Specialist | Supervisor | Analyst | Auditor | Studio Admin | Admin | Gate |
|---|---|---|---|---|---|---|---|---|
Dashboard ( |
View |
View |
View (supervisor surface) |
View (analyst surface) |
redirected to |
View (worker surface) |
View |
|
Case search, command palette ( |
View |
View |
View |
View |
View |
View |
View |
|
Case detail ( |
View + Write |
View + Write |
View + Write |
View |
View |
View |
View + Write |
participation gate on the household; an unassigned household’s reads pass for the supervisor class ( |
Intake and applications ( |
View + Write |
View + Write |
View + Write |
View |
View |
View |
View + Write |
|
Determination ( |
Run + Approve / Deny |
same + operator-only actions |
same + operator-only actions |
View |
View |
View |
Run + Approve / Deny + operator-only actions |
|
Verifications and documents (request, accept / reject, IEVS accept / reject, scan override) |
Write |
Write |
Write + release quarantined |
View |
View |
View |
Write + release quarantined |
|
Authorized representatives (designate, disqualify, cancel) |
designate |
designate |
designate + disqualify / cancel |
View |
View |
View |
designate + disqualify / cancel |
|
Notices ( |
View |
View |
View |
View |
View |
View |
View |
the PDF is authorized by its owning case ( |
Appeals ( |
View + Write |
View + Write |
View + Write |
View |
View |
View |
View + Write |
|
Renewals ( |
View + Write |
View + Write |
View + Write |
View |
View |
View |
View + Write |
|
Team queue ( |
— |
— |
View |
— |
— |
— |
View |
|
Ops pages ( |
— |
— |
View + trigger |
— |
— |
— |
View + trigger |
|
Quarantined determinations worklist ( |
— |
View + resolve |
View + resolve |
— |
— |
— |
View + resolve |
|
Audit log ( |
— |
— |
— |
— |
View + Export + Cite |
View + Export + Cite |
View + Export + Cite |
|
Studio ( |
— |
— |
— |
— |
— |
Full |
Full |
|
Security administration ( |
with |
with |
with |
with |
with |
with |
with |
|
Device approval ( |
View + approve |
View + approve |
View + approve |
View + approve |
View + approve |
View + approve |
View + approve |
|
-
No worker role signs a determination: the program service’s key does (ADR-002).
-
Analyst is the portal’s QC persona:
quality_controlhas noWorkerRolearm, soqc.reviewer(quality_control+analyst) resolves toAnalyst, andjane.qccarriesanalystalone. -
A session holding only
security_adminresolves toWorkerRole::SecurityAdmin, the lowest recognized arm: it writes no case data, and its dashboard redirects to/admin/security(api/dashboard.rs). A worker holding a case role andsecurity_adminkeeps the case role’s surface and gains the "Security administration" link. -
A session whose roles match no arm is
Unprivilegedand sign-in is refused (WorkerRole::from_roles). -
Accounts and roles are provisioned at the upstream identity provider (IdP Integration); security administration manages canopy-identity’s subjects, links, suspensions, sessions, keys and clients, not accounts or roles.
-
Supervisor verbs that do not exist in canopy-web — federal report generation (FNS-388, QC universe), case reassignment, IPV and disqualification approvals, the TANF personal-responsibility actions — are listed in Capabilities Not Yet in the Portal.
Applicant portal (canopy-portal)
The screens are the Route enum in services/canopy-portal/src/routes.rs. A server-side request to an authed path without a valid Redis session is redirected to /lookup (AUTHED_PATHS and its middleware in services/canopy-portal/src/lookup.rs), and every data proxy behind an authed screen reads the application id from the session, never from the client (services/canopy-portal/src/main.rs, the session_ops router).
| Screen (route) | Applicant can | Gate |
|---|---|---|
Welcome, Apply, Submitted ( |
start an application, autosave each step client-encrypted, finalize and receive the |
public ( |
Lookup, Recover ( |
sign in with code + passcode; recover access or kill a session from the emailed link |
public; |
Safety ( |
read the safety guidance without signing in |
public |
Accessibility statement ( |
read the accessibility statement and the barrier-report number without signing in |
public |
Home ( |
see the case-state hero and the open-verification count |
session ( |
Letters ( |
list notices, open a PDF, mark it read |
session-owned household ( |
Documents ( |
list and upload documents for the pending request |
session-owned application ( |
Verifications ( |
respond to an open verification |
session-owned application ( |
Help ( |
read help content |
session ( |
Any other path |
|
— |
An applicant holds no role and no canopy-identity token. Outbound, the portal calls each service with its own canopy-identity system token for that service (canopy_auth::PortalSender), carrying every portal:* scope of its purpose, which the route’s portal arm checks, plus the signed X-Canopy-Applicant ownership claim on resource-keyed calls (services/canopy-portal/src/ownership.rs; canopy_auth::APPLICANT_HEADER), which the receiver verifies fail-closed and the route’s ownership check binds to the resource. There is no renewals or appeals screen.
Cross-references
-
RBAC Matrix — endpoint-level enforcement.
-
Authorization Inventory — the per-route census.
-
Caseworker & Eligibility Specialist Guide (SNAP) and Supervisor Guide (SNAP) — the same screens from the worker’s side.
-
Auditor Handbook — the index page that links both matrices.