Administrator Guide
For the administrator of a Canopy deployment — the person who holds the admin role, the
security administrator who holds security_admin, or the operator who provisions them:
this guide names each administrative job, the role it requires and the page that owns the
procedure. It restates none of those pages.
Casework is the Caseworker & Eligibility Specialist Guide and
the Supervisor Guide; a UAT facilitator starts at the
UAT Facilitator Guide; abbreviations are in the glossary.
Your Role and Permissions
The admin role resolves to WorkerRole::Admin, the first arm of
WorkerRole::from_roles (services/canopy-web/src/session.rs), so a user
carrying admin plus any other role lands here. In the portal it passes every check
(can_write, is_determination_operator, is_supervisor_class); your Dashboard is the
worker surface (surface_for_role, services/canopy-web/src/api/dashboard.rs) and the
sidebar adds Studio and Audit log (services/canopy-web/templates/base.html). Every
service checks your roles again on the delegation token canopy-web or canopy-cli sends for
you. On canopy-security, admin passes every human admission of the /v1/security
routes, and is the only human role admitted to the single-alert read and its status
change, the manual chain-verification jobs, the archive and the worker directory (SERVICE_OR_ADMIN,
services/canopy-security/src/api/mod.rs).
By design admin does not imply fti_auditor — the Publication 1075 §9 FTI access-log
reads, which admit an fti_auditor delegation alone (FTI_AUDITOR in
src/api/fti_audit_handlers.rs of canopy-tanf and canopy-medicaid) — or data_steward,
the ADR-036 redaction writes; each is a
separate assignment at the identity provider (RBAC Matrix).
Nor does it imply security_admin, which in turn grants no casework. A session holding
security_admin sees Security administration in the sidebar whatever its other roles;
one holding it alone resolves to WorkerRole::SecurityAdmin, last in from_roles, and
lands on /admin/security (Security Administration).
User Management
Role: an administrator of the upstream identity provider — an account there, not a Canopy role. Canopy’s side of a person is a security administrator’s (Security Administration).
Canopy keeps no user accounts. A worker signs in at the deployment’s one upstream OIDC
provider — Kanidm by default (ADR-050),
named by canopy-security’s upstream profile, identity-upstream.yaml
(IdP Integration) — and canopy-identity, hosted in
canopy-security, turns that sign-in into a Canopy session and issues every token sent for
the worker (ADR-049). Creating, disabling and
resetting an account, and assigning its roles and programs, happen at the provider; the
portal has no user-management module (Portal Modules).
-
Roles. The provider sends the account’s roles in a
rolesclaim. canopy-identity keeps only names in Canopy’s role vocabulary (ROLE_VOCABULARY,crates/canopy-auth/src/roles.rs; the roles are catalogued in the RBAC Matrix) and refuses a sign-in with none (no_role). The portal then picks one arm by precedence —admin>studio_admin>supervisor>analyst>eligibility_specialist>auditor>caseworker>security_admin(from_roles); a role set naming none of them is refused at sign-in. Assign one case-working tier (caseworker,eligibility_specialist,supervisor) or one specialist role. -
Programs. The provider sends the account’s programs in a
primary_programsclaim. A sign-in naming none is refusedmissing_primary_programs, one naming a program Canopy does not knowmalformed_primary_programs, with no override (ADR-044). -
Subjects. The first sign-in of an upstream identity (its issuer and subject) mints a Canopy subject linked to that pair, and each later sign-in of the pair opens as that subject: its id is the
subof the worker’s tokens and the actor the services record. A link never changes by itself, so renaming the provider’s issuer mints new subjects unless a security administrator links the new pairs to the old subjects (Security Operations › Re-linking an upstream identity). -
Check. Sign in as the user: the role at the top right is the arm the portal resolved, and a refused sign-in says what is missing on the sign-in page.
On the devstack the provider is Kanidm with a fixed cast,
devstack/kanidm/migrations/00-canopy.hjson: 20 persons, a role being membership of a
canopy_role_<role> group and a program membership of a canopy_program_<program>
group, which the canopy-web client’s claim maps send as roles and primary_programs.
To change it, edit the file and PERSONS / GROUPS in
crates/canopy-test-lib/src/upstream/kanidm/mod.rs together (a unit test pins the two);
the next bring-up (cargo xtask dev refresh) provisions the changed cast afresh on an
empty Kanidm volume and writes each person’s new password and TOTP secret to
.devstack/idp/kanidm.json
(Local Development › Upstream IdP: Kanidm).
Security Administration
Role: security_admin. canopy-web’s SecurityAdminOnly
(services/canopy-web/src/admin_security.rs) answers any other session the 403 page, and
canopy-security’s admin routes admit only a security_admin delegation through canopy-web
(services/canopy-security/src/identity/admin/guard.rs); no canopy-cli session administers.
Security administration (sidebar, /admin/security) works canopy-identity’s registry:
-
Find a subject — by an upstream identity (Upstream issuer URL, Upstream subject) or by Subject id. The subject page lists the upstream identities linked to it and its sessions, web and canopy-cli device sessions alike (Opened by names the client), with Suspend or Lift the suspension, and Revoke on each session.
-
Create a subject — an unlinked subject, at a given id or a new one; it grants nothing until a link reaches it.
-
Link an upstream identity — link, or re-link, an (issuer, subject) pair to a subject.
-
Signing keys — canopy-identity’s signing keys, each with Revoke.
-
Clients — each client’s registry entry and runtime state, with Disable or Enable; canopy-cli, which has no registry entry, is listed as
native.
Every write takes a Reason (required), recorded with you in canopy-security’s admin
action log. A write needs a sign-in at most 600 seconds old
(SECURITY_ADMIN_MAX_AGE_SECONDS, crates/canopy-auth/src/identity_session.rs): when
yours is older, the page sends you through a fresh sign-in at the identity provider
(/auth/step-up) and back. What each write does, and the SQL path while the routes are
unavailable, are Security Operations ›
Subjects and web sessions and the sections after it. Disabling canopy-web on Clients
refuses its token requests, every worker’s included, and locks every security
administrator out, you included, until it is re-enabled by SQL
(Security Operations › Disabling a client at runtime).
Signing canopy-cli In
Role: any role canopy-web admits; each command is then admitted on your roles.
canopy-cli signs in with canopy login, the device flow: it prints canopy-web’s device
page and a code, and you approve the code there with a fresh sign-in
(Caseworker Guide › Approving canopy-cli on a device).
canopy token <SERVICE> prints one service’s token from that session, for a request no
command makes; canopy logout revokes it. Profiles, the devstack profile and each
command’s admission are canopy-cli.
Jurisdiction Configuration
Role: repository and deployment write. Rulesets load at start and reload only on restart.
Everything jurisdiction-specific is the jurisdiction’s configuration layer plus deployment configuration
(ADR-006); the file set
is Rulesets. A new jurisdiction starts as a copy of fixtures/config/default/
and follows the Jurisdiction Onboarding Runbook. Which
rulesets a service loads is the deployment’s CANOPY_CONFIG_SOURCE, the configuration
layers lowest first, whose jurisdiction layer’s canopy-config.toml names the jurisdiction
(the shipped configuration names none outside the devstack’s dev.yaml, and a service
started without one refuses to boot); CANOPY_<SVC>__CONFIG_SOURCE pins one service
(Configuration Reference › Configuration source).
GET /version on any canopy service shows the layers and commits it runs on. A policy
change is: edit jurisdiction.toml or the JDM file, record the source in citations.toml
(ADR-011), run the gates, commit,
redeploy or restart.
cargo xtask policy audit --jurisdiction <slug> # citations complete, consistent, not stale
cargo xtask rules check # every JDM file compiles through the engine
cargo xtask rules lint-inputs # literals that belong in jurisdiction.toml
cargo xtask rules processing-days # the paired SNAP processing clocks agree
Studio (/studio; StudioAdminOnly admits Admin | StudioAdmin,
services/canopy-web/src/studio/extractor.rs) offers one card, Onboarding wizard → Start
onboarding: four steps — Jurisdiction metadata, Theme preset, Enabled programs,
Review — ending in Download bundle, a scaffold of rulesets/<slug>/ (a copy of the reference
pack with its canopy-config.toml naming the new jurisdiction) for an integrator
to author (services/canopy-web/templates/studio/); it changes nothing in the running
deployment. Jurisdiction metadata proposes no timezone: the operator enters the
jurisdiction’s IANA zone (its legal day for every deadline), and the step refuses an empty
one. Sign-in is no part of the bundle beyond jurisdiction.toml's required
[sign_in] system_use_notice, the sign-in page’s AC-8 notice: the identity provider is
deployment configuration, the upstream profile identity-upstream.yaml (ADR-050), as the
bundle’s README says (services/canopy-web/src/studio/bundle.rs).
Federal Parameter Updates (Annual FPL, Allotment Tables)
Role: a policy analyst or maintainer with repository write; a service reads a new file on restart.
Federal tables live in the federal configuration layer, versioned by fiscal year (ADR-006), each file
carrying its _source and effective-date header and every value cited in
the federal layer’s citations.toml (ADR-011). The federal layer’s indexing.toml assigns each file
to a family with a cutover and grace window — snap-cola (Oct 1, no grace), fpl (Jan 1,
90 days), smi (Oct 1, 30 days), cms-416 (Oct 1, 90 days), static — and the audit flags
an out-of-window family on its own. The per-family calendar is
Policy Currency Runbook › The annual federal cycle.
-
FPL (January): add
fpl-YYYY.jsonand update the three code pins that name the file —services/canopy-medicaid/src/params.rs,services/canopy-reporting/src/reporting/medicaid.rs,services/canopy-wic/src/params.rs(the federal layer’sREADME.adoc). -
SNAP COLA (October 1): stage
snap-{allotments,deductions,income-limits}-YYYY.jsonbeside the old files — never replace or delete them. canopy-snap selects the triple in force at each determination’s evaluation date (services/canopy-snap/src/param_sets.rs); with no successor staged after October 1, determinations fail closed with 422params_unstaged(how canopy-snap selects a set).
cargo xtask policy audit --source federal # citation, indexing window, schema
cargo xtask rules check
Then restart canopy-snap and confirm the boot line snap parameter set loaded shows the new
window (Rolling deploy & rollback › Parameter-set cutover
check). The FY2027 SNAP triple in the tree (snap-*-2027.json) holds the FNS FY2027 COLA
figures, effective 2026-10-01 (memo of 2026-08-21, #1682).
NIST Security Controls
Role: none to read the mappings. GET /v1/security/nist-controls (canopy security
nist-controls) admits admin, or studio_admin and auditor through canopy-cli
(SECURITY_GET_SECURITY_NIST_CONTROLS, crates/canopy-auth/src/delegated.rs).
NIST SP 800-53 Architecture Mapping is the
control-by-control mapping — ten families, AC through RA, against the Moderate baseline, each
row naming the file or symbol that carries it — and the only page that maintains it.
ATO Readiness & Compliance Matrix maps Publication 1075, HIPAA and
IEVS to their artefacts and carries the gap analysis. An assessor’s document request starts
at the Auditor Handbook's artefact map; the policy-trace evidence
pack is regenerated per ADR-011 Policy-Trace ATO Evidence.
Know the AU-9 row before an audit: the chain-v2 verifier is landed dormant
(chain_v2_verify_enabled defaults to false, services/canopy-security/src/config.rs),
so chain status reports unknown with a 503 — fail closed — until a deployment enables it.
Audit Log Review
Role: admin, studio_admin or auditor — get_audit_log, get_audit_log_export and
get_audit_citation_pdf in services/canopy-web/src/api/audit_log.rs and the modules under
api/audit_log/ refuse every other role.
Audit log (sidebar, /audit-log) is the jurisdiction-wide event stream from
canopy-security, shown within your program scope (ADR-044). The header carries the
hash-chain verdict pill (ADR-014) and
Export CSV, which downloads the current view. The Filter form takes Service (an
allow-list of source services), From and To (whole days, UTC, half-open), Show (50,
100 or 200; default 100) and Apply; the count reads "N events shown". Selecting an
event opens its previous_hash and event_hash, Open in case view for a
household-scoped event, and Cite for hearing — a signed PDF citation of that one event
(/audit-log/citation/{event_id}/pdf, ADR-029).
Outside the portal, from canopy-cli signed in as you (Signing canopy-cli In):
canopy security events [--source <svc>] [--limit <n>] # GET /v1/security/events
canopy security chain-status --family audit # non-zero on unknown / stale / breached
The bulk pull for a review period is GET /v1/export/audit-events (an admin or
quality_control delegation, never a system caller — Data Export API); the route
contract is the canopy-security API; reading a chain
verdict is Auditor Handbook › Hash-chain audit. The
FTI access logs on canopy-tanf and canopy-medicaid are a separate fti_auditor-only
surface (Your Role and Permissions).
Breach Alert Management
Role: admin for all three /v1/security/alerts routes; the list also admits
studio_admin and auditor through canopy-cli (SECURITY_GET_SECURITY_ALERTS,
crates/canopy-auth/src/delegated.rs), and the single-alert read and the status change
admit admin and system callers alone (SERVICE_OR_ADMIN,
services/canopy-security/src/api/mod.rs). The worker portal has no alerts page; this is
API and CLI work.
canopy-security’s detection loop (services/canopy-security/src/detection.rs) evaluates
detection_rules against the audit stream every breach_detection_interval_secs
(default 60, config/canopy-security/default.yaml) and writes a breach_alerts row when
a threshold is crossed. Six rules ship as rows — failed authentication, bulk export, privilege
escalation, after-hours FTI access (outside [security.detection].business_hours_start_hour
/_end_hour in the jurisdiction’s legal timezone, the pack’s jurisdiction.toml), FTI
access volume and reporting extract volume — with thresholds, windows and severities in
services/canopy-security/migrations/20260326000002_seed_detection_rules.sql and the two
later detection_rule* migrations.
-
List and read:
canopy security alerts [--limit <n>](--format jsonfor every field), then the alert’sevidenceanduser_id(GET /v1/security/alerts/{id}). -
Classify P0–P3 and start the clocks per Incident Response — FTI or PHI at risk means its 24-hour TIGTA / IRS chain or its HIPAA 60-day chain; contain per its steps before restarting anything.
-
Record the disposition:
PATCH /v1/security/alerts/{id}withstatus— one ofopen,in_progress,resolved,false_positive(breach_alerts_status_check,services/canopy-security/migrations/20260402000000_add_constraints.sql) — and an optionalresolved_by. The CLI lists alerts; the single-alert read and the status change take a bearer fromcanopy token canopy-security.
The notification windows and contacts live once, on
Incident Response;
Security Operations points there.
A vulnerability report from outside arrives through SECURITY.adoc in the repository root
(acknowledged within 48 hours, a detailed response within 5 business days).
System Monitoring
Role: the deployment operator; the probes are unauthenticated.
-
Probes: every canopy-api service mounts
GET /livez(200 while the process is alive) andGET /readyz(200 when the database and broker checks pass, 503 with the check breakdown otherwise; a stale configuration layer also fails it, and the other arms report and never gate) —crates/canopy-api/src/lib.rs.GET /versionanswers the build and the configuration layers and commits the replica booted on. Point a load balancer’s readiness at/readyzand liveness at/livez; the portal’s probes and the compose probe cadence are Deployment Guide › Health and readiness. -
Metrics are pushed over OTLP/HTTP when
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT(orOTEL_EXPORTER_OTLP_ENDPOINT) is set, everyOTEL_METRIC_EXPORT_INTERVALms (default 60 s); traces go over OTLP/gRPC whenOTEL_EXPORTER_OTLP_TRACES_ENDPOINTis set (crates/canopy-common/src/telemetry.rs); no canopy-api service serves a/metricsscrape route. Gauges to alert on, and the JSON log contract, are Deployment Guide › Observability.
On the devstack, cargo xtask dev status prints compose state, the URL table and the
staleness report, and cargo xtask dev logs <compose-service> [--tail <n>] [--no-follow]
follows one service. The observability compose profile runs prometheus (OTLP receiver
enabled) and grafana on the host ports fixed in docker-compose.yml; it is a compose
profile, not a cargo xtask dev start --profile value, and cargo xtask validate layers it
on (Local Development › Profiles and databases). A service refuses a
bearer with 401 token_missing or token_rejected, and answers 503 keys_unavailable
when no canopy-identity key set answered in time
(crates/canopy-auth/src/identity_receiver/layer.rs). Backups and rotation are
Database Backup & Restore,
Secret Management & Rotation and Signing Key Rotation.
Troubleshooting
| Problem | What to Do |
|---|---|
Studio or Audit log is missing from my sidebar |
Both links render for the |
"Security administration needs the security administrator role" |
Your session holds no |
Determinations return 422 |
The program service has no parameter set in force at the determination date; the response |
For anything else, see Troubleshooting and the casework guides.