Menu

Per-tenant storage for multi-tenant AI agents: a subdirectory is not a security boundary
📰

Per-tenant storage for multi-tenant AI agents: a subdirectory is not a security boundary

DEV Community: aws·Hunter Leath·12 days ago
#dXjEn80C
#devtoaws#devto#dev#tenant#disk
Long article (1050 words) — no AI summary yet.
Reading 0:00
15s threshold

If you run a multi-tenant agent product, every customer's agent eventually needs somewhere to keep files: uploaded documents, a cloned repo, intermediate results, a SQLite database it builds up over days. The obvious first design is one shared volume with a directory per tenant. It works in a demo, and it's the wrong isolation boundary once the agent runs code you didn't write.

This post walks through the options I see teams use, what each one actually isolates, and where each one fits.

Why a subdirectory per tenant isn't isolation

Say every tenant's sandbox mounts the same volume, and tenant A's agent is supposed to stay in /data/tenant-a . Two things undo that:

The credential covers the whole volume. Whatever lets the sandbox mount /data/tenant-a (an NFS export, a mount token, an IAM grant) usually lets it mount /data . If the agent can read its own environment or a config file, it can mount everything.

POSIX permissions aren't a boundary against untrusted code.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.