AWS announced Nitro Sandboxes on 9 November. The short version: each EKS pod, ECS task or EC2 workload can now run in its own lightweight VM with its own kernel, carved out of a running EC2 instance by the Nitro hypervisor.
That matters more than it sounds, especially if you run agents that execute code you didn't write.
I'm working from the AWS launch posts and docs here, not from a cluster I've run it on yet.
The problem
Containers on a node share the host kernel. For most workloads that's fine. For some it's not: multi-tenant platforms, CI runners, and agent workloads that run untrusted or model-generated code.
The usual answers were dedicating a node per workload (expensive) or bolting on a sandbox runtime (more moving parts). Nitro Sandboxes gives you a hardware boundary without dedicating a machine.
Each sandbox gets its own slice of CPU and memory, enforced by the Nitro hypervisor, using the same isolation technology behind Nitro Enclaves.
How you turn it on in EKS
On EKS Auto Mode it's a one-line change to the pod spec. Adapted from AWS's example:
apiVersion: v1 kind: Pod metadata: name: hello-sandbox spec: runtimeClassName: isolated-sandbox # the only change containers: - name: hello image: public.ecr.aws/amazonlinux/amazonlinux:2023 command: ["sleep", "infinity"] Two RuntimeClasses ship with every Auto Mode cluster:
isolated-sandboxconfidential-sandbox
The RuntimeClass carries the node selector and toleration, so you don't add scheduling fields yourself.
Things to check before you try it:
- Kubernetes 1.36 or later. AWS's eksctl example uses 1.37 with
--enable-auto-mode. - Standard EKS (your own node groups or Karpenter) works too, but the nodes need a sandbox-enabled AMI. The user guide covers building one.
- It runs on Nitro-enabled instance families (Intel, AMD, Graviton) in all commercial Regions.
Isolated vs confidential
This is the bit people will mix up.
Isolated protects the host and neighbouring pods from whatever runs inside the sandbox. Each pod gets its own VM.
Confidential goes further and treats the operator as untrusted. Attestation proves what code is running. AWS KMS only releases decryption keys to an attestation document matching the expected system image and a Cedar policy. AWS says this stops even cluster administrators from reading pod memory.
Moving from one to the other means changing runtimeClassName to confidential-sandbox, then adding the Cedar policy and KMS attestation conditions.
If your threat model is "untrusted code in my cluster", isolated is the starting point. If it's "I don't trust the people running the cluster", that's the confidential mode.
There's an optional network lock-down
A sandboxed pod can be given no route out at all. Add this annotation and the VM only has loopback:
metadata: annotations: sandbox.amazonaws.com/network-isolated: "true" For an agent that executes generated code and should never phone home, that's a useful default.
What still works
The EKS post says the sandboxes pass the Kubernetes conformance tests, and that these keep working as usual:
-
kubectl exec,kubectl logs,kubectl port-forward - Pod Identity
- EBS and EFS storage
- CloudWatch and VPC CNI networking
- Your existing security tooling
Warm pools through the agent-sandbox project keep pre-booted VMs ready, and AWS puts claiming one at about two seconds.
What I couldn't find
This is the part I'd test before betting on it:
- No overhead numbers. AWS says near-native compute and memory performance, but the EKS post gives no latency or overhead figures for the sandbox itself.
- GPUs, DaemonSets and storage constraints aren't covered in that post. The docs may cover them. Check the user guide before you depend on any of it.
- Cost. Cloud Native Now reports no additional charge for the sandbox capability, and that you pay for the EC2 capacity plus any Auto Mode or ECS Managed Instances fees. The EKS post itself is silent on pricing, so check the pricing page.
Who should look at this now
- Platform teams running multi-tenant workloads on shared nodes
- Anyone running AI agents that execute shell commands or generated code
- Regulated teams who've been avoiding containers for the sensitive stuff
If that's you, a pilot on one non-critical namespace is cheap. Measure start-up time and per-pod overhead yourself. Those are the numbers AWS hasn't given us.
Drafted with AI assistance. I review and edit every post.
