Serving images from s3 publicly in 2023

0

Amazon now disabled the ability to remove encryption to S3 buckets as I understand - ALL items uploaded to s3 buckets are now encrypted. Thus, serving them publicly in the simplest of use-cases - images for the website - became impossible. I tried ALL previous scenarious - made the bucket public, added policy for public access, made individual images public - nothing works, I get the following error:

<Error>
<Code>InvalidArgument</Code>
<Message>Requests specifying Server Side Encryption with AWS KMS managed keys require AWS Signature Version 4.</Message>
<ArgumentName>Authorization</ArgumentName>
<ArgumentValue>null</ArgumentValue>
<RequestId>3KHC8F0T2XFY13K7</RequestId>
<HostId>qNCSYKdwRLpg1JNuKr6L4vczLWekBk23KXfRf/qkYsWwbkrYxOI+BN4KyzbVqAFSpkOiSwrYUKRmY3bRbUOnUQ==</HostId>
</Error>

which basically means I have to sign the request with my credentials.

Is there ANY way in 2023 to serve the image files publicly WITHOUT the need to provide decryption credentials?

Thank you very much.

1 Answer
1
Accepted Answer

Yes, encrypt with S3 managed keys.

profile pictureAWS
EXPERT
kentrad
answered a year ago
  • I killed 2 hours on this, thank you kind Sir, it worked.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions