GKE clusters should have network policy enabled
This control ensures that GKE clusters network policy is enabled.
Enabling a network policy allows the segregation of network traffic by namespace.
What this control checks
Trivy GCP-0056 shows network_policy with enabled = true on google_container_cluster as a good example. Trivy GCP-0056 also shows enable_autopilot = true as a good example. Trivy GCP-0056 also shows datapath_provider = "ADVANCED_DATAPATH" as a good example. Powerpipe kubernetes_cluster_network_policy_enabled is titled "GKE clusters network policy should be enabled".
Common pitfalls
Disabled policy passes with ADVANCED_DATAPATH
A cluster with the network policy disabled still passes this check when it uses ADVANCED_DATAPATH.
Audit evidence
Evidence that deployed resources meet this control: PowerPipe control gcp_compliance.control.kubernetes_cluster_network_policy_enabled.
Scans of the Terraform code that flag the same setting before deployment: Checkov check CKV_GCP_12; Trivy check GCP-0056.
Related controls
Tool mappings
Use these identifiers to cross-reference this control across tools, reports, and evidence.
- Compliance.tf Control:
gcp_kubernetes_cluster_network_policy_enabled - Checkov Check:
CKV_GCP_12 - Powerpipe Control:
gcp_compliance.control.kubernetes_cluster_network_policy_enabled - Trivy Check:
GCP-0056
Last reviewed: 2026-10-09