Course map

Topic 169 / Advanced

Zero trust architecture

Chapter 10.5 · Network and Architecture Security

What and why

Topic 168's segmentation still assumes that inside a given tier, traffic can be trusted because of where it came from. Zero trust removes that assumption entirely: it's a security model — not a product — built on "never trust by network location, always verify." Every request and every service identity is authenticated and authorized on its own merits, and the system is designed as though a breach has already happened somewhere inside it. Builds on: → 168 (network security and firewalls).

Diagram

Dimension Perimeter model Zero trust
Trust basis Network location ("inside the VPC = trusted") Verified identity, every request
Service-to-service calls Often unauthenticated "because it's internal" mTLS or short-lived credentials, every call (→ 176)
Credential lifetime Often long-lived Short-lived, continuously re-verified
Assumption The perimeter holds Breach has already happened somewhere

How it works

  1. Assume breach: design as though an attacker already has a foothold somewhere inside the network, not only outside it.
  2. Authenticate and authorize every request — not only ones crossing the public perimeter, but calls between internal services too.
  3. Give every service its own identity, verified via mTLS or short-lived credentials (→ 176), the same way a user's identity is verified (→ 159).
  4. Prefer short-lived credentials everywhere over long-lived ones, for services as much as for users (→ 162's rotation logic, applied to service identity).
  5. Combine with least privilege (→ 158) and continuous verification, rather than one successful login or one network location granting broad, standing access.

Practical example

(illustrative). Under a perimeter model, service A calls service B inside the same VPC with no authentication — "it's internal, so it's trusted." Under zero trust, that same call presents a short-lived service-identity credential, and service B authorizes it exactly as it would a request arriving from the public internet — the network location changes nothing about the check performed.

When to use it

  • Use when internal compromise is a realistic threat — most production systems, especially ones with multiple services, multiple teams, or multiple tenants.
  • Avoid over-engineering zero trust into a small, two-service project with low stakes — mutual TLS and per-service identity carry real operational cost that should be justified by actual risk.
  • Failure scenarios: a "trusted internal network" assumption that turns one compromised host into full lateral access across every service it can reach; service identities with no expiry, functionally equivalent to a permanent shared password.
  • Simpler alternative: for a small, trusted internal network with few services and low stakes, perimeter security (→ 168) plus basic authentication is a reasonable, explicitly chosen trade-off — not every system needs zero trust, and choosing not to is itself a decision worth recording (→ 21).

Practice

(Decision kind — judge and defend the choice; 15–20 min, no lab services). Take one inter-service call from a project you've designed (e.g. Project 3's auth platform calling a user-profile service). Rewrite its trust assumption from "internal, so trusted" to "verified on every call": name the credential presented, its lifetime, and what the callee checks before responding. Done when the rewritten call has a named, short-lived credential and an explicit authorization check, where the original had neither.

Key takeaway

Zero trust replaces "trusted because it's internal" with "verified because it's checked" — every request, every service identity, continuously. Done when you can: take any internal call in a system and state what, specifically, verifies it, rather than pointing at the network it travels on. Used next in → 176 (service identities implemented concretely with cloud IAM).

References

None — this topic makes no external claims.

Source directory

Search the guide