Zero Trust Architecture
Perimeter security made a simple promise: everything inside the building's network is trustworthy, and everything arriving from outside is not. That bargain broke when workloads moved to cloud providers, employees started working from home, and partners needed API access instead of a VPN profile. Zero trust replaces location-based trust with a rule you can state in one sentence: every request is authenticated, authorized, encrypted, and logged, no matter where it comes from. The rule is easy to say and expensive to enforce, because it forces you to know your assets, name every identity, and make access decisions at machine speed. What follows is the reasoning, the moving parts, and a rollout sequence that does not bring the business to a halt.
Why flat networks turn one phish into a breach
In a flat network, reachability is used as a proxy for trust. A laptop that authenticated once at the start of the month can talk to every server, every printer and every database, because a firewall already decided that the office is safe. Attackers know this, which is why the post-compromise phases of almost every intrusion â credential theft, discovery, lateral movement â are boring by design. The intruder rarely needs a second exploit; they need a valid session and an open port.
Cloud workloads made the problem worse rather than better. A virtual private cloud has no meaningful perimeter, subnets are created by whoever deploys a stack, and a single over-permissive role can reach resources across regions. When audit time arrives nobody can say which of four hundred services talks to which. Zero trust starts by admitting that reachability is not identity, then rebuilding the decision around signals that actually describe the request.
The three tenets and what each one costs
Zero trust is usually stated as three principles. Each maps to concrete controls, and each carries a cost you should budget for before promising anything to leadership.
| Tenet | What it means operationally | Typical controls | The cost you pay |
|---|---|---|---|
| Verify explicitly | Decide from fresh signals on every request, never from network location | Phishing-resistant MFA, device posture checks, continuous session evaluation | Latency plus integration work for each application |
| Least privilege access | Grant the smallest scope for the shortest time that finishes the task | Just-in-time elevation, scoped tokens, short-lived credentials | Approval workflows that slow emergency work if designed badly |
| Assume breach | Design so one compromised credential cannot reach everything | Microsegmentation, egress filtering, encryption, immutable logs | Log storage and engineering time for segmentation |
Reading the last column is the important part. Organizations adopt zero trust as a procurement exercise and then discover that verification without segmentation only moves the fence, while segmentation without verification rebuilds the flat network with more expensive parts.
How a policy engine actually decides
A policy engine is a scoring function with an audit trail. It ingests signals about the identity, the device, the network context and the target resource, combines them under a rule set, and returns one of three outcomes: allow, deny, or step-up â meaning require a stronger factor or block the sensitive part of the action. The design choices that matter are which signals you trust, how you weight them, and what happens when a signal is missing. A default of "cannot verify, therefore allow" is how zero trust programs quietly become perimeter security again.
SENSITIVE = {"payroll", "customer-pii", "production-db"}
def evaluate(req):
"""Return (decision, score, reasons) for one access request."""
score, reasons = 0, []
if req.mfa == "webauthn":
score += 40
reasons.append("phishing-resistant authentication")
elif req.mfa == "otp":
score += 25
reasons.append("second factor present")
else:
reasons.append("single factor only")
if req.device_managed and req.device_encrypted:
score += 25
reasons.append("compliant device")
elif req.device_managed:
score += 10
reasons.append("managed but unencrypted device")
if req.zone == "corporate":
score += 15
reasons.append("corporate network")
elif req.zone == "internet":
score -= 10
reasons.append("untrusted network")
threshold = 70
if req.resource in SENSITIVE:
threshold = 85
reasons.append("sensitive resource raises threshold")
if not 7 <= req.hour <= 19:
threshold += 5
reasons.append("outside working hours")
if score >= threshold:
return ("allow", score, reasons)
if score >= threshold - 20 and req.mfa != "none":
return ("step_up", score, reasons)
return ("deny", score, reasons)
Notice that the threshold is a property of the resource, not only of the user. Reading a wiki page at midnight and exporting the payroll table at midnight are different decisions, and a single global threshold cannot express that. Equally important is the step-up branch: it converts most denials into a recoverable prompt, which is what stops users from routing around the control.
Microsegmentation contains the blast radius
Segmentation answers the question an attacker asks after the phishing mail lands: what else can I reach? In zero trust the unit of segmentation is the workload or application, not the subnet, and the rules describe permitted flows instead of relying on the absence of blocked ones. Start from default deny between tiers, allow only the flows each service genuinely needs, and log the denied attempts â rejected connections are your highest-fidelity detection source because nobody legitimate generates them.
apiVersion: projectcalico.org/v3
kind: GlobalNetworkPolicy
metadata:
name: backend-tier-guard
spec:
selector: env == "prod"
types: [Ingress, Egress]
ingress:
- action: Allow
source:
selector: tier == "frontend"
destination:
selector: tier == "backend"
ports:
- protocol: TCP
port: 8080
egress:
- action: Allow
destination:
selector: tier == "database"
ports:
- protocol: TCP
port: 5432
- action: Allow
destination:
nets: [10.20.0.0/16]
- action: Deny
log: true
Run the same exercise for outbound traffic. Most ransomware and data-theft tooling needs the internet to operate, so an egress rule that allows a payments service to reach only its payment gateway and the package mirror removes an entire class of exfiltration without touching a single inbound rule.
Identity, device posture and context are one signal set
The identity provider becomes the control plane, which means its weaknesses are now your weaknesses. Passwords alone cannot carry that weight: require phishing-resistant factors for privileged work, consolidate duplicate directories, and give every workload its own short-lived identity rather than a shared API key. Device posture supplies the second axis â is the disk encrypted, is the agent reporting, is the operating system inside the patch window â and it should expire, not persist from a check made at login.
Context closes the loop: time of day, source geography, impossible travel, and whether the session has behaved normally since it started. No single axis is sufficient. An employee on a managed laptop with a hardware key is still risky if the session token was stolen ten minutes ago, which is why continuous evaluation and rapid revocation matter more than the initial login ceremony.
A rollout order that survives contact with the business
Zero trust fails when it is attempted as a big bang. Sequence it so each phase delivers visible value and leaves the next phase something to build on.
| Phase | Scope | Proof that it worked |
|---|---|---|
| 1. Inventory | Applications, data classes, service accounts | Every production service has a named owner and a classification |
| 2. Strong identity | MFA everywhere, SSO consolidation, passwordless for admins | No privileged account can sign in with a password alone |
| 3. Application access | Per-application gateways replace broad VPN access | A standard user reaches only the apps their role requires |
| 4. Workload identity | Machine-to-machine tokens with automatic rotation | No long-lived static key remains in a repository or pipeline |
| 5. Microsegmentation | Default-deny between tiers, controlled egress | Denied-flow alerts are reviewed every week |
| 6. Continuous evaluation | Session revocation when posture changes | Access ends within a minute of a device becoming non-compliant |
Each phase has a check you can demonstrate to an auditor, which is what keeps funding alive between quarters. Skipping phase one is the most common shortcut, and it always resurfaces later as "we could not enforce policy on the asset we did not know about".
Where zero trust projects stall
Three failure patterns account for most stalled programs. The first is unknown assets: shadow deployments created by well-meaning teams never enter the policy set, so they either break when enforcement begins or sit outside it forever. The second is legacy systems that cannot speak modern identity protocols â mainframes, industrial controllers, and old database drivers â which need a proxy or a gateway rather than a rewrite. The third is inspection capacity: encrypting and evaluating every session costs throughput, and if the gateway becomes the slowest hop in the request path, engineers will find a bypass.
Culture is the fourth obstacle, rarely listed and frequently decisive. Policy that arrives as a decree from security gets quietly defeated by teams under delivery pressure. Involve the platform owners in writing the rules, publish the denied-flow data they can act on, and treat every bypass request as design feedback rather than insubordination.
â ī¸Missing signals must fail closed
Common Mistakes
Buying a zero trust product and calling the program complete
Fix: Treat products as enforcement points; the program is the inventory, the policy set and the review cadence that keep them honest.
Applying one global access threshold to every resource
Fix: Set thresholds per data classification so reading a wiki and exporting payroll are evaluated differently.
Verifying identity once at login and trusting the session for days
Fix: Re-evaluate posture and risk continuously, and revoke within minutes when a signal turns hostile.
Segmenting the network while leaving service accounts shared
Fix: Give every workload a unique, short-lived identity, because segmentation cannot distinguish two callers using the same key.
Rolling out enforcement to all systems in a single maintenance window
Fix: Run each phase in observe mode first, fix the breakage it exposes, then enforce and monitor the denied flows.
Best Practices
- Start with an asset and identity inventory, since policy over unknowns is decoration
- Pilot enforcement on a single application tier and publish the denied-flow report before widening scope
- Pair every allow rule with a log statement so policy decisions are auditable after the fact
- Budget for legacy gateways and proxies rather than assuming every system can speak modern identity
- Review service-account privileges on the same cadence as human accounts, because they are the quiet path
Key Takeaways
- Zero trust replaces network location with per-request decisions built from identity, device and context signals
- Verification without segmentation moves the fence; segmentation without verification rebuilds the flat network
- Policy engines need per-resource thresholds and a step-up path, and they must fail closed when a signal is missing
- Microsegmentation works when it defaults to deny, allows only needed flows and logs every rejection
- Roll out in inventory, identity, access, workload identity, segmentation and continuous evaluation, proving value at each phase