# Security, HIPAA Compliance & SOC 2 Roadmap | Valstorm > Compliance engineered in code, not just paperwork. Valstorm enforces organization-wide HIPAA technical safeguards (hipaa_mode), database-per-tenant isolation, 6-year hash-chained WORM PHI audit trails, Azure Key Vault CMK encryption, and user-scoped AI agents, while transparently progressing toward independent SOC 2 Type II attestation. ## HIPAA Technical Safeguards (hipaa_mode) - **Database-Per-Tenant Isolation:** Dedicated PostgreSQL 16 database, isolated storage prefix, and per-tenant encryption context per organization. - **Fail-Closed BAA AI Routing:** Blocks consumer AI Studio endpoints, preview models, global unpinned endpoints, and non-BAA inference providers in code. Routes exclusively to BAA-covered regional GA endpoints (Google Cloud Vertex AI / GEAP us-central1 and Microsoft Azure AI Foundry). - **Mandatory MFA & Idle Auto-Logoff:** Automatic MFA enforcement, shortened JWT lifetimes, and configurable 15-minute idle session auto-logoff with immediate revocation. - **6-Year Hash-Chained WORM Audit Trails:** Append-only SHA-256 hash-chained logging of PHI reads, queries (hashed SQL digests), writes, deletes, file downloads, and auth events, with 6-year (2,192-day) WORM NDJSON archival. - **Zero-PHI Push & Email Failover:** Strips patient identifiers from Firebase FCM / Apple APNs push payloads into opaque wake-up alerts, and routes HIPAA transactional emails through Azure Communication Services (ACS) Email or Workspace/M365 instead of SendGrid. - **Azure Key Vault CMK Envelope Encryption:** Per-tenant Data Encryption Keys (DEKs) wrapped with Azure Key Vault Customer-Managed Keys and lossless versioned key rotation. ## Deployment Options 1. **Managed HIPAA Cloud (Azure + GCP GEAP):** Hosted by Valstorm on BAA-covered Microsoft Azure infrastructure (Container Apps, PostgreSQL Flexible Server, Azure Key Vault CMK, Azure ACS Email) paired with regional Google Enterprise Agent Platform (GEAP) for Gemini and Azure AI Foundry for OpenAI model access under an executed Valstorm HIPAA BAA. 2. **Self-Hosted / BYOC:** Run Open Valstorm inside your own Azure, GCP, or AWS account so PHI never leaves your cloud boundary. ## SOC 2 Type II Roadmap (In Progress) - Valstorm is actively working toward independent AICPA SOC 2 Type II attestation. - Controls are version-controlled as compliance-as-code mapped to AICPA Trust Services Criteria (CC6, CC7, CC8, A1, C1, P1), CSA CAIQ-Lite v4, and HIPAA 45 CFR Part 164. - Enterprise security teams can request our security pack, subprocessor ledger, and CAIQ-Lite v4 responses under NDA. ## Glossary Included - Includes plain-English definitions for PHI, BAA, hipaa_mode, Database-Per-Tenant Isolation, RBAC/OLS/FLS, MFA & Idle Auto-Logoff, WORM Storage, SHA-256 Hash-Chaining, CMK & Per-Tenant DEKs, TLS 1.3, Zero-PHI Opaque Wake-Up Push, GEAP & GA vs. Preview Models, ZDR, BYOC, SOC 2 Type I vs. Type II, Compliance-as-Code & CSA CAIQ-Lite v4, TCPA & A2P 10DLC, and VFS & NDJSON. URL: https://www.valstorm.com/security