Uniform bucket-level access is disabled

Migrate required ACL permissions before consolidating Cloud Storage access in IAM.

Description

With uniform bucket-level access off, Cloud Storage authorizes requests through both IAM and bucket or object ACLs. Turning it on disables ACLs. Public IAM grants can still apply.

Potential impact

An object ACL can keep a file readable after an IAM change. Turning off ACLs before migrating a required grant can interrupt an application.

Remediation

Identify access that depends on ACLs and establish equivalent least-privilege IAM grants first. Set iamConfiguration.uniformBucketLevelAccess.enabled to true and test the required access. After 90 consecutive days, you cannot disable the feature. Review public IAM grants and use public access prevention for private buckets.

Examples

These are legacy Deployment Manager excerpts. Standard support has ended. Supply the actual bucket name, location and other required settings, and plan migration to a supported tool.

Before

yaml
resources:
  - name: bucket
    type: storage.v1.bucket
    properties:
      iamConfiguration:
        uniformBucketLevelAccess:
          enabled: false

false leaves both ACLs and IAM in use. Inspect both to determine who can access the bucket and its objects.

After

yaml
resources:
  - name: bucket
    type: storage.v1.bucket
    properties:
      iamConfiguration:
        uniformBucketLevelAccess:
          enabled: true

true makes IAM the source of access permissions. Verify that applications can still reach the objects they need.

References