You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 12, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 12, 2026. It is now read-only.
[kagenti-operator] Auto-label namespaces with istio-discovery=enabled when AgentRuntime CR is created #399
When a user creates a new namespace and deploys an agent with an AgentRuntime CR, the namespace is not automatically enrolled in the Istio ambient mesh. The istio-discovery: enabled label (and istio.io/dataplane-mode: ambient) must be present on the namespace for ztunnel to provide L4 mTLS encryption.
Today, Helm charts pre-label namespaces from a static values list (agent-namespaces.yaml, mcp-gateway-namespaces.yaml). Dynamically created namespaces are not labeled, meaning agent pod traffic is plaintext at L4 even though AuthBridge sidecars handle application-layer auth.
Current Behavior
User creates namespace team1
Deploys agent workload with AgentRuntime CR
AgentRuntime controller labels the workload with kagenti.io/type=agent ✅
AuthBridge webhook injects sidecar into pods ✅
Namespace has no istio-discovery: enabled label → not in mesh ❌
ztunnel does not intercept traffic → no mTLS at transport layer
Expected Behavior
When an AgentRuntime CR is created in a namespace that lacks istio-discovery: enabled, the operator should auto-label the namespace to enroll it in the ambient mesh.
Activity
r3v5 commentedon Jun 3, 2026
/assign
spec: address review feedback on mTLS spec