Back to all insights
Security & Compliance 7 min read

Zero Trust Architecture for HIPAA-Compliant Cloud Infrastructure

How to apply Zero Trust in AWS or GCP for HIPAA workloads: least-privilege IAM, VPC micro-segmentation, continuous logging, and what hospital auditors check.

What Is Zero Trust Architecture?

Zero Trust is a security model built on one principle: never trust, always verify. In a traditional perimeter model, everything inside the network is trusted. In Zero Trust, every request — regardless of source — must be authenticated, authorized, and continuously validated.

For healthcare software, Zero Trust is not optional. It's the architecture that lets you pass hospital security audits, satisfy SOC 2 Type II auditors, and meet HIPAA's minimum necessary access requirements.

The Four Pillars in a Healthcare Context

1. Identity Verification Every user, service, and API client authenticates before accessing any resource:

  • MFA enforced for all human access (no exceptions, including engineers)
  • Service-to-service authentication via short-lived IAM roles, not long-lived API keys
  • JWT tokens with short expiry windows (15–60 minutes) for application sessions

2. Least-Privilege IAM

# Terraform: IAM role scoped to exactly what a Lambda bot needs
resource "aws_iam_role_policy" "billing_bot_policy" {
  name = "billing-bot-policy"
  role = aws_iam_role.billing_bot.id

  policy = jsonencode({
    Version = "2012-10-17"
    Statement = [
      {
        Effect   = "Allow"
        Action   = ["s3:GetObject", "s3:PutObject"]
        Resource = "${aws_s3_bucket.billing_results.arn}/*"
      },
      {
        Effect   = "Allow"
        Action   = ["secretsmanager:GetSecretValue"]
        Resource = aws_secretsmanager_secret.payer_creds.arn
      }
    ]
  })
}

A billing bot cannot read patient tables. A care coordinator account cannot write to billing tables. These are enforced at the IAM layer, not just in application code.

3. VPC Micro-Segmentation Each service tier has its own security group. The web tier can reach the app tier. The app tier can reach the database. The database cannot initiate outbound connections. Billing automation compute can reach only the clearinghouse, API and payer endpoints it is approved to use, on port 443.

No 0.0.0.0/0 ingress rules except port 443 on the public-facing load balancer.

4. Continuous Audit Logging CloudTrail for all AWS API calls. Database query logging for PHI table access. Anomaly detection alerts for logins from new geographies or unusual query volumes. Session timeout of 15–30 minutes for PHI-facing applications.

See the HIPAA audit logging requirements guide for implementation specifics and log-retention guidance.

How This Satisfies Hospital Security Audits

Hospital IT security teams auditing vendors want evidence that:

  1. You know who can access what data (RBAC + IAM documentation)
  2. PHI cannot leak outside your defined perimeter (VPC configuration)
  3. All access is logged and retained (CloudTrail + immutable log storage)
  4. You can detect and respond to unauthorized access (monitoring + incident response plan)

Zero Trust architecture answers all four questions structurally. See the HIPAA BAA guide for the contractual layer that pairs with this technical architecture.

The HIPAA & SOC 2 Architecture for Healthcare SaaS service implements Zero Trust network design from the ground up — built to pass hospital vendor audits on the first attempt.

Related Service

HIPAA & SOC 2 Architecture for Healthcare SaaS

Deep-dive into our engineering approach, capabilities, and technical specifications.

View Engineering Specs →
SA

Written by Sheharyar Amin

Founder & Lead Engineer, Opexia