> ## Content Index
> Fetch the complete content index at: https://www.stirup.si/llms.txt
> Use this file to discover other available public pages before exploring further.

# OpenShell Integration with Kubernetes Components and Security Constraints
- URL: https://www.stirup.si/openshell-integration-with-kubernetes-components-and-security-constrai-d2a4ad78/
- Published: 2026-11-04T12:09:27.000Z
- Updated: 2026-11-04T12:09:27.000Z
- Description: OpenShell integrates with Kubernetes through the Gateway API, using tools like Cilium, Agent Sandbox, and Kyverno, with current limitations on Kubernetes API integration and ongoing development for CRD support.
- Author: Satish Das
- Tags: Infrastructure, News, Stirup Research

## OpenShell Integration with Kubernetes Components

OpenShell integrates with Kubernetes components through the Gateway API, as noted in the [nirmata/demo-openshell](https://github.com/nirmata/demo-openshell?ref=stirup.si) repository, which demonstrates the full flow on a two-node kind cluster with Kubernetes 1.35, Cilium 1.20, Agent Sandbox v1.0.5, OpenShell 0.1.3, and Kyverno 1.18.2\. Currently, OpenShell sandboxes can only be created by calling the Gateway API and not via the Kubernetes API, as stated in the documentation. An open issue ([openshell/#1719](https://github.com/openshell/openshell/issues/1719?ref=stirup.si)) tracks the development of a Kubernetes OpenShellSandbox CRD and operator, which would allow for more seamless integration with Kubernetes-native workflows.

## Isolation and Security Constraints in OpenShell

Isolation and security constraints in OpenShell are critical for maintaining a secure and controlled environment on Kubernetes. According to [CNCF](https://www.cncf.io/blog/2026/11/04/openshell-on-kubernetes-a-guide-for-platform-engineers/?ref=stirup.si), workload Pods are restricted to no outbound traffic and only allow inbound traffic from supervisors on TCP 5500\. This ensures that workloads cannot communicate freely with external systems or other untrusted components. [CNCF](https://www.cncf.io/blog/2026/11/04/openshell-on-kubernetes-a-guide-for-platform-engineers/?ref=stirup.si) highlights that Substrate requires a gVisor or Cloud Hypervisor sandbox for every actor, meaning that plain containers are not supported. This adds an additional layer of isolation and security. Furthermore, [CNCF](https://www.cncf.io/blog/2026/11/04/openshell-on-kubernetes-a-guide-for-platform-engineers/?ref=stirup.si) states that only the gateway’s ServiceAccount and the Agent Sandbox controller can create Sandbox resources, preventing unauthorized users from bypassing the gateway. These constraints collectively enforce a strict security model, ensuring that only approved entities can interact with the system and that all components operate within defined boundaries.

## OpenShell and Agent Substrate Relationship

OpenShell’s relationship with Agent Substrate is defined by its role as an orchestration layer. According to [CNCF](https://www.cncf.io/blog/2026/11/04/openshell-on-kubernetes-a-guide-for-platform-engineers/?ref=stirup.si), Agent Substrate is not intended for direct use and requires an intermediary such as Agent Executor, Kagent, or OpenShell. OpenShell, as outlined in RFC 0012 ([CNCF](https://www.cncf.io/blog/2026/11/04/openshell-on-kubernetes-a-guide-for-platform-engineers/?ref=stirup.si)), introduces a pluggable isolation backend, decoupling isolation from the policy-enforcing supervisor. This design allows for greater flexibility and modularity. Additionally, the team has proposed a Substrate backend for OpenShell, as noted in NVIDIA/OpenShell#3362 ([CNCF](https://www.cncf.io/blog/2026/11/04/openshell-on-kubernetes-a-guide-for-platform-engineers/?ref=stirup.si)). These developments highlight OpenShell’s evolving role in managing Agent Substrate, emphasizing its potential as a scalable and adaptable orchestration solution for platform engineers.

## Policy Enforcement and Admission Controls

Policy enforcement and admission controls in OpenShell on Kubernetes rely on integrating with existing Kubernetes tools and concepts. Each OpenShell sandbox is implemented as a set of Kubernetes objects, allowing standard tools like RBAC, Kyverno, audit logs, and kubectl to function as expected within the sandbox environment \[[CNCF](https://www.cncf.io/blog/2026/11/04/openshell-on-kubernetes-a-guide-for-platform-engineers/?ref=stirup.si)\]. For scenarios where agents hold real credentials and interact with production systems, OpenShell provides per-request control and policy enforcement on Kubernetes objects \[[CNCF](https://www.cncf.io/blog/2026/11/04/openshell-on-kubernetes-a-guide-for-platform-engineers/?ref=stirup.si)\]. Unlike traditional approaches, OpenShell builds on the Agent Sandbox framework and introduces per-binary, per-request controls that extend beyond what Kubernetes objects alone can express \[[CNCF](https://www.cncf.io/blog/2026/11/04/openshell-on-kubernetes-a-guide-for-platform-engineers/?ref=stirup.si)\]. This approach ensures that security policies remain consistent with Kubernetes best practices while enabling more granular control over agent behavior.

## Implementation and Testing Requirements

Implementation and testing of OpenShell on Kubernetes requires a set of tools and scripts provided by the project. To begin, users can clone the `nirmata/demo-openshell` repository and run setup and installation scripts to configure the environment. The setup includes Docker, kind, kubectl, Helm, curl, SSH, and nc. Once installed, users can execute demo scripts to test OpenShell L7 policies and Kyverno admission policies. According to [nirmata/demo-openshell](https://github.com/nirmata/demo-openshell?ref=stirup.si), the process includes cleanup after testing. Specific implementation details and testing requirements are outlined in the OpenShell architecture documentation and related CNCF project pages. Research and privacy statements should be attributed to the source speaker, and numeric claims should be attributed to their publisher.

## Sources and reporting notes

- [CNCF](https://www.cncf.io/blog/2026/11/04/openshell-on-kubernetes-a-guide-for-platform-engineers/?ref=stirup.si)

Based on published source material. No independent hands-on testing is claimed.