Auditor Handbook

Purpose

For a federal partner or external auditor arriving with a document request: this page names the artefact that answers it. It does not duplicate the operational documents — it links to them. For the day-to-day operator perspective, start at Security Operations & Runbooks; for framework control mappings, at ATO Readiness or NIST 800-53 Mapping.

One-page artefact map

Auditor request Document Source

NIST SP 800-53 Rev. 5 control mapping

NIST Architecture Mapping

Rev. 5 control catalogue traced to Canopy components, ten families from AC to RA

IRS Publication 1075 compliance matrix (Federal Tax Information)

ATO Readiness §IRS Pub 1075

Per-control mapping for FTI handling in canopy-tanf, canopy-medicaid

HIPAA compliance summary (Protected Health Information)

ATO Readiness §HIPAA

Per-control mapping for PHI handling in canopy-medicaid (incl. CHIP — there is no separate CHIP service; the [workspace] members list in Cargo.toml is the service inventory)

IEVS / SSA SOLQ-BENDEX authorisation

ATO Readiness §IEVS

Authorisation matrix at compliance/data-tenancy-authorisation.toml; CI enforcement in cargo xtask compliance audit-data-tenancy

Data-flow diagrams (PII / FTI / IEVS / signing)

Security Operations §Data Flow Diagrams

4 Mermaid diagrams: PII (SSN), FTI, IEVS, determination signing

Encryption inventory (rest + transit)

Security Operations §Encryption Inventory

Per-data-class table: AES-256-GCM (SSN field-level), TLS 1.3 (transit), ECDSA P-256 (signing — integrity, not confidentiality), SHA-256 (audit hash chain — integrity)

Access control / RBAC model

RBAC Matrix

Real role names from canopy_auth::roles + which roles can call which endpoints

Incident response procedure

Security Operations §Incident Response + Incident Response Runbook

Detect → classify → contain → notify → preserve evidence → recover → review (Security Operations › Incident Response Procedure); the runbook’s sections are Symptom and classification, Detect, Contain, the FTI / HIPAA / other notification chains, Service outage, Evidence preservation, Communication template and Post-incident review — there is no separate eradicate phase

Key rotation runbook (signing + encryption + canopy-identity keys)

Security Operations §Key Rotation + Signing Key Rotation Runbook

ECDSA P-256 determination keys, canopy-identity’s ES256 signing and client keys, AES-256-GCM

Identity and access evidence (sign-ins, tokens, security-admin changes)

Security Operations §canopy-identity key registry

canopy-security’s identity_issuance_log (every token issued or refused, by client and subject) and identity_admin_actions (every security-admin change, by administrator); the upstream identity provider’s own sign-in logs

Breach notification chain (federal + state)

Security Operations §Breach Notification Chain

Per-data-class deadlines: IRS (FTI ≤ 24 h), CMS (HIPAA per HHS rule), state breach notification law

Data retention policy

ATO Readiness §Data Retention Policy

Per-data-class retention: FTI audit logs 7 yr floor (Pub 1075 AU-11); HIPAA audit logs 6 yr (45 CFR §164.530(j)); audit retention is a per-jurisdiction ruleset value bounded below by the federal floor — becoming a general config-driven retention + legal-hold lifecycle under ADR-041 (#1303, superseding the ADR-014 chain-v2 §C7 mechanism)

ADR catalogue (architectural decisions)

Architecture › ADR index

One line per ADR, number → topic; each ADR page carries a Status / Context / Decision / Consequences block

Federal program requirements

Federal Requirements Mapping

SNAP, TANF, Medicaid, CHIP, CAPS, WIC mandatory fields traced to source regulations

Gap analysis (what’s not yet ATO-ready)

ATO Readiness §Gap Analysis

Per-gap severity + remediation plan, each naming its open issue or its deployment owner

What’s in scope for an audit today

  • SNAP only (UAT target: September 2026). TANF, Medicaid, CHIP, CAPS, WIC services are implemented but not part of the September UAT scope. Audit-readiness for those programs follows the same model — ATO mapping under ato-readiness.adoc, Pub 1075 / HIPAA matrices already cover their data classes.

  • Federal data classes: FTI (TANF + Medicaid only, ADR-004), HIPAA PHI (Medicaid only), IEVS (canopy-verification, SNAP’s matches under Social Security Act §1137 — each usable only for the valid administrative needs of the program that received it, 42 USC §1320b-7(a)(5)(A)), SSA SOLQ-BENDEX (canopy-verification, SSA CMA pending).

  • Production deployment posture: not yet — Canopy ships as open-source reference; jurisdictions deploy and obtain their own ATO. Georgia DHS pursues ATO via the path documented in ato-readiness.adoc. A production deployment also waits on the external security review of canopy-identity (#2884) and the issuance log’s retention (#1303) (Deployment Guide › Deployment gates).

Hash-chain audit (FTI + general events)

NOTE
Superseded by ADR-041. The FTI-special hash chain and the chain-v2 machinery below are being retired for a general configurable structured-logging facility with jurisdiction-owned per-field redaction; tamper-evidence and retention of the exported audit copy move to the deployment logging facility. Retirement — including the citation-for-hearing redesign and the endpoints below — is gated behind a proven replacement and tracked as #1304. Read this section as the outgoing design until that cutover lands.

Two append-only hash chains underpin tamper-evidence:

  • audit_events in canopy-security — every event published on the canopy.events exchange persists with previous_hash / event_hash SHA-256 columns.

  • fti_audit_log in canopy-tanf and canopy-medicaid — Pub 1075 §9 reportable. Same hash-chain mechanism, serialised per database on the constant canopy.fti_chain advisory lock (#1245 — the pre-#1245 caller-derived lock could fork the chain). See ADR-014.

Reading chain-verification status (#1205, ADR-014 Amendment 9)

Chain verification is served by the unified /v1/security/chain/* namespace — status, verify, verify-jobs/{id}, attest. Full endpoint reference: canopy-security API. Four facts an auditor needs:

  • Six states, one typed body. GET /v1/security/chain/status?family={audit|fti}[&service=] answers healthy or verifying on HTTP 200 and unknown, stale, error or breached on HTTP 503 — the same body shape either way, so a consumer reading only the status code fails closed. Only healthy means "verified, at head, anchored, fresh". reasons[] enumerates every firing input; on breached it carries the incident id and exact position.

  • Nothing on the 503 side is proven intact. Treat it as not yet verified (unknown), no longer fresh (stale), environmentally broken (error) or integrity-breached (breached — Pub 1075 §9 reportable).

  • A manual pass is evidence, not a reset. POST /v1/security/chain/verify enqueues a durable job (202 + job_id; 409 if one is already active) polled at verify-jobs/{id}; it never moves the status machine. GET /v1/security/chain/attest attests ONE event and is the input behind "Cite for hearing" — no attestation, no citation (502).

  • A breach LATCHES. Once breached, the state persists; a clean scheduled pass never clears it. Resolution is a manual procedure only.

IMPORTANT

The verifiers ship dormant, so unknown is the expected answer today. CANOPY_SECURITY__CHAIN_V2_VERIFY_ENABLED defaults to false (services/canopy-security/src/config.rs), so status answers 503 unknown / verifier_disabled and verify/attest answer 503 verifier_unavailable. An auditor MUST NOT read a dormant unknown as intact. The FTI chains ride the same flow (?family=fti&service=canopy-tanf or canopy-medicaid), and one FTI-only reason survives dormancy: breached with legacy_breach_latched, the #1245 latched-breach posture, still Pub 1075 §9 reportable. The worker portal degrades in step — chain badges read "Unable to verify chain" and "Cite for hearing" refuses to issue.

Dormancy posture, the #1304 cutover and the manual recovery procedure are owned by Security Operations §chain-v2 and the FTI hash chain; the retired step-by-step runbooks are in the archived chain-v2 plans.

CI / build-time enforcement

Auditors should know that several compliance properties are gated at build time, not only at runtime:

Gate Enforces

cargo xtask compliance audit-data-tenancy (CI job compliance-data-tenancy)

FTI / IEVS / SSA SOLQ-BENDEX field names cannot appear in unauthorised services. Authorisation matrix at compliance/data-tenancy-authorisation.toml. Build fails on violation.

cargo xtask policy audit-literals (CI job adr-011-literal-audit)

Hardcoded Decimal::from(<n>) / dec!(<n>) literals outside params.rs and tests must be allowlisted with a written reason at compliance/adr-011-literal-allowlist.toml. Prevents un-cited policy thresholds.

cargo xtask policy audit-jurisdiction-literals (validate jurisdiction-literals gate)

Jurisdiction values cannot leak outside the ruleset mechanism (#1226): the Georgia benefits helpline in any form anywhere in services//crates/ code — test fixtures must use 555 numbers — and quoted "GA" state-code literals in non-test code. Allowlist with written reasons at compliance/jurisdiction-literal-allowlist.toml.

cargo xtask policy audit-completeness-reads (validate completeness-reads gate)

A federal or statutory universe in canopy-reporting must arrive as CompletenessRead (drain-to-Vec) or UniversePager (#1202), each constructed only behind the fail-closed total_in_scope tripwire (#1249, ADR-001 Amendment 1 §B3) — a totalless first page is refused and exhaustion must reconcile pulled == total. The gate pins both constructors' visibility, the universe fetches' return types and the federal extract modules' signatures, and bans hand-rolled page-cursor handling, so a silently truncated federal extract cannot be reintroduced.

cargo xtask policy audit (CI job adr-011-policy-audit)

Every jurisdiction.toml value has a citation in citations.toml tracing to PAMMS or the Federal Register, and every federal data file has one in the federal layer’s citations.toml. Build fails on missing citations or excessive staleness (default 365 days). What the gate family proves, in ATO terms: ADR-011 Policy-Trace ATO Evidence.

cargo xtask docs plan-lint (CI job adr-013-plan-lint)

Every plan Status row uses the canonical vocabulary (Not started / In progress / Done / Deferred / Blocked / N/A). Surfaces drift between Status tables and code state.

Contacts

Edit this page · default