Dataflow Internal Traffic Restriction Affecting Dataflow service in Google


Severity

0.0
medium
0
10
Severity Framework
Snyk CCSS
Rule category
Network/ Data

Is your environment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
Frameworks
  • Snyk IDSNYK-CC-00713
  • creditSnyk Research Team

Description

Restrict Google Dataflow to internal traffic to prevent unauthorized access and data exposure. Allowing external access risks data breaches, compliance violations, and increased attack surface.

How to fix?

Set the ip_configuration attribute to WORKER_IP_PRIVATE to prevent unauthorized access and data exposure.

Example Configuration


resource "google_dataflow_job" "allowed1" {
  name              = "allowed1"
  template_gcs_path = "gs://dataflow-templates/latest/Word_Count"
  temp_gcs_location = "gs://example713/temp"
  parameters = {
    inputFile = "gs://example713/template.json"
    output    = "gs://example713"
  }
  ip_configuration = "WORKER_IP_PRIVATE"
}