More Info:
Enable VPC Flow Logs and intranode visibility so network traffic to, from, and between nodes is recorded for monitoring and forensics. Without them, network-level activity is not observable.Risk Level
MediumAddress
SecurityCompliance Standards
- CIS GKE
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
Identify cluster networking settings
Run on any machine with gcloud configured:Review:.enableIntraNodeVisibility(should betrueto meet the intent of the control).networkand.subnetwork(VPC and subnet used by the cluster)
-
Check current VPC Flow Logs status for the cluster subnet
From the previous output, note the subnetwork name (without quotes), then run:Review whether:enableistrue(Flow Logs enabled)- Optional:
aggregationInterval,flowSampling, andmetadatamatch your logging/forensics requirements.
-
Decide on enabling intranode visibility
Based on your security and performance requirements, decide whether to enable intra-node visibility (may increase load on network and logging backends). If required by your policy, plan to enable it for the cluster. -
Decide on enabling VPC Flow Logs
Based on compliance, logging cost, and retention policies, decide whether to enablelogConfig.enable=truefor the cluster subnet. If required, plan to enable Flow Logs with appropriate sampling/aggregation settings. -
Apply configuration changes (if required by your decision)
a. Enable VPC Flow Logs on the cluster subnet (any machine with gcloud):(Optionally add flags like--logging-aggregation-interval,--logging-flow-sampling,--logging-metadataas per your logging design.) b. Enable intranode visibility on the cluster: -
Verify that changes are effective
a. Verify intranode visibility:Confirm the value istrue. b. Verify VPC Flow Logs:Confirmenableistrueand that other settings match your intended configuration.
Using kubectl
Using kubectl
kubectl cannot enable VPC Flow Logs or intranode visibility because they are configured at the GCP network and GKE cluster level, not via Kubernetes API objects. Apply the remediation using the Google Cloud Console,
gcloud CLI, or your IaC tooling as described in the Manual Steps section.Automation
Automation
- Any row where
intra_node_visibility_enabledisfalsemeans intra-node visibility is not enabled for that cluster. - Any row where
subnet_flow_logs_enabledisfalsemeans VPC Flow Logs are not enabled on the subnetwork used by that cluster.
false require manual review and potential remediation using the benchmark’s recommended gcloud commands.
