NIST SP 800-53 Architecture Mapping

Overview

For an ATO assessor or security auditor tracing a control to its implementation: each row below names the control, the current control statement and the file or symbol an assessor can open. It supplements the summary in ATO Readiness & Compliance Matrix; the roles are catalogued in RBAC Matrix and the per-route guards in Authorization Inventory.

Controls are assessed against the Moderate baseline, which is appropriate for systems processing PII and benefit eligibility data.

AC — Access Control

Control Requirement Canopy Implementation Status

AC-2

Account Management

The deployment’s upstream identity provider manages every human account and its role and program assignments (Kanidm by default, ADR-050; the devstack’s cast is devstack/kanidm/migrations/00-canopy.hjson). canopy-identity links each upstream identity to one canopy subject, and a security administrator creates, suspends, re-links or ends a subject’s sessions at canopy-web’s /admin/security, each change recorded in identity_admin_actions (IdP Integration; Security Operations › canopy-identity key registry). The roles are three inventories — the roles a human can hold, the confidential clients a system caller is, and the worker portal’s WorkerRole set — listed in RBAC Matrix › Three role inventories. A session keeps only the roles in ROLE_VOCABULARY (crates/canopy-auth/src/roles.rs): caseworker, eligibility_specialist, supervisor, quality_control, admin (the ladder), auditor and studio_admin (CITATION_RENDER_ROLES; the worker portal’s audit-log and Studio gates), analyst (WorkerRole::Analyst), security_admin (canopy-identity’s security administration), and the two separation-of-duties roles admin does not imply, fti_auditor and data_steward. A system caller is identified by its confidential client id, never by a role.

✓ Implemented

AC-3

Access Enforcement

IdentityReceiver (crates/canopy-auth/src/identity_receiver/layer.rs) authenticates every /v1 request’s canopy-identity token: ES256, at+jwt, the issuer and this service’s audience exactly, a bounded lifetime and a compiled edge from the presenting client. A missing token is 401 token_missing and a refused one 401 token_rejected, before any handler runs. Each handler then admits its caller with principal.admit(&ADMISSION)?, the route’s named Admission (crates/canopy-auth/src/identity_receiver/admission.rs; the delegated routes' constants in crates/canopy-auth/src/delegated.rs): system callers, the portal with a scope, users holding a role, or users holding a role through named clients. Every refusal is a 403 carrying its ReceiverDenial code (denial.rs); the per-route census is Authorization Inventory.

✓ Implemented

AC-4

Information Flow Enforcement

Program service isolation (ADR-001): each benefit program has its own database and service, with no cross-program data access at the database level. The event publisher rejects payloads carrying a restricted field name (RESTRICTED_FIELDS, crates/canopy-mq/src/publisher.rs) so PII/FTI does not cross the bus.

✓ Implemented

AC-6

Least Privilege

The worker ladder in crates/canopy-auth/src/roles.rs is CASEWORKER_OR_ABOVE_ROLES for reads and CASEWORKER_WRITER_ROLES for writes, with narrower supervisor and admin bars above it; there is no program-specific role. The program services' POST /v1/determine admits a user holding CASEWORKER_WRITER_ROLES, as canopy-eligibility’s onward delegation carries, beside a system arm (canopy-wic’s admits users only). quality_control is in the read set and not the write set, and the worker portal repeats the split (WorkerRole::can_write); its only write grants are the Medicaid ELE operations' admin/quality_control admission (ELE_OPERATOR). Separation of duties is carried by fti_auditor (FTI access-log reads, fti_audit_handlers.rs) and data_steward (ADR-036 redactions), both admitting users only, with no system arm; security_admin alone reaches canopy-identity’s administration, with a sign-in at most 600 s old. A system caller mints only for its compiled edges (crates/canopy-auth/src/identity_policy/call_graph.rs), and database credentials are per service (ADR-001). Roles: RBAC Matrix; per route: Authorization Inventory.

✓ Implemented

AC-7

Unsuccessful Logon Attempts

Workers authenticate at the upstream identity provider, so its account lockout policy is this control. canopy-identity bounds its own surfaces: a per-IP limit on its token, revocation and code-entry routes (CANOPY_SECURITY__IDENTITY_TOKEN_RATE_LIMIT_RPM), a per-client budget of token requests, and a per-worker budget of device-approval attempts (10 at once, one more a minute).

Deployment responsibility (upstream IdP)

AC-8

System Use Notification

canopy-web’s sign-in page, GET /login, shows the jurisdiction’s system-use notice before the worker continues to the upstream: [sign_in] system_use_notice in jurisdiction.toml, required and non-empty (crates/canopy-composition/src/sign_in.rs). The shipped default pack carries the DoD Notice and Consent Banner, and georgia the same text for a State of Georgia system.

✓ Implemented

AC-17

Remote Access

All access is remote (web-based). TLS required on all endpoints (rustls). No direct database access from outside the service mesh.

✓ Implemented

AU — Audit and Accountability

Control Requirement Canopy Implementation Status

AU-2

Event Logging

canopy-security subscribes to all events via RabbitMQ wildcard (#) routing key. Every API operation publishes an event through canopy-mq. Event types cover: authentication, authorization decisions, data access, data modification, eligibility determinations, benefit issuance.

✓ Implemented

AU-3

Content of Audit Records

EventEnvelope (crates/canopy-mq/src/envelope.rs) carries id, timestamp (UTC), source_service, event_type (dotted path), schema_version, payload (JSON), optional trace_context (OpenTelemetry) and the optional programs scope assertion (ADR-044). The acting principal comes from the validated canopy-identity token: a user’s canopy subject, or a system caller’s client id (Security › Attribution).

✓ Implemented

AU-4

Audit Log Storage Capacity

PostgreSQL-backed audit storage with configurable archive management. POST /v1/security/archive enqueues a durable, chunked archive run moving old events to the audit_events_archive table (#1208); the live→archive age threshold is the archive_after_days parameter. Retention itself is archive ∪ live (the archive retains indefinitely; policy lifecycle is #1303).

✓ Implemented

AU-6

Audit Log Review, Analysis, and Reporting

GET /v1/security/events API with pagination, filtering by event type, date range, and source. Export capability for external SIEM integration.

✓ Implemented

AU-9

Protection of Audit Information

SHA-256 hash chain links each audit event to its predecessor; the chain is append-only (no UPDATE or DELETE on audit tables). Verification is the chain-v2 checkpointed verifier under the unified /v1/security/chain/* namespace (ADR-014 Amendment 9): continuous tail and scrub verification, durable manual verify jobs, per-event attestation and a latched-breach incident model, for both the audit family and the FTI family (family=fti&service=…).

◐ Landed dormant: chain_v2_verify_enabled defaults to false (services/canopy-security/src/config.rs), so status reports unknown → 503 (fail closed) unless a deployment enables it; ADR-041 retires the substrate behind #1304 instead

AU-11

Audit Record Retention

Audit records are retained across audit_events ∪ audit_events_archive — the #1208 archive mover only moves aged rows between the two tables and the archive retains indefinitely, so AU-11 retention is the union, never shortened by archiving. Data-type floors: FTI 7 years (IRS Pub 1075 AU-11; ADR-004 Amendment 2), HIPAA 6 years (45 CFR §164.530(j)), general 3 years (state records retention schedule). See Data Retention Policy.

✓ Implemented

IA — Identification and Authentication

Control Requirement Canopy Implementation Status

IA-2

Identification and Authentication (Organizational Users)

Workers sign in at the upstream identity provider through canopy-web’s relying party (authorization code, PKCE S256, nonce, auth_time). canopy-identity verifies the upstream’s id_token again under the deployment’s profile, links it to the worker’s canopy subject and opens a session; each service call carries a canopy-identity token minted from that session and validated on every request (IdP Integration).

✓ Implemented

IA-2(1)

Multi-Factor Authentication

Multi-factor authentication is the upstream identity provider’s control; canopy reads no acr or amr claim (IdP Integration › What an upstream must deliver). The devstack’s Kanidm signs every cast person in with a password and TOTP. Recommended for every user with access to FTI or PHI. canopy-identity’s security administration and device approval require a sign-in at most 600 s old.

Deployment responsibility (upstream IdP)

IA-5

Authenticator Management

Worker passwords and second factors are the upstream identity provider’s. canopy-identity’s own authenticators: each confidential client signs ES256 private_key_jwt assertions with a key held only in the secret provider and registered in canopy-security’s client registry, one or two keys a client for rotation (Security Operations › canopy-identity client keys); each canopy-security replica signs tokens with in-memory ES256 keys that rotate every 6 h. Receivers refresh the published keys every 300 s and on an unknown kid at most once per 30 s, and fail closed once their set is 720 s stale (crates/canopy-auth/src/key_cache.rs).

✓ Implemented (canopy-identity) · Deployment responsibility (upstream IdP)

IA-8

Identification and Authentication (Non-Organizational Users)

Applicants have no IdP account. canopy-portal authenticates them with the application reference code (HH-[a-f0-9]{8}) plus passcode, verified by canopy-applications at POST /v1/applicants/verify-credential (VERIFY_CREDENTIAL, crates/canopy-contracts-applications/src/paths.rs), and mints an opaque Redis session (services/canopy-portal/src/lookup.rs, session.rs SessionStore); the login and apply proxies are rate-limited (ratelimit::rate_limit_mw). Downstream, the portal presents its own canopy-identity system token, scoped portal:* for each target, plus the signed X-Canopy-Applicant ownership claim (canopy_auth::APPLICANT_HEADER), which the receivers verify and principal.require_owned_application / require_owned_household / require_owned_person bind fail-closed (ADR-008 / ADR-026).

✓ Implemented

SC — System and Communications Protection

Control Requirement Canopy Implementation Status

SC-8

Transmission Confidentiality and Integrity

rustls for all HTTP endpoints (OpenSSL banned via cargo-deny). PostgreSQL sslmode=verify-full or verify-ca for all database connections outside development, so each is encrypted and its server's certificate checked. RabbitMQ supports amqps:// for encrypted message transport.

✓ Implemented

SC-12

Cryptographic Key Establishment and Management

ECDSA P-256 signing keys per program service (ADR-002). VerifyingKeyRegistry (crates/canopy-signing/src/verifier.rs) loads the current verifying key per program from CANOPY_VERIFY_KEY_<PROGRAM> (from_secrets, through the audit-logged secret provider; the _PREV slot is gone since ADR-036, #687), registered under the kid derived from the key, and, when no in-memory key holds the JWS’s exact kid, verify_with_history lazy-loads a since-retired, program-bound kid from canopy-security’s signing_key_history through the installed KeyHistoryProvider. It answers a typed SignatureCheck; canopy-eligibility quarantines every envelope that is not Verified (ADR-002 Amendment 5). Keys loaded from PEM environment variables. Generation via canopy-manage gen-signing-keys.

✓ Implemented

SC-13

Cryptographic Protection

AES-256-GCM for field-level PII encryption (SSN). ECDSA P-256 JWS for determination signing. SHA-256 for audit hash chain. ES256 for canopy-identity tokens and client assertions; the upstream’s id_tokens under the profile’s algorithm allow-list. All via pure-Rust crates (no OpenSSL).

✓ Implemented

SC-28

Protection of Information at Rest

SSN encrypted with AES-256-GCM at the application layer. Encryption key: CANOPY_ENCRYPTION_KEY (base64, 32 bytes). Additional protection via PostgreSQL TDE recommended for production.

Partial — SSN encrypted; TDE for full coverage

SI — System and Information Integrity

Control Requirement Canopy Implementation Status

SI-2

Flaw Remediation

cargo-deny runs in CI: checks advisories (RustSec), banned crates (OpenSSL), and license compliance. Remediation SLAs by severity: SECURITY.adoc in the repository root, § Vulnerability remediation SLAs. See Security Operations.

✓ Implemented

SI-3

Malicious Code Protection

GitLab SAST (semgrep) and secret detection in CI pipeline. Container scanning on Docker images. unsafe_code = "deny" in the workspace lint table ([workspace.lints.rust], Cargo.toml) applies to every crate; no canopy crate uses unsafe.

✓ Implemented

SI-4

System Monitoring

canopy-security background breach detection: watches for privilege escalation patterns, abnormal access volumes, and FTI access anomalies. Publishes breach_alert events. The shared chassis mounts /livez (process alive) and /readyz (database SELECT 1 plus the MQ and outbox health extensions) on every canopy-api service (crates/canopy-api/src/lib.rs); the applicant portal answers /healthz and /readyz (services/canopy-portal/src/main.rs).

✓ Implemented

SI-10

Information Input Validation

Queries are parameterized against SQL injection: sqlx builds them at runtime (sqlx::query, query_as, query_scalar — canopy uses no compile-time query! macros, so SQL is not checked against the schema at build time) and request values are passed as bind parameters through .bind(). Where SQL text is composed with format!, the interpolated parts are SQL fragments — shared column lists and predicates such as DETERMINATION_READ_SELECT (services/canopy-snap/src/store/mod.rs) — and request values still bind. The one exception is SET LOCAL statement_timeout / lock_timeout, which PostgreSQL does not let take a bind parameter: those statements interpolate a boot-validated configuration integer, never request data (crates/canopy-db/src/chain_verify.rs, services/canopy-security/src/chain_staging/router.rs, services/canopy-security/src/archive/mover.rs, services/canopy-security/src/store/mod.rs). Axum extractors validate request bodies. The canopy-mq publisher rejects any payload carrying a name in RESTRICTED_FIELDS (crates/canopy-mq/src/publisher.rs). canopy-store validates upload size and file type, sanitizes filenames against path traversal.

✓ Implemented

CM — Configuration Management

Control Requirement Canopy Implementation Status

CM-2

Baseline Configuration

Docker multi-stage builds with Alpine base. Non-root container user. Read-only root filesystem. Configuration is layered: a config/<service>/default.yaml baseline ships in the image and CANOPY_<SERVICE>__* environment variables override it (canopy_common::settings, ADR-012; Configuration Reference).

✓ Implemented

CM-6

Configuration Settings

All settings load at startup through the shared layered loader in canopy_common::settings — load_service_config for every bootstrap service and load_single for the applicant portal — with secret fields re-read through the audited provider in canopy_api::bootstrap_with. No runtime configuration changes. Variables are documented in Configuration Reference.

✓ Implemented

CM-7

Least Functionality

Minimal Alpine containers. Only required ports exposed. No shell in production images. cargo-deny bans unnecessary dependencies.

✓ Implemented

MP — Media Protection

Control Requirement Canopy Implementation Status

MP-4

Media Storage

S3-compatible object storage (Garage in dev, AWS S3/MinIO in production) with versioning for notice PDFs. Access via canopy-store with authentication.

✓ Implemented

MP-5

Media Transport

All object storage access via HTTPS. Internal presigned URLs for PDF delivery. No direct S3 endpoint exposure to users.

✓ Implemented

PE — Physical and Environmental Protection

Physical and environmental controls are the responsibility of the hosting provider (cloud or on-premises). Canopy’s architectural contribution is stateless services that can run in any compliant facility.

PL — Planning

Control Requirement Canopy Implementation Status

PL-8

Security and Privacy Architectures

The Architecture Decision Record series (ADR-001 … ADR-050, indexed in Architecture) documents security-relevant design decisions. ADR-001 (isolation), ADR-002 (signing), ADR-004 (data tenancy), ADR-049 (the identity plane) are the primary security architecture documents.

✓ Documented

RA — Risk Assessment

Control Requirement Canopy Implementation Status

RA-5

Vulnerability Monitoring and Scanning

cargo-deny (advisories + bans) in CI. GitLab SAST + secret detection + container scanning. Dependency updates tracked via cargo-audit suppression for known transitive issues (documented in deny.toml).

✓ Implemented

Edit this page · default