Topic

Docker Containers

All digests tagged Docker Containers

Sandboxes Aren't Optional: 4 Ways to Isolate Coding Agents — Robert Brennan, OpenHands thumbnail

· 14:23

Sandboxes Aren't Optional: 4 Ways to Isolate Coding Agents — Robert Brennan, OpenHands

The talk emphasizes that as AI coding agents evolve from simple chat snippets to autonomous, cloud-based systems, robust sandboxing is mandatory to enforce the Principle of Least Privilege. Running agents locally with skipped permissions exposes the entire local file system and secrets. The speaker compares four strategies—Docker, GitHub Actions, dedicated VMs, and Kubernetes—concluding that Kubernetes offers the most robust, scalable, and isolated solution by providing an ephemeral, dedicated pod for every agent session.

Key takeaways

  1. The Danger of Local Agents 5:32

    Running coding agents locally with `--dangerously-skip-permissions` grants the agent access to the entire local file system, environment variables, and connected production resources, creating a massive security risk.

  2. Principle of Least Privilege (PoLP) 7:32

    Agents must only have access to the specific resources (e.g., a single GitHub repo and necessary secrets) required to perform their assigned task, limiting the 'blast radius' of potential failures or attacks.

  3. Kubernetes for Maximum Isolation and Scale

    Using Kubernetes pods per session provides the highest level of isolation and infinite scale, as each agent runs in a fresh, ephemeral environment that is destroyed after use, eliminating long-term state risks.

Watch on YouTube Full article