Tenant Isolation. The shared data layer is the crown jewel — a missing RLS policy or an un-namespaced cache key is all it takes for cross-tenant data leakage.
Multi-tenant SaaS with CDN/WAF, API gateway, shared database (Row-Level Security), object storage, cache, and separate control plane.
The shared database, object storage, and cache hold data for every tenant. A single missing RLS policy, un-namespaced cache key, or predictable storage path exposes one tenant's data to all others. Row-Level Security must be enforced at the database connection level — never bypassed by the ORM or a superuser role.
CDN and WAF absorb attacks, rate-limit per-tenant, and route authenticated traffic.
Auth, app services, and workers. All cross-tenant authz checks live here.
Shared DB (RLS), object storage, cache. Tenant isolation must be enforced at every access.
Admin console and billing. Platform-admin access must be JIT and fully audited.