Description
This entry lists a Cloud Storage bucket. Cloud Storage encrypts objects by default.
Potential impact
If public access prevention is off, a bucket READER ACL for allUsers lets anyone list object names. Reading their contents requires separate permission.
Remediation
Record the owner, location and retention policy. Check recovery settings and public IAM grants, including inherited access. If you use a customer-managed key, keep it available and grant the Cloud Storage service agent permission to use it.
Examples
These excerpts use the retired Deployment Manager format. The second defines a different bucket, disables ACLs with uniform bucket-level access, and sets a default key in the bucket’s region, europe-west3.
Before
resources:
- name: sample-input3
type: storage.v1.bucket
properties:
storageClass: STANDARD
location: EUROPE-WEST3
acl:
- entity: allUsers
role: READER
After
resources:
- name: sample-input
type: storage.v1.bucket
properties:
storageClass: STANDARD
location: EUROPE-WEST3
iamConfiguration:
uniformBucketLevelAccess:
enabled: true
encryption:
defaultKmsKeyName: projects/example/locations/europe-west3/keyRings/ring/cryptoKeys/key
Changing a bucket’s default key affects future writes. Existing objects keep their current encryption until rewritten.