1. The Problem Nobody Wants to Own: Autonomous Agents With Root Access
Picture a developer working on a production service. They ask an
autonomous coding agent to investigate a failing test, update
dependencies, run the application, and fix whatever is broken.
The agent starts executing commands.
curl -fsSL https://example.com/install.sh | bash docker build -t my-service . docker run --privileged ... kubectl apply -f deployment.yaml Nothing particularly unusual here. These are commands developers run
every day. The difference is that the person executing them is no longer necessarily a person.
An autonomous coding agent can decide to install packages, execute
generated scripts, start containers, modify configuration files,
interact with external APIs, and invoke other tools without waiting for
approval at every step. Give it enough permissions and it can do
considerable damage before anyone notices.
For years, our security model has largely assumed that developers are
the trusted operators and that the tools they execute inherit some
degree of that trust.
Agentic workflows challenge that assumption. Running an agent inside a regular container does not automatically solve the problem. Containers share the host kernel. Docker-in-Docker introduces additional privileges and attack surfaces. Mounting the Docker socket into an agent container can effectively hand it control over the host's Docker daemon.
And passing a developer's credentials into that environment creates
another problem entirely.
Platform engineering teams are now being asked to support autonomous
development workflows without giving autonomous processes unrestricted
access to developer machines, CI runners, Kubernetes nodes, or
production infrastructure.
That was one of the most interesting infrastructure discussions
surrounding KubeCon + CloudNativeCon North America 2026 in Salt Lake
City.
The conversation has moved beyond simply running AI models on
Kubernetes. It is increasingly about where autonomous agents execute,
what they can access, and how their permissions are enforced.
2. KubeCon NA 2026: Infrastructure Is Catching Up With Agents
The introduction of the AI Inference + Agentic track was a fairly
direct signal of where the cloud-native ecosystem is heading.
The November 9--12 conference brought together discussions around
inference infrastructure, GPU scheduling, agentic workflows,
observability, and the operational requirements of production AI
systems.
But one infrastructure concern kept appearing across these discussions:
How do we execute untrusted agent-generated workloads without trusting the agents themselves?
Several developments are worth paying attention to.
Google: Agent Substrate and gVisor Move Toward CNCF Governance
Google announced the donation of Agent Substrate, gVisor, and OpenRL to
the CNCF. The interesting part is not simply another set of open-source donations. It is the architecture behind Agent Substrate.
Traditional Kubernetes workloads generally have a relatively predictable lifecycle. A Pod starts, runs a process, and remains allocated until it terminates or gets rescheduled. Agent workloads behave differently.
An agent might execute a few commands, call an inference endpoint, wait
for a model response, invoke an external tool, and then continue
executing. Keeping compute allocated throughout those idle periods is
expensive.
Agent Substrate addresses this through a separation between stateful
Actors and reusable Workers.
- Actors retain agent session state, filesystem information, memory, identity, and network rules.
- Workers provide the compute environment where those actors execute.
- Snapshotting allows idle agent sessions to release active compute and resume later.
Google reports restoration in under 500 milliseconds, with the
architecture targeting substantially higher sandbox density than
conventional dedicated-container approaches.
The distinction matters. We are not just talking about starting
containers faster. We are talking about separating the lifecycle of an
agent from the lifecycle of the machine executing it.
For isolation, Agent Substrate supports gVisor and Cloud Hypervisor
microVMs. gVisor provides a userspace application-kernel boundary, while microVMs offer hardware-virtualized isolation.
This gives platform teams different isolation and performance choices
without requiring them to build an entirely separate orchestration
system for each.
References: Google Cloud: Open Infrastructure for Autonomous Agents | Google Open Source: Agent Substrate and gVisor
Red Hat and NVIDIA: OpenShell and Default-Deny Execution
Another development worth watching is OpenShell, the open-source sandbox runtime contributed by NVIDIA and integrated into Red Hat's AI
ecosystem.
The architectural direction is straightforward: agents should not
receive unrestricted access to the network, APIs, or infrastructure
simply because they need to perform a task. OpenShell uses kernel-enforced isolation and policy controls to govern autonomous agent execution. The default-deny approach is particularly relevant.
Instead of giving an agent unrestricted outbound access and attempting
to detect suspicious behavior afterward, the runtime starts from a
restricted position. Access must be explicitly permitted.
For example, an agent working on a Python service might need access to:
-
pypi.orgfor package installation. -
api.anthropic.comfor model requests. -
github.comfor repository operations. - An internal staging API for integration testing.
It does not automatically need access to every internal service, cloud
metadata endpoint, or production database. That distinction is important for enterprise deployments.
A network policy that prevents an agent from reaching unauthorized
destinations is much more useful than a security dashboard that reports
the attempted access after the fact.
Reference: Red Hat at KubeCon North America 2026
KubeVirt Graduates: Virtualization Remains Relevant
KubeVirt's CNCF graduation was another significant milestone announced
during the conference.
At first glance, this might appear unrelated to agent sandboxing. I
think it is worth connecting the two developments.
KubeVirt provides a Kubernetes-native way to manage virtual machines
alongside containers. Its graduation recognizes the maturity of that
operating model. As infrastructure teams evaluate stronger isolation boundaries for untrusted workloads, virtualization becomes increasingly relevant.
Containers remain excellent for application packaging and deployment.
But when workloads execute arbitrary code, require different kernel
configurations, or need stronger tenant separation, virtual machines
remain an important option.
The direction is not that every agent needs a dedicated VM. It is that
platform teams now have a broader set of isolation primitives to choose
from.
Reference: CNCF: KubeVirt Graduation
3. Docker Sandboxes (sbx): Giving Agents Their Own Execution Environment
Docker Sandboxes are particularly interesting because they bring this
isolation problem closer to the developer workstation. The core idea is simple:
Let the agent have control inside its execution environment without
giving it equivalent control over the host machine.
Docker Sandboxes run coding agents inside lightweight microVMs. Each
sandbox has its own isolated kernel and private Docker Engine. This changes the security boundary considerably.
An agent can have the privileges it needs inside the sandbox, including
root access, without automatically receiving root access to the
developer's laptop. It can also use Docker commands without relying on the host's Docker socket.
Consider the difference between these two architectures.
Conventional container-based agent setup:
Developer Laptop │ ├── Docker Engine (Host) │ └── Agent Container ├── Root access ├── Docker socket mounted ├── Project credentials └── Network access The agent container is technically isolated, but the Docker socket and
credentials can undermine that isolation.
Docker Sandbox architecture:
Developer Laptop │ ├── Host Operating System │ ├── Docker Sandbox Runtime │ └── Agent MicroVM │ ├── Isolated Kernel │ ├── Private Docker Engine │ ├── Coding Agent │ ├── Project Workspace │ ├── MCP Tool Access │ └── Policy-Controlled Network The agent operates inside its own environment. The host exposes only the resources that have been explicitly shared. This is a more useful starting point for autonomous execution than simply running an agent container with elevated privileges.
Starting an Agent With sbx run
Docker provides a CLI called sbx for creating and managing these
environments.
For example:
# Start Claude Code in an isolated sandbox sbx run claude You can also run other supported agents:
sbx run codex sbx run cursor sbx run copilot sbx run devin sbx run opencode The CLI supports additional built-in agents and custom Sandbox Kits. For a real project, the current working directory can be mounted as the
agent's workspace:
cd ~/projects/payment-service sbx run claude The agent can now inspect and modify the project without receiving
unrestricted access to the rest of the host filesystem.
For work that should not modify the original working tree directly,
clone-mode execution is another option:
sbx run --clone claude The exact workspace behavior and supported options should be checked
against the installed CLI version.
Documentation: Docker Sandboxes
The Private Docker Engine Matters
One detail deserves more attention than it usually gets.
Developers frequently need agents to build and run containers as part of their work. A common workaround has been to expose the host Docker
socket or configure Docker-in-Docker.
Neither approach is particularly attractive from a security perspective. With a private Docker Engine inside the sandbox, the agent can perform operations such as:
docker build -t payment-service . docker run --rm payment-service docker compose up -d Those operations take place within the sandbox's execution boundary
rather than automatically controlling the developer's host Docker
daemon.
This is an important architectural distinction. The objective is not to prevent agents from performing useful engineering work. It is to stop the permissions required for that work from becoming permissions over the machine hosting the agent.
4. sbx move: Taking the Development Environment to Cloud Compute
Local development environments are convenient, but they have limits.
A developer might start an agent on a laptop, realize that the task
requires substantially more compute, and want to continue the work on
cloud infrastructure.
Traditionally, that involves creating another environment, configuring
credentials, transferring project files, reinstalling tools, and
reconstructing the working state.
Docker's sbx move command addresses the filesystem-transfer portion of this workflow.
For example:
# Move a local sandbox to cloud compute sbx move payment-refactor --to cloud To bring a cloud sandbox back to the local environment:
sbx move payment-refactor --to local The command captures the sandbox filesystem, transfers it, and creates a destination sandbox from the resulting snapshot. That is useful, but there is an important distinction between moving a filesystem snapshot and migrating a live virtual machine.
sbx move does not transfer running processes, memory, or open
sockets.
It also does not automatically transfer managed secrets, host-mounted
workspaces, or local network policy configuration. Local and cloud
policy settings must be configured separately. Credentials saved as
ordinary files inside the sandbox can travel with the filesystem
snapshot, so they need to be handled carefully.
This is not transparent live migration.
The practical benefit is that the developer can move the filesystem
state of an existing working environment between local and cloud
execution without rebuilding everything from scratch.
For example, a team could use the following workflow:
Developer Laptop | v sbx run claude | v Agent investigates application | v Agent updates code and runs tests | v Task requires more compute | v sbx move payment-refactor --to cloud | v Cloud Sandbox | v Continue from transferred filesystem state This is particularly useful for long-running refactoring, dependency
upgrades, test execution, and development tasks that need more compute
than a typical workstation can provide.
Documentation: Moving a Docker Sandbox | sbx move CLI reference
5. Network Policies, Credentials, and MCP: The Actual Security Boundary
A microVM is a good isolation primitive. It is not a complete security
policy. An agent can still do considerable damage if it has unrestricted network access, broad credentials, and access to sensitive tools. This is where Docker Sandboxes' policy and credential mechanisms become interesting.
Default-Deny Network Access
The idea is to start with no unnecessary outbound access and explicitly
allow the destinations required by the task.
For example, a coding agent working on a Node.js application might
require:
network: default: deny allow: - registry.npmjs.org - api.anthropic.com - github.com This is a conceptual policy example rather than a copy of Docker's exact configuration schema. The important part is the security model. If an agent attempts to contact an unauthorized endpoint, the network
proxy should block the request.
That helps prevent accidental data exfiltration, unauthorized API
access, and unexpected communication with external services. Docker also supports more granular policy controls, including HTTP method and path restrictions in supported local configurations.
There is an operational cost, though. Someone has to maintain those allow-lists.
Package registries use CDNs. Dependencies introduce new download
endpoints. Build systems reach different registries. Internal services
change. A restrictive policy can break otherwise legitimate development
workflows.
Platform teams need a process for reviewing and updating these rules
rather than treating an allow-list as a configuration file that never
changes.
Credentials Should Not Live Inside the Agent
The next issue is credential exposure.
Consider a developer who gives an agent access to a GitHub token, an
Anthropic API key, and an internal deployment credential.
If the agent can read those credentials directly, a prompt injection or
compromised dependency could potentially cause them to be exposed. Docker Sandboxes provide host-managed credential storage and proxy-mediated credential injection.
The real credential remains outside the sandbox. When the agent makes an authorized outbound request, the host-side proxy can inject the required authentication information.
For example, a credential can be configured using:
sbx secret set anthropic sbx secret set github The exact authentication setup depends on the provider and agent. The architectural objective is to avoid placing long-lived credentials
directly in the agent's environment.
This also makes credential scoping important. An agent working on one
project should not automatically inherit the credentials available to
another project.
Project-Scoped MCP Servers
Model Context Protocol servers introduce another permission boundary.
An MCP server might expose tools for:
- Reading GitHub repositories.
- Querying internal documentation.
- Accessing databases.
- Creating tickets.
- Interacting with cloud infrastructure.
These capabilities are useful, but they also give an agent additional
authority. A project-scoped approach is preferable to exposing every registered MCP server to every agent.
For example:
Payment Service Sandbox │ ├── GitHub MCP ├── Internal Documentation MCP └── Read-only Staging MCP Infrastructure Sandbox │ ├── GitHub MCP ├── Terraform Documentation MCP └── Restricted Cloud Inventory MCP The payment-service agent does not need the infrastructure agent's cloud permissions.
Likewise, the infrastructure agent does not need access to every
application team's secrets. Docker's MCP governance controls and project-level configuration help make these distinctions enforceable.
The larger principle is simple: agent permissions should be scoped to
the task, not inherited from the developer's entire environment.
References: Docker Credential Management | Docker Access Controls
6. Sandbox Kit Specification v3: Packaging Agent Authority as an OCI Artifact
This is probably one of the more interesting developments from Docker's
work on agent infrastructure. We already have a mature packaging model for applications.
A Dockerfile describes the application environment, its dependencies,
startup command, runtime configuration, and filesystem layers. We build an image, push it to a registry, scan it, sign it, and deploy
it.
But an autonomous agent needs more than an executable environment. It needs permissions. It needs to know which credentials it can request, which network destinations it can access, which volumes it can mount, and which tools it can use.
Historically, those requirements have often lived in separate
configuration files, deployment manifests, environment variables, and
runtime-specific settings.
That creates a familiar operational problem: the artifact and its
permissions can drift apart. Docker's Sandbox Kit Specification v3 addresses this by packaging the agent, its tools, and its typed capability declarations into a standard OCI image.
Docker announced the move to bring the specification under CNCF
governance. The important part is that a Kit is not an entirely new image format. It uses OCI image manifests and an annotation to carry its descriptor. The image layers hold the actual content, while the descriptor declares the capabilities the runtime must resolve.
What Does a Kit Contain?
Conceptually, a Kit can be understood as three components:
- Agent and tools: The executable environment, dependencies, and supporting tools.
- Runtime contract: The entrypoint, environment, user, and working directory.
- Typed capabilities: Requests for credentials, network access, volume mounts, and other supported resources.
A simplified conceptual representation might look like this:
schemaVersion: 3 name: payment-service-agent agent: command: claude capabilities: - type: com.docker.sandbox/network@1 config: allow: - api.anthropic.com - github.com - registry.npmjs.org - type: com.docker.sandbox/credential@1 config: service: anthropic phase: runtime - type: com.docker.sandbox/volume@1 config: source: project-workspace target: /workspace access: read-write This is an illustrative example, not a verbatim v3 descriptor. Actual
capability names and configuration schemas must follow the published
specification.
The important architectural point is that the runtime can inspect what
an agent requests before granting those capabilities.
A required capability that cannot be satisfied should fail closed.
Optional capabilities can be skipped and recorded. That is a much better model than silently granting an agent whatever happens to be available on the host.
Why OCI Standardization Matters to Platform Teams
The OCI connection is more important than it might initially appear. Platform engineering teams already have established supply-chain
processes for container images.
They know how to:
- Build images with BuildKit and
docker buildx. - Push artifacts to private registries.
- Sign images and verify signatures.
- Generate SBOMs.
- Publish vulnerability and VEX information.
- Pin image digests.
- Enforce admission policies.
Sandbox Kits can participate in this same workflow.
For example, a team could build a Kit using:
docker buildx build \ -t registry.example.com/agents/payment-service:v1.0 \ --push . Then inspect and sign the resulting artifact using its existing
image-signing workflow. The exact build frontend and Kit configuration must match the v3 specification.
A deployment pipeline could then enforce a digest-pinned reference:
registry.example.com/agents/payment-service@sha256:<digest> This matters because the digest identifies both the packaged environment and the associated capability declarations. Changing the requested network access or credentials changes the artifact being reviewed and distributed.
That gives security and platform teams something concrete to approve. Instead of asking, What permissions does this agent currently have?, they can inspect the exact artifact and its declared requirements.
Connecting Kits With Docker Hardened Images
There is also an interesting connection to Docker Hardened Images.
If an agent environment is built on hardened base images, scanned,
signed, and distributed through a controlled registry, the same software supply-chain practices used for application workloads can be applied to agent environments.
This does not automatically make an agent trustworthy.
A signed image can still contain vulnerable dependencies. A valid SBOM
does not prove that an agent will behave safely. A VEX statement does
not replace runtime enforcement.
But it gives organizations a repeatable way to establish what they are
running and what that workload has requested permission to access. That is a useful foundation for agent governance.
Reference: Docker Sandbox Kit Specification
v3
7. Docker Sandboxes and Kubernetes: Where This Fits Into the Platform
Docker Sandboxes are primarily interesting as a developer-facing
execution boundary. But the underlying problem does not stop at the
developer workstation.
Eventually, organizations will need to run these workloads in shared
infrastructure. Think about a company operating an internal developer platform with hundreds of engineers and multiple application teams.
Developers might launch agents to:
- Investigate CI failures.
- Upgrade dependencies across repositories.
- Generate and execute integration tests.
- Review pull requests.
- Troubleshoot Kubernetes workloads.
- Create infrastructure changes.
- Perform automated remediation.
Running every agent directly on a shared Kubernetes worker with broad
permissions is not a sensible default. A platform team needs a scheduling and isolation model.
A useful conceptual architecture looks like this:
Internal Developer Platform | v Agent Submission API | v Agent Sandbox Controller | +----------+----------+ | | v v Policy Evaluation Identity Broker | | +----------+----------+ | v Sandbox Runtime | +-----------+-----------+ | | v v gVisor MicroVM Runtime | | +-----------+-----------+ | v Agent Execution | +-----------+-----------+ | | | v v v GitHub MCP Tools Model APIs This is where projects such as the Kubernetes SIG Apps Agent Sandbox
controller become relevant.
The broader direction is to provide Kubernetes-native lifecycle
management for agent sandboxes instead of treating every agent execution as an ordinary long-running application Pod. Docker's Kubernetes-oriented docker-sbx work is also worth evaluating
in this context.
However, platform teams should distinguish between a developer
workstation runtime, a cloud sandbox service, and a Kubernetes-native
agent scheduling system. They solve related problems, but they are not
interchangeable.
The architectural goal should be a consistent security contract across
all three environments. An agent should not receive broader permissions simply because it moved from a developer laptop to a Kubernetes cluster.
8. The Trade-offs: Isolation Has an Operational Cost
It is tempting to look at microVM-based sandboxing and conclude that
every agent should run inside one. I would be careful with that assumption. There are real trade-offs, and platform teams need to understand them before adopting this architecture.
MicroVM Overhead Versus Shared-Kernel Efficiency
Containers are lightweight because they share the host kernel. That
makes them excellent for high-density application workloads. MicroVMs introduce another isolation boundary, but they also introduce
additional resource consumption and startup overhead.
The decision depends on the workload.
Workload Reasonable starting point
Trusted internal automation Restricted containers
Untrusted coding agents MicroVMs or gVisor
Multi-tenant agent execution Strong tenant isolation
Agents requiring custom kernels MicroVMs
Short-lived, high-density tasks Benchmark gVisor and microVM
options
There is no universal answer.
A platform team running 10,000 short-lived agents will have different
cost constraints from a team running 20 long-lived autonomous
development sessions.
Measure startup latency, memory consumption, snapshot overhead,
throughput, and recovery behavior before selecting a runtime.
Network Allow-Lists Become an Operational Responsibility
Default-deny networking is a good security posture. Maintaining it is another matter.
A developer may add a dependency that pulls from an unexpected registry. A build might require a new external API. A model provider may change its endpoint requirements.
If the allow-list is too restrictive, developers will find workarounds.
If it is too permissive, the policy becomes meaningless. The solution is not to abandon default-deny.
It is to introduce a proper policy lifecycle:
- Version network policies alongside project configuration.
- Record blocked outbound requests.
- Provide an approval workflow for new destinations.
- Separate installation-time permissions from runtime permissions.
- Audit changes to network and credential policies.
- Regularly review unused permissions.
Security controls that developers cannot work with tend to become
security controls developers work around.
Snapshotting Does Not Eliminate State-Management Complexity
Fast snapshot restoration is attractive, particularly for agents that
spend substantial time waiting for model responses. But snapshotting introduces its own questions.
What happens to temporary credentials? How are expired tokens handled?
What happens when a sandbox resumes on a different worker? How are
filesystem consistency and concurrent modifications handled?
Google's Agent Substrate and Docker's sandbox transfer model address
different aspects of this problem. They should not be treated as equivalent implementations. For production deployments, state restoration, identity continuity, and secret rotation deserve their own testing.
9. What Platform Teams Should Test Next Week
Rather than immediately designing a Kubernetes-based agent platform, I
would start with a small proof of concept.
The objective should be to demonstrate that an autonomous coding agent
can complete a realistic engineering task without obtaining unrestricted access to the developer machine.
Here is the testing sequence I would use.
Test 1: Establish the Isolation Boundary
Install Docker Sandboxes and run an agent against a disposable Git
repository.
sbx run claude Inside the environment, attempt to:
- Read files outside the mounted workspace.
- Access the host Docker daemon.
- Execute privileged container operations.
- Inspect host-level credentials.
- Modify the project workspace.
Verify what is allowed and what is blocked. Do not assume that a successful sandbox startup proves isolation.
Test 2: Enforce Network Restrictions
Start with a restrictive outbound policy. Allow only the model provider, source-control provider, and package registries required by the project. Then deliberately attempt to access an unauthorized endpoint. Verify that the request is blocked and that the denial is observable.
Also test what happens when a legitimate dependency requires a
destination that is not currently allowed. This is where you will discover whether the policy model is practical
for developers.
Test 3: Validate Credential Isolation
Configure a host-managed credential. Run the agent and verify that it can authenticate to the intended provider without exposing the underlying secret inside its environment.
Inspect the environment, process arguments, filesystem, and request
behavior. The objective is to verify that credentials are scoped and injected through the intended trust boundary.
Test 4: Test the Local-to-Cloud Workflow
Create a local sandbox, perform a small development task, and move its
filesystem state to cloud compute.
sbx move payment-refactor --to cloud Verify the destination filesystem and agent configuration.
Specifically check:
- Which files transferred.
- Whether the workspace was mounted or copied.
- Which credentials need to be configured again.
- Whether network policies were recreated.
- Whether the destination can resume the intended work.
Remember that this operation does not migrate running processes or
memory.
Test 5: Build and Inspect a Sandbox Kit
Create a minimal custom Kit for a single engineering task. For example, a Kit that runs an agent against a Go service, executes tests, and has access to a restricted set of external services. Use docker buildx to build it.
Then inspect the resulting OCI artifact, its descriptor, and its
capability declarations.
Finally, introduce a CI policy that rejects an unapproved Kit digest.
This is where the connection to existing container supply-chain tooling
becomes particularly useful.
Test 6: Evaluate Kubernetes Integration
Once the local workflow works, test the Kubernetes side separately.
Evaluate:
- Agent sandbox lifecycle management.
- Runtime selection between gVisor and microVMs.
- Per-agent service accounts and workload identity.
- NetworkPolicy and external egress enforcement.
- MCP authorization.
- Resource quotas and concurrency limits.
- Sandbox cleanup and expiration.
- Audit logs and runtime observability.
Do not simply deploy an agent into a privileged Pod and call it a
sandbox platform. The isolation boundary needs to be independently verified.
10. The Platform Engineering Takeaway
The most interesting thing about the developments around KubeCon NA 2026 is the convergence of three infrastructure concerns:
- Execution isolation: gVisor, microVMs, Docker Sandboxes, and OpenShell.
- Agent lifecycle management: Agent Substrate, snapshotting, and Kubernetes-native orchestration.
- Permission and artifact governance: Sandbox Kits, OCI standardization, credentials, and network policies.
These are connected problems.
An isolated runtime without identity management is incomplete. An agent
scheduler without network enforcement is incomplete. A signed agent
artifact without runtime permission checks is incomplete.
We have spent years building systems that package applications, schedule workloads, manage identities, and enforce policies. Agentic infrastructure needs those same disciplines, but the workload
itself can now decide which actions to take next. That changes how much authority we should grant by default.
My recommendation is to start with Docker Sandboxes on developer
workstations, establish a reproducible security baseline, and then
evaluate how that contract translates into Kubernetes.
Do not begin by building another agent orchestration platform.
First, prove that an agent can run with root privileges inside an
isolated environment, build containers, access only explicitly approved
services, and complete a real engineering task without obtaining control over the host.
Then measure the overhead. If that works reliably, you have something worth taking to your platform architecture review.
The next infrastructure problem is not getting agents to execute
commands. It is making sure they can execute exactly the commands and
actions they have been authorized to perform.





