Chapter 44 · Reviewing Security Architecture
Subchapter 44.1
references/architectural-anti-patterns.mdMarkdown1 KBView on GitHub
Common security architecture anti-patterns and their fixes.
Services communicating over an internal network without authentication. An attacker who gains access to the internal network can impersonate any service.
Fix: Service-to-service authentication (mTLS, service tokens, managed identities).
All authentication going through a single service with no fallback or circuit breaking. If that service goes down, either everything is blocked (denial of service) or auth is bypassed (security failure).
Fix: Redundancy for critical security services, fail-closed behavior.
Features that are insecure by default and require developers to remember to enable security.
Fix: Secure by default. Security should be the default behavior that must be explicitly opted out of with justification.
A single authorization check at the API gateway with no enforcement in downstream services.
Fix: Authorization at every layer. The gateway check is a first line of defense, not the only one.