Menu

The Agent Containment Stack: Sandbox, Egress, Identity
📰

The Agent Containment Stack: Sandbox, Egress, Identity

DEV Community: kubernetes·Mike Moore·6 days ago
#JJwunyxs
#devtokubernetes#devto#dev#agent#sandbox
Long article (1448 words) — no AI summary yet.
Reading 0:00
15s threshold

Originally published at webofmike.com on 2026-11-18.

You contain an AI agent with three layers that each assume the other two already failed: a sandbox for compute and filesystem, default-deny egress through a proxy that logs, and a short-lived identity scoped to the task. Then you record every tool call somewhere the agent cannot write. A sandbox alone is not containment, it is the inner cage.

If the last two posts were the problem, this is the fixture.

Why isn't a sandbox enough to contain an agent?

The sandbox bounds compute and filesystem. Fresh per run, nothing shared, no write path to its own config or pipeline. I wrote about why the sandbox is the fixture, not the record : it contains the run, it shouldn't be where you keep the evidence.

What breaks it: shared sandboxes, mounted credentials, and anything persistent between tenants. Shared sandboxes leak leftover files across runs.…

Continue reading — create a free account

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