37.1 Core Principles
- Never trust, always verify — no implicit trust based on network location (internal vs. external).
- Least privilege access — every identity (human or service) gets only the permissions required for its task.
- Assume breach — design as if an attacker is already inside the perimeter; segment blast radius.
- Verify explicitly — authenticate and authorize every request using all available signals (identity, device, location, data sensitivity).
- Micro-segmentation — network broken into small zones with independent access controls, not one flat trusted network.
37.2 Zero Trust Layered Implementation
┌─────────────────────────────────────────────────┐
│ Network Security │
│ VPC, Private Subnets, NACLs, Security Groups │
│ PrivateLink for AI services (no public internet) │
├─────────────────────────────────────────────────┤
│ Identity & Access Management │
│ IAM roles, RBAC, least privilege │
│ Service accounts per workload (no shared creds) │
├─────────────────────────────────────────────────┤
│ Data Security │
│ Encryption at rest (KMS), in transit (TLS) │
│ Column-level encryption for sensitive fields │
│ Data masking for non-production environments │
├─────────────────────────────────────────────────┤
│ Application-Level Verification │
│ mTLS between every service-to-service call │
│ Prompt injection defense, output filtering (AI) │
├─────────────────────────────────────────────────┤
│ Audit & Monitoring │
│ CloudTrail, audit logs, SIEM integration │
│ Anomaly detection on access patterns │
└─────────────────────────────────────────────────┘
Every service authenticates to every other service — there is no “inside the VPC, therefore trusted” shortcut, even for internal traffic.
37.3 Q&A
Q: How does zero trust change API security design for internal microservices? Every internal call carries a short-lived signed token (mTLS certificate or JWT), validated on every hop, not just at the edge gateway. A compromised pod cannot silently call arbitrary internal services — its service identity is scoped to specific downstream APIs via policy (e.g., SPIFFE/SPIRE identities, Istio AuthorizationPolicy).
Q: What’s the difference between perimeter security and zero trust? Perimeter security trusts anything inside the firewall/VPC by default and focuses defenses at the boundary. Zero trust assumes the perimeter will eventually be breached and enforces identity-based verification at every layer, so a single compromised credential or pod cannot move laterally unchecked.