Incident Response

For the operator on call when something is wrong with a canopy deployment: this is the one incident page. Security Operations points here for the procedure and the breach-notification chain; every regulatory figure below names its source and the date it was checked.

Symptom and classification

Assign a severity first; it sets the clock for everything below.

Severity Definition Response target Examples

P0 — Critical

Active data breach, system compromise, outage affecting all users

15 min acknowledge, 4 h contain

FTI exposure, authentication bypass, complete service failure, ransomware

P1 — High

Degradation affecting multiple users; a vulnerability actively exploited

1 h acknowledge, 24 h resolve

Database connection exhaustion, partial service failure, privilege-escalation attempt

P2 — Medium

Non-critical finding, single-user impact

24 h acknowledge, 7 business days resolve

High-severity dependency CVE, individual auth failure, non-critical data exposure

P3 — Low

Informational finding, best-practice deviation

Next sprint

Medium/low CVE, configuration improvement, documentation gap

Then decide which clocks run: is restricted federal data (FTI, IEVS, PHI) at risk; is the system available to caseworkers; how many households are affected.

Detect

  • canopy-security’s detection rules raise breach alerts (GET /v1/security/alerts); audit events are queryable at GET /v1/security/events — for service callers and admins an empty programs filter is unscoped, so history from before #1519 stays reachable for response work (canopy-security API Reference).

  • Health: every canopy-api service answers GET /livez (process alive, always 200) and GET /readyz (200 only when the database and RabbitMQ checks pass; 503 with the check breakdown otherwise, error text only in development) — crates/canopy-api/src/lib.rs. canopy-web mounts the same /readyz handler over its session pool (its rabbitmq arm reads n/a; a non-gating redis arm reports the rate limiter’s backend) and a static /livez (services/canopy-web/src/main.rs); canopy-portal serves /healthz (liveness) and /readyz (503 until the applicant routes are mounted and its canopy-identity system token for canopy-applications can be minted) — services/canopy-portal/src/main.rs. No canopy-api service serves /healthz or a /metrics scrape endpoint.

  • Metrics are OTLP push: each service exports to OTEL_EXPORTER_OTLP_METRICS_ENDPOINT (or the global OTEL_EXPORTER_OTLP_ENDPOINT) every OTEL_METRIC_EXPORT_INTERVAL ms (default 60 s); traces go to OTEL_EXPORTER_OTLP_TRACES_ENDPOINT when set (crates/canopy-common/src/telemetry.rs). The devstack pushes to Prometheus under the observability compose profile (prometheus, grafana in docker-compose.yml, layered by cargo xtask validate's devstack-observability stage or by hand with docker compose --profile observability up -d). Their URLs are the profile’s fixed host bindings — 9090:9090 → http://localhost:9090 (Prometheus) and 3000:3000 → http://localhost:3000 (Grafana) — not cargo xtask dev status output: its print_url_table (xtask/src/docker.rs) prints only the worker portal’s origin (the ingress) and the canopy-* services, and neither container is in the PORT_MAPPINGS table that listing and the .ports.env CANOPY_PORT_* keys are rendered from.

  • Caseworker or applicant reports; a red readiness probe in the deployment’s orchestrator.

Contain

  1. Isolate the affected service — scale it to zero or block inbound traffic. Do not power off or reboot a host under forensic interest; preserve volatile memory.

  2. Disable the compromised credential:

    • a service’s canopy-identity client: disable it at canopy-web’s /admin/security/clients, which holds on every canopy-security replica within 5 s, then replace its key (Security Operations › canopy-identity client keys);

    • a worker: suspend their canopy subject and revoke their sessions at canopy-web’s /admin/security (a delegation token already minted stays acceptable for at most 300 s plus leeway), and disable the account at the upstream IdP;

    • a service’s RabbitMQ user (canopy-<service>);

    • canopy-identity’s issuer itself, its database login or a replica’s keys: Security Operations › canopy-identity key registry (Compromise response).

      Rotate keys per Signing Key Rotation (determination keys) and Security Operations › Key Rotation (portal claim key, canopy-identity keys, KEK).

  3. If canopy-tanf or canopy-medicaid is affected, keep the FTI audit log intact: never truncate or delete fti_audit_log; take a database backup before any remediation (Database Backup & Restore › FTI Data Handling).

  4. Preserve evidence (below) before restarting anything, unless the restart is itself the containment.

FTI breach (IRS Publication 1075, Rev. 11-2021, §1.8)

Checked against Publication 1075 (Rev. 11-2021) §1.8 "Reporting Improper Inspections or Disclosures" on 2026-09-16.

  • Within 24 hours of identifying a possible issue involving FTI (§1.8.2, §1.8.4): contact the local TIGTA Field Division Special Agent-in-Charge; if unreachable, the TIGTA hotline 800-366-4484 (after hours 800-589-3718). For a breach inside an IT environment also contact the TIGTA Electronic Crimes & Intelligence Division, cybercrimes@tigta.treas.gov. Do not wait for an internal investigation to confirm that FTI was involved.

  • Concurrently (§1.8.3): notify the IRS Office of Safeguards by encrypted email to safeguardreports@irs.gov, subject line "data incident report", containing no FTI: agency and point of contact, when the incident occurred and when it was discovered, how it was discovered, the data elements involved, the potential number of FTI records, where it occurred, the IT involved, and whether an agency employee is implicated. Immediate notification outranks completeness; send additions as they become known.

  • Preserve the FTI audit trail: GET /v1/fti-audit-log on canopy-tanf and canopy-medicaid is fti_auditor-only (services/canopy-tanf/src/api/fti_audit_handlers.rs); export it as a user holding fti_auditor, such as with a canopy-cli token (canopy token canopy-tanf), and store the export on encrypted, access-controlled media.

  • §1.8.4 requires a post-incident review of the incident-response procedures once the incident is addressed (last section).

HIPAA breach (45 CFR Part 164, Subpart D)

PHI lives in canopy-medicaid and the services that hold Medicaid/CHIP data. Checked against 45 CFR §§ 164.402–164.408 on 2026-09-16 (text via the Legal Information Institute’s mirror of the CFR).

  • Risk assessment — § 164.402(2)(i)–(iv): the nature and extent of the PHI (identifiers, likelihood of re-identification); the unauthorized person who used or received it; whether it was actually acquired or viewed; the extent to which the risk has been mitigated. A demonstrated low probability of compromise means the disclosure is not a breach; document the assessment either way.

  • Individuals — § 164.404(b): without unreasonable delay and in no case later than 60 calendar days after discovery.

  • Media — § 164.406: more than 500 residents of a State or jurisdiction → prominent media outlets serving it, within the same 60-day limit.

  • HHS — § 164.408: 500 or more individuals → notify the Secretary contemporaneously with the individual notice; fewer than 500 → log the breach and submit it not later than 60 days after the end of the calendar year. Submission is through the HHS OCR breach portal (ocrportal.hhs.gov/ocr/breach).

  • Remediate: patch the vulnerability or access-control gap; rotate compromised credentials; review the Medicaid program and role assignments at the upstream IdP; update canopy-security’s detection rules if the incident exposed a gap.

Other notification chains

Data type Authority Window Contact

IEVS / SNAP data

USDA FNS Regional Office (Southeast)

48 hours

FNS Southeast Regional Office, Atlanta

General PII

State Attorney General

Per state breach-notification law (Georgia: without unreasonable delay)

Georgia AG Consumer Protection Division

Service outage

  1. Status: on the devstack cargo xtask dev status (compose state, the URL table, staleness); on a production host the deployment’s compose status plus each service’s /readyz.

  2. Logs: cargo xtask dev logs canopy-<service> --tail 200 --no-follow (compose service names — canopy-medicaid, not medicaid); in production, the container log of the same service.

  3. Backing services: PostgreSQL psql "$CANOPY_<SVC>__DATABASE_URL" -c 'SELECT 1'; RabbitMQ’s management API GET /api/overview on port 15672; canopy-identity with canopy-manage identity check (IdP Integration › Gating a deploy) or its JWKS at {IDENTITY_INTERNAL_URL}/jwks; the upstream IdP at its issuer’s /.well-known/openid-configuration. No service fetches either at boot: a receiver with no trustworthy key set answers 503 keys_unavailable (Stale JWKS Recovery: receivers refusing canopy-identity tokens).

  4. Restart: on the devstack cargo xtask dev reload (a coordinated bounce with data kept, recreating every service in dependency order — never docker compose restart <service>, see Stale JWKS Recovery: receivers refusing canopy-identity tokens); cargo xtask dev restart wipes the data volumes. In production, redeploy the known-good :<short-sha> images through the prebuilt override (Rolling deploy & rollback › Rollback; Security Operations & Runbooks › Deployment Rollback).

  5. Migrations suspected: the applied versions are in each database’s sqlx_migrations table (SELECT version, description, success FROM _sqlx_migrations ORDER BY version DESC LIMIT 5;); the sources are services/canopy-<service>/migrations/. A service running with CANOPY<SVC>__SKIP_MIGRATIONS=true expects canopy-manage migrate apply --service canopy-<service> to have run (Database Migrations).

  6. Verify recovery: /readyz returns 200 on every affected service; on the devstack cargo xtask test confirms functional correctness.

Evidence preservation (all incident types)

  1. Do not delete logs, restart services (unless required for containment) or modify databases until collection is complete.

  2. Capture: the application logs of every affected service; the audit tables audit_events and audit_events_archive (canopy-security) and fti_audit_log (canopy-tanf, canopy-medicaid); message traces from the canopy.events exchange; canopy-identity’s issuance log (identity_issuance_log) and security-admin actions (identity_admin_actions) in canopy-security; the upstream IdP’s authentication and admin event logs; network flow and firewall logs where available.

  3. Store evidence with cryptographic timestamps and chain-of-custody notes. POST /v1/security/chain/verify and GET /v1/security/chain/status check the audit chains only where the deployment has enabled the verifiers (CANOPY_SECURITY__CHAIN_V2_VERIFY_ENABLED; dormant by default and retirement-bound under ADR-041, #1304) — otherwise integrity review is a manual DBA procedure over the backup.

Communication template

Subject: [INCIDENT] {Type} - {Severity} - {Date}

Summary: {Brief description of the incident}
Discovery time: {ISO 8601 timestamp}
Affected systems: {List of services}
Affected data: {FTI / PHI / PII / None}
Estimated scope: {Number of affected individuals, if known}
Current status: {Investigating / Contained / Resolved}
Incident commander: {Name}
Next update: {ISO 8601 timestamp}

Post-incident review

Blameless, within 5 business days of resolution: reconstruct the timeline from root cause to resolution; identify the technical, process and human factors; quantify affected users, duration and data exposure; open one GitLab issue per remediation task (type::security or type::bug, priority::critical or priority::high, an owner and a due date); and correct this runbook where it fell short. The review itself is recorded on the incident’s GitLab issue — the docs tree has no reviews directory.

NOTE
History — the 2026-09 documentation pass replaced the sixteen /healthz curls with the /livez + /readyz contract, corrected the audit-table names and migration paths, and re-sourced the FTI clock to Publication 1075 §1.8; the former "IRS Form 2350 within 72 hours" step appears nowhere in the publication and was dropped.
Edit this page · default