Backend service logging is disabled Affecting Compute Engine service in Google


Severity

0.0
medium
0
10
Severity Framework
Snyk CCSS
Rule category
Logging/ Best Practices

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
CIS-ControlsHIPAAISO-27001NIST-800-53SOC-2
  • Snyk IDSNYK-CC-00398
  • creditSnyk Research Team

Description

Load balancer traffic logging will not occur for this service, meaning actions cannot be tracked.

How to fix?

Set log_config.enable attribute to true.

Example configuration

resource "google_compute_region_backend_service" "allowed2" {
  name                            = "region-service2"
  region                          = "us-central1"
  connection_draining_timeout_sec = 10
  session_affinity                = "CLIENT_IP"

  log_config {
    enable = true
  }
}