Join our Newsletter — 33% off our NHI Course
Home Glossary Cyber Security Network Policy
Cyber Security

Network Policy

← Back to Glossary
By NHI Mgmt Group Updated August 16, 2026 Domain: Cyber Security

A Kubernetes Network Policy is a rule that controls which pods can communicate with each other and with external endpoints. It is a policy object, not a complete security boundary, and its effectiveness depends on accurate labels, current topology, and continuous maintenance as the cluster changes.

Expanded Definition

In Kubernetes, network policy is the specification layer that says which workloads may talk to which other workloads, and under what conditions. It is most useful when treated as a cluster-local enforcement mechanism that complements, rather than replaces, segmentation, identity-aware controls, and secure workload design. NIST’s NIST Cybersecurity Framework 2.0 does not define Kubernetes network policy specifically, but its governance model maps well to the operational need to identify, protect, detect, and respond to unintended connectivity. In practice, policy objects usually match pods by labels and control ingress, egress, or both, which makes accuracy of metadata a security dependency, not just an administration detail.

Definitions vary across vendors on how much security assurance network policy provides, because enforcement depends on the CNI plugin, cluster configuration, and whether default-deny behavior is actually enabled. It is best understood as a declarative control that reduces blast radius inside the cluster, especially when paired with NIST SP 800-207 Zero Trust Architecture principles. The most common misapplication is assuming a policy exists when workloads remain broadly reachable because labels are incomplete, namespaces are permissive, or the chosen network plugin does not enforce the intended rules.

Examples and Use Cases

Implementing network policy rigorously often introduces operational overhead, requiring teams to weigh stronger segmentation against the cost of maintaining accurate labels, service maps, and exception handling as applications change.

  • Restricting a payment-processing namespace so only the API service can reach the database service, while all other pod-to-pod traffic is denied.
  • Allowing egress only to a package repository, logging endpoint, and identity provider from a build namespace, reducing uncontrolled outbound connectivity.
  • Creating separate ingress rules for frontend and admin services so public traffic reaches only the intended entry point, while internal operations remain isolated.
  • Using default-deny network policy in a sensitive environment and then adding explicit exceptions for service discovery, monitoring, and backup traffic.
  • Validating that a policy is actually enforced by the cluster CNI, since some deployments support the object but do not apply it consistently across all traffic paths.

For teams implementing Kubernetes hardening, authoritative guidance from Kubernetes network policies is useful because it clarifies selector logic, policy scope, and the difference between allowing traffic and enforcing denial. The key practical question is not whether a policy exists, but whether it reflects the current service topology without accidentally blocking required platform dependencies.

Why It Matters for Security Teams

Network policy matters because lateral movement inside a cluster is often more damaging than external exposure alone. When pods can freely communicate, a single compromised workload can become a pivot point for credential theft, service impersonation, data exfiltration, or malware propagation. That is especially important for clusters that host secrets, CI/CD runners, controllers, or agentic AI services with execution authority and tool access, where uncontrolled east-west traffic can turn one compromised pod into a system-wide incident. Security teams should treat network policy as one control in a broader containment strategy that also includes workload identity, secret handling, admission control, and continuous monitoring.

The policy model also supports governance by making connectivity expectations explicit and reviewable, which helps with change management and auditability. However, it is not a substitute for strong authentication or authorization at the application layer, and it cannot compensate for weak pod labeling or overly broad namespace design. Organisations typically encounter the consequences only after a workload breach or unexpected data path is discovered during incident response, at which point network policy becomes operationally unavoidable to contain the spread.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0, NIST Zero Trust (SP 800-207) and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.AC-4Maps to controlling network access and limiting who can reach what inside the environment.
NIST Zero Trust (SP 800-207)Zero Trust emphasizes explicit, continually verified access decisions across traffic paths.
NIST SP 800-53 Rev 5SC-7Boundary protection control aligns with segmentation and traffic filtering expectations.

Treat every pod-to-pod path as untrusted and require explicit policy before permitting traffic.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on August 16, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org