OpenKruise Agents v0.6.0 Adds L4/L7 Network Control and Credential Injection for AI Agent Sandboxes
The new release introduces a dedicated data plane for agent sandboxes, enabling fine-grained network policies, MCP tool-level access control, and secure credential injection without exposing API keys to the agent code.
OpenKruise Agents, a sub-project of the CNCF OpenKruise project, has released version 0.6.0, introducing significant enhancements to the security and automation of AI agent sandboxes running on Kubernetes. The update addresses critical infrastructure needs by adding a dedicated data plane for traffic inspection and policy enforcement, moving beyond simple workload orchestration.
A key architectural change is the introduction of traffic-control-plane and traffic-proxy components. This creates a two-stage traffic takeover mechanism: node-side Layer 4 (L4) filtering for low-latency destination reachability checks, and central Layer 7 (L7) deep inspection at the egress gateway. This split allows for unified operations, observability, and security auditing while ensuring that L4 denials are dropped before traffic reaches the gateway.
The release introduces new Custom Resource Definitions (CRDs), including TrafficPolicy and SecurityProfile, which allow platform teams to define granular egress rules. For example, TrafficPolicy can whitelist specific FQDNs or CIDR blocks, while SecurityProfile enables HTTP request matching and actions such as blocking SSRF attempts against internal metadata endpoints. Additionally, mcpToolPolicy provides access control at the level of individual Model Context Protocol (MCP) tools, addressing risks where domain-level controls are too coarse.
Credential management is also improved through token transformation features. API keys and secrets stored in Kubernetes Secrets are injected into outbound requests by the egress proxy per request, ensuring that sensitive credentials never enter the sandbox environment or the agent's code. This significantly reduces the risk of credential leakage from prompt-injected or compromised agents.