- Category: D. Site Factory System Design
- English term: Zero Trust Access / Identity-Aware Proxy & JWT Verification
- Related: Principle of Least Privilege (PoLP) · Secrets Management · Edge Computing and Serverless · Receipt and Definition of Done · Architecture Characteristics (-ilities)
General Meaning
Traditional network security relied on perimeter defense, trusting any traffic operating within an internal corporate local network or VPN tunnel. However, once an attacker penetrated the boundary or acquired stolen credentials, the entire internal infrastructure was exposed to lateral traversal.
Zero Trust architecture operates on the principle of 'Never Trust, Always Verify'. Regardless of whether a request originates internally or externally, every access request must be authenticated, authorized, and cryptographically verified at each hop using identity-aware proxies and signed tokens before access is granted.
Why It Matters
- Preventing lateral movement across internal systems: Even if a network perimeter is compromised, each individual service performs independent authentication to block privilege escalation.
- Eliminating shared credentials and static password leakage: Enforcing one-time passwords and multi-factor authentication (MFA) ensures verifiable user identities without long-lived static secrets.
- Enforcing defense-in-depth across edge proxies and origins: If a reverse proxy misconfiguration occurs, the upstream application origin independently validates cryptographic headers to reject forged traffic.
How the Site Factory Uses It
In the Site Factory, zero trust access controls protect the private administrative dashboard (honbu.memocho.dev), inter-machine SSH communication, and secret token access across the entire infrastructure.
The security model is implemented across multiple layers: Cloudflare Zero Trust (Access) intercepts web ingress at the edge, requiring one-time PIN authentication sent to the verified operator email; at the Cloudflare Worker origin, dashboard/src/index.js fetches Cloudflare Access public keys (JWKS) to independently verify the RS256 signature, issuer (iss), and expiration (exp) in the Cf-Access-Jwt-Assertion header via Web Crypto, with who() denying non-operator tokens with HTTP 403 Forbidden; inter-machine SSH connections use authorized_keys with strict command="..." directives restricting execution exclusively to pre-approved inspection scripts; and sensitive credentials in macOS Keychain are queried on demand via security find-generic-password without ever exposing raw keys to AI agents or version control.
Caveats & Operational Rules
- Do not rely solely on outer edge proxy verification: Upstream application origins (e.g. Workers) must independently validate JWT cryptographic signatures and timestamps to guard against perimeter bypasses or configuration drift.
- Never expose unrestricted shell access across internal networks: Even within a trusted home LAN, inter-node SSH connections must enforce least privilege using strict command restrictions rather than open interactive shells.
Related Terms
- Principle of Least Privilege (PoLP)
- Secrets Management
- Edge Computing and Serverless
- Receipt and Definition of Done
- Architecture Characteristics (-ilities)
References
- Book: Mark Richards & Neal Ford, *Fundamentals of Software Architecture*, Chapter 18 (Security)
Verified: 2026-11-08