S3 Security Defaults Changed. Have You Checked Your Older Buckets?
A new S3 bucket and a bucket created several years ago can sit in the same AWS account with different access settings. If your security review starts with a recently created bucket, it is worth checking what the older ones look like too.
In April 2023, Amazon S3 completed a rollout that enabled Block Public Access and disabled access control lists (ACLs) by default for newly created buckets. The announcement explicitly left existing buckets' settings unchanged. AWS announcement ยท Rollout details
For teams maintaining long-running environments, that creates a useful review task. Check whether older buckets still depend on access arrangements that your current deployment templates have moved away from.
1. Review the buckets your templates no longer describe
Start with an inventory across the AWS accounts you manage. Include buckets used for backups, exports, logs, and applications that have already been retired.
For each bucket, record its owner, purpose, current Block Public Access settings, Object Ownership setting, and any documented access exceptions. Compare those settings with your current infrastructure templates.
An older bucket may have a valid reason for its configuration. Give that reason an owner and a review date so the next person can understand it.
If you use the AWS CLI, these commands retrieve two useful parts of the bucket configuration:
aws s3api get-public-access-block \
--bucket YOUR_BUCKET_NAME
aws s3api get-bucket-ownership-controls \
--bucket YOUR_BUCKET_NAME
These results are a starting point. A full access review also needs to consider account-level controls and the relevant policies.
2. Check ACL dependencies before changing Object Ownership
With the Bucket owner enforced setting, ACLs are disabled and access is evaluated through policies. AWS recommends keeping ACLs disabled for most modern use cases. Existing workloads may still rely on ACL-based permissions, so review those dependencies before changing the setting. S3 Object Ownership documentation
Pay particular attention to applications that upload objects from another account and integrations that set an ACL during upload. Ask who writes the objects, who needs to read them, and how those permissions are currently granted.
AWS documents an approach using access logs and CloudTrail information to identify ACL-dependent requests and migrate their permissions to policies. Use that evidence alongside application testing when planning a change. AWS guide to identifying ACL dependencies
For a critical integration, rehearse both sides of the workflow. Confirm that the producer can upload an object and that the intended consumer can retrieve it.
3. Check historical objects separately from new uploads
Encryption has a different scope to the access-default changes. Since January 5, 2023, S3 has automatically applied server-side encryption to new object uploads. The automatic baseline uses S3-managed keys, while existing customer-configured default encryption settings continue to apply. That rollout did not retroactively encrypt previously stored, unencrypted objects. S3 default encryption FAQ
If a bucket contains years of retained data, inspect the encryption status of those objects as part of the review. Also confirm whether your internal requirements call for a particular encryption configuration or key.
For a large collection, S3 Inventory can help you examine object metadata without manually opening objects one at a time. If historical objects need changes, plan the operation around retention requirements, application access, and the permissions required to read the resulting objects.
One review task for this week
Choose one older bucket that supports an active application or recovery process. Confirm its owner, review its access settings, and test the application workflow in an approved environment before scheduling any configuration change.
Record what you found in the same place your team maintains the deployment configuration or runbook. That gives the next review a clear starting point and helps explain why the bucket is configured the way it is.
Have you found an older S3 bucket whose permissions differed from your current deployment templates? What made the dependency difficult to trace?
Author's note: I work in marketing at Advange and cover enterprise IT news for infrastructure and operations teams. I used AI assistance to research and draft this post.
Comments
No comments yet. Start the discussion.