Multi-Tenant AI Agent Platform: Four Leaks and How to Test
I gave every tenant its own database, and one tenant's data still leaked.
Video #247 ยท Enterprise architecture and AI agents
Steps in the video
Files
- compare.py (26 lines)
- tenants.py (91 lines)
Tested with
Python 3.12.15
What this does not show
Three made-up tenants and four mistakes I chose, in SQLite; no agent or model is run, the session is assumed trusted, the index is a plain query, and the script prints leaks but does not fail a build.
Sources
Learning IT by Example.