Backend service logging is disabled Affecting Compute Engine service in Google
Severity Framework
Snyk CCSS
Rule category
Logging / Best Practices
Is your enviroment 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 applicationsFrameworks
CIS-Controls
HIPAA
ISO-27001
NIST-800-53
SOC-2
- Snyk ID SNYK-CC-00398
- credit Snyk 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
}
}