Logging is not enabled on storage bucket Affecting Cloud Storage service in Google


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

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 applications
    Frameworks
    CIS-Controls
  • Snyk ID SNYK-CC-00370
  • credit Snyk Research Team

Description

Usage information will not be collected. This may impact ability to determine who accessed data stored in the bucket.

How to fix?

Set the logging block attribute for the storage bucket.

Example Configuration

resource "google_storage_bucket" "allowed" {
  name          = "auto-expiring-bucket"
  location      = "US"
  force_destroy = true
  logging {
    log_bucket = "some_bucket_id"
  }
}