Course contentsShow
← Security
Lesson 2629 of 3,05250. Secure Architecture and DesignFree lesson

Complete Mediation

Learn why every access to every resource must be checked against access control rules without exception or caching assumptions.

Complete Mediation

What you'll learn: Why security checks must happen on every access to every resource—no shortcuts, no assumptions, no cached approvals.

The Core Principle

Complete Mediation is the security design principle that demands every single access attempt to every protected resource must be validated against the current access control rules. No exceptions. No "I checked them five minutes ago, so they're still good." No "they accessed File A, so they can definitely access File B."

Think of it like airport security: even if TSA screened you an hour ago at Gate 12, you still get screened again when boarding at Gate 34. Your previous clearance doesn't carry forward—each checkpoint independently verifies your authorization.

Why This Matters

Many security failures happen when systems make dangerous assumptions:

  • Cached permissions: "This user was authorized at login, so skip the check now"
  • Time-based trust: "They accessed this resource 2 seconds ago, no need to re-verify"
  • Transitive assumptions: "They can read folder X, so surely they can read all files inside"

Attackers exploit these gaps. A user's permissions might be revoked mid-session. A token could be compromised. Context changes—what was safe at 9 AM might not be at 9:05 AM.

In Practice

Complete Mediation means:

  • Check permissions on every API call, not just the first
  • Validate authorization for each database query, even within the same transaction
  • Re-verify access to every file or object, even if accessed moments ago
  • No "fast paths" that bypass security checks for performance

Yes, this has performance costs. That's why you build efficient authorization systems—but you never skip the check.

Key Takeaway: Complete Mediation requires validating every access attempt against current access control policies without exception, preventing attackers from exploiting cached trust or assumed permissions.