Google storage bucket does not use customer-managed keys to encrypt data Affecting Cloud Storage service in Google


Severity

0.0
medium
0
10
Severity Framework
Snyk CCSS
Rule category
Data/ Encryption at Rest

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
CSA-CCMGDPRNIST-800-53SOC-2
  • Snyk IDSNYK-CC-00371
  • creditSnyk Research Team

Description

Google will manage the encryption keys on its servers and could access the data without authorization.

How to fix?

Use encryption keys from self-managed key management service and configure the encryption block accordingly.

Example Configuration

resource "google_storage_bucket" "allow" {
  name          = "image-store.com"
  location      = "EU"
  force_destroy = true
  encryption {
    default_kms_key_name = "dummy_key"
  }

  uniform_bucket_level_access = true
}