Security

Inside CNCF OpenShell’s Security Architecture: Agent Sandboxing, Cedar Policies, and Deployment Governance

NVIDIA donated OpenShell—an Apache 2.0 runtime for sandboxing AI agents—to the CNCF Sandbox at KubeCon 2026 alongside Google's Agent Substrate. While OpenShell enforces deterministic kernel isolation and hides real secrets from agents, security analysts highlight a critical gap: sandboxing execution does not govern what an agent changes in production.

By 0xScorPionSon

8 min read

Inside CNCF OpenShell’s Security Architecture: Agent Sandboxing, Cedar Policies, and Deployment Governance

CNCF OpenShell security model showing AI agent session inside kernel-isolated OpenShell sandbox, gateway and Cedar gate with secret injection, and deployment governance with scoped tokens

Executive Summary

  • Core defensive shift: On November 10, 2026, at KubeCon + CloudNativeCon North America, NVIDIA contributed OpenShell (Apache 2.0) to the Cloud Native Computing Foundation (CNCF) as a Sandbox project, moving agentic execution boundaries out of probabilistic LLM prompts and into deterministic kernel and network controls (CNCF Blog, NVIDIA Blog).
  • Target architecture: OpenShell pairs a Gateway control plane, a Supervisor, and isolated Sandboxes (backed by Docker, rootless Podman, Kubernetes, or MicroVM drivers) using Linux Landlock, seccomp, deny-by-default egress, per-binary HTTP filtering, and runtime credential injection so agents never see raw secrets (Qovery).
  • Primary trade-off flagged by analysts: Independent architectural reviews from Qovery (November 15, 2026) and Obot AI (November 19, 2026) emphasize that OpenShell is an execution sandbox, not a deployment governance layer. A sandboxed agent holding an over-privileged kubeconfig or cloud key can still delete or misconfigure production infrastructure—and as a 0.1.x CNCF Sandbox project transitioning from YAML to Cedar policies, OpenShell should be piloted as one layer in a broader zero-trust stack (Qovery, Obot AI).

Trust Model & Architecture

Autonomous coding and operations agents (such as Claude Code, Codex, OpenCode, or GitHub Copilot CLI) differ fundamentally from traditional microservices: they dynamically generate code, invoke shell commands, and call external Model Context Protocol (MCP) tools based on untrusted inputs (Obot AI). System-prompt guardrails cannot enforce hard security boundaries because LLM reasoning is probabilistic.

OpenShell (co-contributed alongside core contributors from NVIDIA, Red Hat, Docker, and Canonical, and moving to the neutral ai-openshell GitHub organization) moves enforcement into the host and network plane (CNCF Blog).

The Three-Component Runtime and Five Policy Domains

Per technical documentation analyzed by Qovery, OpenShell separates control from execution across a Gateway (provisioning sandboxes, managing credentials, and evaluating policy), a Supervisor, and the Sandbox itself across four compute drivers: Docker, rootless Podman, Kubernetes (operator-managed pods), and MicroVM (Qovery).

Policy Domain Enforcement Mechanism Scope of Control Runtime Mutability
Filesystem Linux Landlock Restricts readable and read-write paths inside the sandbox Fixed at sandbox start (Qovery)
Process & Syscalls UID/GID + seccomp Constrains user/group identity and filters kernel syscalls Fixed at sandbox start (Qovery)
Landlock Behavior Fail-closed startup check Refuses to boot the sandbox if filesystem rules cannot be applied Fixed at sandbox start (Qovery)
Network Egress Per-binary & HTTP proxy Deny-by-default egress; rules per binary (e.g., git vs. curl) and HTTP method (GET vs. POST) Mutable while running (Qovery)
Credentials (Providers) Gateway secret injection Injects real tokens only into requests bound for approved endpoints; agent sees placeholders Attach, rotate, and revoke at runtime (Qovery)
flowchart LR
    Agent["AI Agent Session<br/>(Placeholder Creds Only)"] -->|Syscalls & Files| Kernel["Kernel Boundary<br/>(Landlock + seccomp)"]
    Agent -->|Outbound HTTP/HTTPS| Proxy["OpenShell Gateway Proxy<br/>(Deny-by-Default + Cedar)"]
    Proxy -->|Blocked if unapproved| Drop["Denied / Audited"]
    Proxy -->|Approved Host + Method| Inject["Credential Injection<br/>(Real Secret Attached)"]
    Inject -->|Scoped Policy Token| Target["Deployment API / Git / LLM<br/>(OPA/RBAC + Human Gate)"]

Formal Verification, Cedar Migration, and Agent Substrate Integration

Before applying a policy update, OpenShell runs a formal verification check to flag risky new access grants (Qovery). To strengthen automated reasoning over policies, CNCF and NVIDIA confirmed that OpenShell is adopting Cedar—the AWS-originated authorization language that entered the CNCF Sandbox in October 2025—replacing its initial YAML policy format (CNCF Blog, Qovery).

At the cluster layer, NVIDIA is also integrating OpenShell with Agent Substrate, a Google-originated CNCF Sandbox project that decouples an agent's persistent identity and workspace state from Kubernetes worker pods—snapshotting idle agents to free compute and restoring them on demand (NVIDIA Blog, Obot AI). In parallel, NVIDIA's DSX AI Factory components (including NVIDIA Snapshot) demonstrated restoring checkpointed inference replicas in 31 seconds (down from ~8 minutes on GLM-5.3 with Crusoe) and 6–34 seconds for vLLM scale-from-zero with Saturn Cloud (NVIDIA Blog).


What Researchers & Analysts Say

While the CNCF donation establishes vendor-neutral governance, independent security and platform engineering analyses highlight important architectural boundaries and maturity caveats.

1. Execution Sandboxing vs. Deployment Governance (Qovery Analysis)

In a November 15, 2026 architectural review, Qovery CEO Romaric Philogene notes that OpenShell excels at answering "what can this process touch on the machine and on the network?"—effectively blocking prompt-injected data exfiltration because an agent holding placeholder credentials cannot leak a real token into a public GitHub issue (Qovery).

However, Philogene warns against treating OpenShell as a complete production safeguard. If an organization allows an OpenShell sandbox to reach a Kubernetes API and injects a cluster-admin kubeconfig, an agent that misinterprets a ticket and runs kubectl scale deployment api --replicas=0 -n payments executes a valid HTTPS PATCH to an approved host from an approved binary—and takes down production (Qovery). This maps directly to OWASP LLM06:2025 (Excessive Agency), compounded by empirical code-safety risk (Qovery cites Veracode's 2025 study finding that 45% of AI-generated code samples across 100+ models introduced OWASP Top 10 vulnerabilities) (Qovery).

Security Question Execution Sandbox (OpenShell, Nitro Sandboxes) Deployment Governance (Scoped Tokens, OPA, GitOps)
Primary threat addressed Escape, local secret theft, uncontrolled outbound exfiltration Wrong or unauthorized changes to live cloud/K8s services (Qovery)
Unit of policy reasoning Process, file path, syscall, host, HTTP method/path Organization, environment (staging vs. prod), service, rollback (Qovery)
Credential handling Hides real secret from agent via gateway injection Bounds what that secret is authorized to mutate (Qovery)
Human gate Approves sandbox policy expansions Gates production deploys, merges, and destructive actions (Qovery)
Audit attribution Logs sandbox process and network decisions Records which specific agent/human changed which environment (Qovery)

2. Multi-Boundary Enforcement & CNCF Sandbox Maturity (Obot AI & CNCF)

In a November 19, 2026 KubeCon recap, Obot AI's Sheng Liang reinforces that no single control point secures an agent: restricting MCP tools is insufficient if the agent can fall back to shell commands, and network egress rules alone cannot validate whether an MCP tool call is authorized for the delegating user (Obot AI). Effective governance requires coordinated enforcement across identity (SSO/SCIM), LLM gateways, MCP registries, runtime sandboxes, and centralized audit logs (Obot AI).

Additionally, CNCF Sandbox status explicitly denotes "experimental projects not yet widely tested in production" (CNCF Blog, Qovery). OpenShell remains on its 0.1.x release line while migrating policy syntax from YAML to Cedar—meaning platform teams should expect breaking API and policy changes before 1.0 (Qovery).


Hardening & Implementation Blueprint

To pair OpenShell's execution isolation with environment-aware deployment governance without creating blind spots, follow this six-step defensive blueprint (Qovery):

  1. Enforce deny-by-default egress and workspace-only writes: Run coding or operations agents inside OpenShell with Landlock restricting filesystem writes to the project directory and all outbound traffic blocked unless explicitly allowlisted per binary.
  2. Restrict egress to a single deployment API: Allow outbound connections only to your Git host, approved LLM inference endpoints, and a policy-enforcing deployment API (rather than exposing raw Kubernetes or cloud control-plane APIs directly).
  3. Inject environment-scoped credentials as OpenShell providers: Never place long-lived kubeconfig files or AdministratorAccess keys inside the sandbox. Inject per-agent tokens scoped strictly to preview or staging environments.
  4. Gate production behind human approval: Require pull-request merges (via GitOps tools like Argo CD or Flux) or explicit platform approval gates for any production mutation.
  5. Assign unique per-agent identities: Issue one named token per agent-and-human pair so Kubernetes, gateway, and SIEM audit logs clearly attribute every action.
  6. Keep YAML policies small during the Cedar transition: Pilot OpenShell on local developer sessions and CI runners first, and ship both sandbox network logs and deployment audit events to the same SIEM (Qovery).

Below is a conceptual defensive policy blueprint illustrating how an OpenShell-style sandbox boundary pairs with an environment-scoped Cedar/OPA deployment rule (note: verify exact syntax against ai-openshell as the 0.1.x Cedar migration finalizes):

# Conceptual OpenShell + Scoped Deployment Boundary (0.1.x Pilot Pattern)
sandbox_policy:
  filesystem:
    read_only: ["/usr", "/lib", "/etc/ssl/certs"]
    read_write: ["/workspace/repo"]
    fail_closed_landlock: true
  network_policies:
    default_action: "deny"
    rules:
      - binary: "git"
        hosts: ["github.com"]
        methods: ["GET", "POST"]
      - binary: "agent-runner"
        hosts: ["api.anthropic.com", "deploy.internal.example"]
        methods: ["GET", "POST"]
  credential_providers:
    - name: "staging-deploy-token"
      inject_header: "Authorization"
      allowed_hosts: ["deploy.internal.example"]
      # Token itself is bound server-side to staging/preview namespaces only

Operational Overhead Considerations

Running a full open-source stack—OpenShell for execution isolation, Kubernetes agent-sandbox / Agent Substrate for stateful pod lifecycle, Kyverno or OPA Gatekeeper for admission control, and Argo CD or Flux for GitOps—means operating and upgrading four distinct control-plane systems (Qovery). Teams without dedicated platform engineering capacity may prefer pairing OpenShell's local/CI sandbox with a managed deployment control plane or MCP gateway that enforces OPA/RBAC token scoping out of the box (Qovery, Obot AI).


Frequently Asked Questions

1. What did NVIDIA donate to the CNCF at KubeCon 2026?

On November 10, 2026, NVIDIA contributed OpenShell—an Apache 2.0 open-source runtime for sandboxing and governing autonomous AI agents—to the CNCF as a Sandbox project, alongside contributing to Google-originated Agent Substrate (CNCF Blog, NVIDIA Blog).

2. Is OpenShell production-ready as a CNCF Sandbox project?

CNCF defines Sandbox projects as experimental technologies not yet widely tested in production. With OpenShell on its 0.1.x release line and actively migrating its policy language from YAML to Cedar, analysts recommend piloting it on developer and CI agent sessions while keeping breaking-change buffers in mind (Qovery).

3. How does OpenShell protect API keys and credentials from prompt injection?

OpenShell uses gateway-level credential injection: agents only see placeholder values inside the sandbox, while the gateway attaches real tokens exclusively to outbound requests matching approved endpoints and HTTP methods (Qovery).

4. Does OpenShell prevent an AI agent from breaking production Kubernetes clusters?

No, not by itself. OpenShell governs OS, network, and endpoint access, not environment semantics. If you inject an over-privileged kubeconfig into an allowed endpoint rule, the agent can still issue destructive mutations—which is why per-agent scoped tokens, OPA/Kyverno policies, and human approval gates remain mandatory (Qovery).

5. How do OpenShell and Agent Substrate work together?

Agent Substrate handles scalable Kubernetes lifecycle management by snapshotting idle agent state and freeing compute, while OpenShell enforces deterministic kernel, network, and credential boundaries around the running agent (NVIDIA Blog, Obot AI).


Sources

  1. Cloud Native Computing Foundation (November 10, 2026) — Welcoming OpenShell to the CNCF: Open Governance to Secure Agentic AI: https://www.cncf.io/blog/2026/11/10/welcoming-openshell-to-the-cncf-open-governance-to-secure-agentic-ai/
  2. NVIDIA Blog (November 10, 2026) — NVIDIA Expands Open Source Commitment With OpenShell Contribution and New AI Infrastructure: https://blogs.nvidia.com/blog/open-source-openshell-infrastructure/
  3. Qovery Blog (November 15, 2026) — NVIDIA donated OpenShell to the CNCF: what it secures, and what it leaves open when agents deploy to your own cloud: https://www.qovery.com/blog/openshell-cncf-agent-sandbox-vs-deployment-governance
  4. Obot AI Blog (November 19, 2026) — KubeCon 2026: Agentic Security and Governance Come Into Focus: https://obot.ai/blog/agentic-security-governance-kubecon-2026/

More on Security

Security

What Dragos Found Auditing AI Inference ZDR Security: OpenRouter Cuts 3 Providers and 125 Endpoints

Between July and November 2026, Dragos researchers seeded roughly two million prompts with unique canary tokens and URLs to audit how AI inference routers handle Zero Data Retention (ZDR) traffic. On November 22, 2026, OpenRouter announced it had off-boarded three providers and removed 125 endpoints from ZDR eligibility while integrating ongoing canary checks. Here is how the trust boundary broke down—and the defensive controls engineering teams can deploy now.

10 min read

Security

Inside Anthropic's Zero Trust Model for AI Agents: Tiers, Controls, and Analyst Trade-Offs

Anthropic's 36-page Zero Trust for AI Agents framework adapts NIST SP 800-207 for autonomous systems that invoke tools, hold memory, and coordinate across sessions. Independent security analysts at Safeguard and Permit.io recently mapped its three tiers and nine control families against real infrastructure boundaries. Here is how the "impossible versus tedious" test reshapes agent identity, sandboxing, and MCP authorization.

9 min read

Tell us what is not working

A thirty-minute call, no deck and no obligation. You will leave with a straight answer about whether this is worth building - including if that answer is no.

Start a project

Direct line

hello@codebumble.net
Dhaka, Bangladesh  :   local timeCalls in English or Bangla