Three layers, all config: how DigitalOcean Managed Agents enforce NVIDIA OpenShell-aligned boundaries
DigitalOcean Managed Agents confine an AI agent with three configuration-defined layers, illustrated by an agent that migrated huffl.ai's production backend (31 tables, ~145K rows, 31K embeddings) from Supabase to DigitalOcean. Credentials are brokered by Action Gateway as managed OAuth connections and injected at call time, so tokens never enter the model, prompt, transcript or sandbox. A manifest selecting the NVIDIA OpenShell default policy profile makes the Firecracker microVM's filesystem read-only except /workspace and /tmp. Network egress is deny-by-default with an allow_hosts list enforced by a proxy, so these limits are enforced by the runtime rather than relying on the agent's behaviour.
Related posts
- Build an On-Call Team of AI Agents on DigitalOcean MicroVMs
DigitalOcean mediumAdept
An incident-response team of six AI agents (commander, three read-only investigators, remediator, verifier) runs on DigitalOcean MicroVMs, each subagent isolated in its own Firecracker VM cloned from a checkpoint template so it starts in seconds. Built with LangChain Deep Agents and the langchain-digitalocean-microvm package, investigators get file-only backends with no shell and no outside credentials. All external actions go through Action Gateway with an allow/ask/deny policy, so a destructive Droplet restore triggers a LangGraph interrupt for human approval. While a person decides, every MicroVM pauses and bills only for disk. Scoped access tokens, egress controls and a separate verifier agent mirror the separation of duties in a human on-call rotation.
- Prove your AI agent guardrails work
Docker mediumAdeptCoding agents with broad access can leak credentials or delete files, as two reported July 2026 incidents show: Grok Build CLI silently uploaded whole repositories, including ignored files and planted secrets, to cloud storage, and a Full Access agent deleted a user's home directory after alternatives to blocked rm succeeded. The fix is least privilege enforced on the whole agent application, not on the model's instructions. Docker Sandboxes run agents in microVMs behind a host proxy, and Docker AI Governance adds org-wide network policy (including HTTP method/path rules), filesystem mount policy with deny-wins semantics, proxy-injected credentials kept outside the VM, and MCP gateway access rules. A bank-log demo walks through configuring and testing the network and filesystem controls with sbx.
- Why AI Agents Need Isolation
Docker easyNoviceAI coding agents that run commands, install packages and handle credentials should execute behind an isolation boundary rather than directly on the developer's host. Docker Sandboxes (sbx) runs agents in microVMs instead of plain containers, because containers share the host kernel. Docker built its own VMM rather than using Firecracker so the same model works on macOS and Windows as well as Linux. Credentials stay on the host: the agent sees a sentinel placeholder, and a proxy swaps in the real auth header on outbound requests. Sandbox Kits package tools, network rules, credentials, files, startup commands and agent memory (e.g. AGENTS.md) into reusable specs, either as stackable Mixin Kits that extend an existing agent or as Agent Kits that define a full agent environment from scratch.
- How to Secure AI Agents: A Practical Overview for Development Teams
Docker easyNoviceAI agents need a different security model than traditional services because they select tools, chain actions and act on credentials autonomously, widening the blast radius of prompt injection or tool poisoning. Defense rests on four layers: execution isolation in disposable microVMs or hardened containers with allow-listed networking, runtime-scoped tool access through a central gateway and curated registries, dedicated short-lived agent credentials injected at runtime, and full decision-chain logging with behavioral baselines to catch drift. Permission prompts are a UX pattern, not a control. Start with isolation as the highest-impact, lowest-friction step, and treat inter-agent communication as untrusted so delegation cannot escalate privileges.
- Building AI Teams: How Docker Sandboxes and Docker Agent Transform Development
Docker mediumAdeptDocker Agent defines teams of specialized AI agents in YAML, where a root "product manager" agent delegates to designer, engineer, QA and fixer sub-agents, each with its own model, instructions and toolsets (filesystem, shell, think, todo, memory, MCP). Docker Sandboxes runs these agents inside dedicated microVMs (Docker Desktop 4.60+), mounting the project at the same absolute path, withholding host environment variables, and enforcing network allow/deny lists so agents can install packages and run commands without touching the host. A step-by-step walkthrough builds a Gradio bank app with a four-agent team. Limitations: everything is experimental, microVM sandboxes require macOS or Windows, and only one sandbox is allowed per workspace.