Track 15 · Security
15.8 Multi-Tenant Security
24 topics in 5 parts. Use it as a checklist before an interview, or as a map of what to learn next.
- CCritical
- HHigh
- MMedium
- NNew 2026
01Multi-Tenant Isolation Models5 topics
- Shared everything / schema-per-tenant / DB-per-tenant / silo / tiered hybridC
- A tenant_id column is a data model, not an isolation modelC
- The twelve surfaces isolation must cover — DB, blob, vector, cache, queues, logs, memory, backupsC
- Per-tenant encryption keys and cryptographic erasureH
- Noisy neighbours: per-tenant quotas as an isolation controlH
02Tenant Context — Derive, Never Trust5 topics
- Tenant comes from the validated credential — never the path, body, header or modelC
- Addressing vs authority: compare the path's tenant to the token's, reject on mismatchC
- Re-verify membership and tenant status against your store — the token is a snapshotH
- Users in several tenants: tenant-scoped tokens vs multi-tenant token + selectionH
- Return 404 not 403 for another tenant's object, and know the costH
03Data-Layer Isolation & Postgres RLS6 topics
- ENABLE vs FORCE ROW LEVEL SECURITY — owners bypass plain ENABLEC
- USING filters reads; WITH CHECK stops writes into another tenantC
- The connection-pool trap: SET LOCAL inside a transaction, not SETC
- Fail-closed when the session variable is unsetH
- What RLS does NOT protect against (superuser, compromised app, business rules)C
- The same principle for blob prefixes, vector namespaces, cache keys and queuesC
04The Four Attack Shapes5 topics
- IDOR and BOLA — OWASP API #1; UUIDs are not the fixC
- Tenant breakout: six paths beyond the obvious missing WHERE clauseC
- Confused deputy in all three of its appearancesC
- The two-tenant negative test suite, generated from the routerH
- Testing the non-database stores, where the surviving bugs liveH
05Drills & Architecture Exercise 9.73 topics
- Why can't tenant_id be trusted from the request?C
- 400 tenants, app-layer filtering, an enterprise prospect demanding "true isolation"C
- Is a globally-unique user_id a safe cache key in a multi-tenant system?H
Practise it
Knowing it is half.
Saying it is the rest.
Run a realistic voice interview with an AI panel in the Interview Room, then read a scored report on every answer.