Part 10 of 12 · 1 min read
Quick notes
- Isolation means one tenant can never read, slow or learn about another, and agents raise the risk since a model picks the tool calls.
- Identity comes from the session, never from the model. A
tenant_idargument can be steered by injection; the session's tenant cannot. - Enforce the filter in a scoped repository and row-level security; a convention everyone must remember gets forgotten somewhere.
- Filter before search, not after; key caches by tenant; give each tenant its own quota so a noisy neighbor can't starve another.
- Credentials, logs and backups hold tenant data too. Keep a registry of every store, so offboarding actually reaches all of them.