Summary
The AgentCardNetworkPolicyReconciler watches Deployment and StatefulSet to create NetworkPolicies for workloads referenced by AgentCards. It does not watch Sandbox (agents.x-k8s.io/v1alpha1), so Sandbox-deployed agents don't get NetworkPolicies created.
Impact
Depending on the cluster's default network policy:
- Default deny: Sandbox agents are unreachable — no ingress policy allows traffic to them
- Default allow: Sandbox agents have no network segmentation — less secure than Deployment/StatefulSet agents
Required Changes
- Add a conditional
Watches call in SetupWithManager using SandboxCRDExists() guard
- Use unstructured object with
sandboxGVK
- Map Sandbox events to AgentCard via
mapWorkloadToAgentCard("agents.x-k8s.io/v1alpha1", "Sandbox")
- Add RBAC marker for
agents.x-k8s.io sandboxes
Reference
Acceptance Criteria
Summary
The
AgentCardNetworkPolicyReconcilerwatches Deployment and StatefulSet to create NetworkPolicies for workloads referenced by AgentCards. It does not watch Sandbox (agents.x-k8s.io/v1alpha1), so Sandbox-deployed agents don't get NetworkPolicies created.Impact
Depending on the cluster's default network policy:
Required Changes
Watchescall inSetupWithManagerusingSandboxCRDExists()guardsandboxGVKmapWorkloadToAgentCard("agents.x-k8s.io/v1alpha1", "Sandbox")agents.x-k8s.iosandboxesReference
agentruntime_controller.gofor the canonical Sandbox watch setupAcceptance Criteria