Cloud security Public object storage 3 min read
Is this S3 bucket public?
A developer adds a wildcard principal to a bucket policy to share one file. What else might that policy expose?
-
Policies and ACLs can grant access
S3 checks the policies and access controls that apply to the bucket and object. A public policy can let unauthenticated internet users read objects, or—more dangerously—write and delete them.
In short A broad bucket grant can expose more than the one file in mind.
-
Block Public Access acts as a guardrail
S3 Block Public Access can be applied at organization, account, access point, and bucket levels. The most restrictive effective settings prevent public policies or ACLs from granting access.
In short Keep public-access guardrails on for private storage.
What Block Public Access doesn’t do
It prevents public access grants; it does not fix overly broad access for authenticated roles or other AWS accounts. Review identity policies and resource policies as well.
Test changes against the application. A public-access block can break a workload that was relying on an unsafe public path.
Keep this
Treat public storage as a deliberate exception and verify the effective access path.
Keep Block Public Access enabled unless a verified use case needs public objects. For temporary sharing, prefer a short-lived presigned URL over making a whole bucket public.- Grant
- Bucket policies and ACLs can grant public access.
- Guardrail
- Account and bucket Block Public Access settings can block public grants.
- Verify
- Review effective access and test the intended consumer path.