gcp.storage.uniform-bucket-level-access
Buckets use uniform bucket-level access
Every Cloud Storage bucket has uniform bucket-level access enabled, so object ACLs cannot grant access that IAM does not.
Assertion
for every bucket b: b.iamConfiguration.uniformBucketLevelAccess.enabled == trueRationale
A bucket with legacy access control has two permission systems: IAM on the bucket and an ACL on every object. The ACLs are set by whichever client uploaded the object, are invisible in an IAM review, and can make a single object public inside an otherwise private bucket. Uniform bucket-level access turns the ACLs off so that IAM is the only thing that decides.
Observation
The collector lists the buckets in each project and reads
iamConfiguration.uniformBucketLevelAccess.enabled from each. The
assertion holds when every value is true. Buckets created by other Google
services on the project’s behalf are in scope.
Remediation
gcloud storage buckets update gs://<bucket> --uniform-bucket-level-access
Any object-level ACL that was granting access is dropped when the setting is enabled; grant the equivalent through an IAM binding first. The setting can be reverted for ninety days and becomes permanent after that, which is the intended end state.