Skip to content
STUB

Network Policy

The pattern: explicit allowlist for which workloads can reach which workloads, on which ports, in which directions. Default-deny in tenant namespaces; explicit allow rules for legitimate traffic. Without it, a single compromised pod can reach everything in the cluster.

The trade-off: security vs. iteration friction. Default-deny is secure but breaks every new connection until you write the policy. Default-allow is friction-free but means lateral movement is trivial. The right answer is default-deny + a fast loop for adding policies (PR-reviewable, mesh-tested, observable when blocked).

Deepens in Year 1 Phase 7: Kubernetes + GitOps — Cilium NetworkPolicy + a default-deny + explicit-allow exercise. The networking substrate it depends on is laid down in Year 1 Phase 2: Networking, and policy-violation telemetry (drops, denies, flow logs) lands in Year 3 Phase 14: Observability + eBPF.