Does it matter if it is set to string "false"
or actual boolean false
?
Thank you for your comment. We'll review and update the Knowledge Center article as needed.
When I try to apply this policy, I get an error stating that it grants a level of public access that conflicts with my "Block Public Access" settings. I have "Block all public access" set, but I also want to block access from insecure transports. How can I enforce HTTPS for restapi requests?
Thank you for your comment. We'll review and update the Knowledge Center article as needed.
For the second example, where we allow public access with GetObject
, to remain compliant with AWS Config s3-bucket-ssl-requests-only
rule, we have to also include the first example as the second statement, so deny anything that is not secureTransport
.
Hi Team,
For the "Deny" & "aws:SecureTransport":"true" example, under the actions section there is s3.* rather can we be more specific on what actions are actually required for this aws:SecureTransport to work?
Thank you for your comment. We'll review and update the Knowledge Center article as needed.
Does it matter if it is set to string "false" or actual boolean false?
yes, the bucket policy supports JSON so it should be a string i.e. "false"
You might have setup policy Action as "Allow" instead of Deny. Please re-check the policy and share it with us if you are still facing the same issue.
The second policy is not complying with ssl only requests. Instead the statement allows anonymous access to s3:GetObject for all objects in the bucket if the request uses HTTPS.
You have to deny all request to S3 i.e. s3:* if you want only ssl requests are made to S3 bucket.
Relevant content
- Accepted Answerasked 10 months ago
- asked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago