Lesson 14 of 14 · Assurance and response
Capstone: zero-trust design review
Put the whole track together: review a realistic multi-tenant platform design layer by layer, find the implicit trust, write a prioritised zero-trust plan with metrics, and defend the trade-offs.
The scenario
You are asked to review the security design of a multi-tenant SaaS platform before a major customer and a compliance audit. Today:
- Two regions, Kubernetes clusters per region, ~120 services, ~3,000 tenants (pooled), 5 large tenants
asking for dedicated environments and their own encryption keys.
- Engineers log in to the cloud console with SSO; kubectl uses long-lived kubeconfig files
shared per team; 14 people have cluster-admin.
- Services call each other over plain HTTP inside the VPC; no NetworkPolicies.
- Several services read cloud access keys from Kubernetes Secrets.
- The gateway validates JWT signatures; services trust an X-Tenant-Id header from the gateway.
- CI runners are long-lived VMs with a deploy key that can kubectl apply to production.
- Images come from a public registry and an internal one; nothing is signed.
- Logs are kept 7 days per cluster; no runtime detection.
You are the new caretaker walking round the school with a clipboard. You don't fix everything today. You write down every unlocked door, decide which ones matter most, and make a plan the head teacher can approve, with a way to show each week how many doors are now locked.
Your task
Produce a short design review (about two pages) with four parts.
1. Findings by layer. For each layer (humans, workloads, service to service, edge and users, data, delivery, detect and respond) list the implicit trust you found and why it matters.
2. Target state. One paragraph per layer describing the zero-trust design, using the patterns from this track.
3. A prioritised plan in three phases, each with exit metrics.
4. Trade-offs and risks: what you chose not to do yet, and why.
Try it yourself before opening the reference.
Reference answer (one good version, not the only one)
Findings (highest risk first)
- Delivery: long-lived CI VMs with a production deploy key = the crown jewel. Compromise of one runner gives write access to every tenant.
- Humans: shared, long-lived kubeconfigs and 14 cluster-admins: no individual accountability, no expiry, large blast radius.
- Workloads: static cloud keys in Secrets: copyable, long-lived, unrotated.
- Service to service: plain HTTP, flat network: any compromised pod can reach and impersonate anything.
- Edge and users: signature-only JWT checks (no audience/tenant checks found); services trust a tenant header, so anyone reaching a service directly can choose a tenant.
- Data: pooled tenants with application-only filtering; large tenants want dedicated environments and their own keys.
- Supply chain: unsigned images, public registry pulls at runtime.
- Detection: 7-day per-cluster logs, no runtime detection: incidents may go unseen and evidence is lost.
Target state (summary)
- Humans: OIDC login for kubectl, groups from the IdP, standard roles, production read-only, JIT elevation, two audited break-glass accounts, quarterly reviews.
- Delivery: ephemeral runners, OIDC federation to the cloud, production changes only through the GitOps controller, signed images with provenance verified at admission, internal registry only.
- Workloads: one ServiceAccount per service, workload identity to the cloud, no static keys.
- Service to service: default-deny NetworkPolicies generated per namespace; mesh with strict mTLS and identity-based AuthorizationPolicies.
- Edge and users: full token validation (pinned algorithms, iss, aud, exp, tenant) at the gateway and in services; tenant context from the verified token only; external identity headers stripped.
- Data: PostgreSQL row-level security for pooled tenants; dedicated cells for the five large tenants with per-tenant keys (customer-managed where requested); cross-tenant tests in CI and production canaries.
- Detect and respond: central audit and application logs with one-year retention, runtime detection, a quarantine runbook practised quarterly.
Plan
- Phase 1 (0-3 months), identity foundations and crown jewels. Replace CI deploy keys with OIDC and GitOps; OIDC kubectl login and JIT; cluster-admins reduced to break-glass; workload identity for the services holding static keys; central audit logs. Exit: 0 long-lived deploy credentials; ≤ 2 standing cluster-admins (break-glass); 0 static cloud keys in Secrets; 100% human access via SSO + MFA.
- Phase 2 (3-6 months), remove network trust and fix tenant context. Default-deny policies everywhere; mesh in permissive then strict mode, most sensitive services first; full token validation; tenant from token; RLS on pooled databases; image signing enforced. Exit: 100% namespaces default-deny; ≥ 80% service traffic strict mTLS with explicit policy; 0 services trusting tenant headers; 100% production images signed and verified.
- Phase 3 (6-12 months), dedicated tenants and continuous assurance. Dedicated cells and per-tenant keys for large tenants; runtime detection; evidence pipeline for audits; regular threat-model refresh. Exit: large tenants migrated; cross-tenant tests on every endpoint; audit evidence generated automatically.
Trade-offs
- Mesh rollout is staged rather than mesh-wide on day one, to limit operational risk; NetworkPolicies give quick protection meanwhile.
- Pooled tenants stay pooled (cost); isolation relies on token-derived context plus RLS and testing.
- Customer-managed keys only for tenants who need them, because of the KMS cost and support burden.
How to present it
- Lead with the top three risks in business terms ("one compromised CI machine can change every customer's environment").
- Show the plan as phases with exit metrics, not as a tool list.
- Name what you are deliberately leaving for later and why.
- Offer a monthly dashboard: SSO coverage, standing admins, static keys, default-deny coverage, strict-mTLS traffic share, signed-image share.
Recap
- Review layer by layer and name the implicit trust in each.
- Fix the crown jewels and identity foundations first, then remove network trust, then deepen data isolation and assurance.
- Phases with measurable exit criteria turn zero trust from a slogan into a plan leadership can fund and track.
This site is a public version of my personal engineering knowledge hub. It intentionally excludes confidential company information and internal operational details.