For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

GCP Dataflow jobs are not private misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_GCP_94

Category - Subcategory

Public Exposure - VPC VCN VNet

Provider

GCP

Severity

HIGH

Framework

Terraform

Impact

Cloud Dataflow in GCP is a service used for streaming and batch data processing. A Dataflow job consists of at least one management node and one compute node (both are GCE VMs). By default, these nodes are configured with public IPs that allow them to communicate with the public internet, but this also means they increase your potential attack surface by being publicly accessible. We recommend you remove the public IPs for your Dataflow jobs. View the https://cloud.google.com/dataflow/docs/guides/routes-firewall#internet_access_for[official Google documentation] for the currently supported internet access configuration options.

How to Fix

Resource: google_dataflow_job

  • Field: ip_configuration [source,go]


resource "google_dataflow_job" "big_data_job" { name = "dataflow-job" template_gcs_path = "gs://my-bucket/templates/template_file" temp_gcs_location = "gs://my-bucket/tmp_dir" parameters = { foo = "bar" baz = "qux" }

  • ip_configuration = "WORKER_IP_PUBLIC"

  • ip_configuration = "WORKER_IP_PRIVATE" }


Last updated

Was this helpful?