Description
IgnorePublicAcls tells S3 to ignore public ACL grants on a bucket and its objects. It leaves stored ACLs intact. New buckets disable ACLs by default. For existing buckets, check whether ACLs are enabled and whether account settings already suppress public grants.
Potential impact
A public grant can expose object contents or listings. If it remains in an ACL, relaxing the block can restore access.
Remediation
Set IgnorePublicAcls: true in PublicAccessBlockConfiguration. Set BlockPublicAcls: true to reject new public ACLs, remove existing public grants and put required permissions in policies. For private buckets, also check the policy blocking options.
Examples
Before
Resources:
Bucket13:
Type: AWS::S3::Bucket
Properties:
PublicAccessBlockConfiguration:
BlockPublicAcls: false
BlockPublicPolicy: true
IgnorePublicAcls: false
RestrictPublicBuckets: true
After
Resources:
Bucket13:
Type: AWS::S3::Bucket
Properties:
PublicAccessBlockConfiguration:
BlockPublicAcls: true
BlockPublicPolicy: true
IgnorePublicAcls: true
RestrictPublicBuckets: true
The first template leaves both ACL protections off at bucket level. The second ignores existing public ACL grants and rejects new public ACLs.