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.…