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 réponse
1
Réponse acceptée

Yes, encrypt with S3 managed keys.

profile pictureAWS
EXPERT
kentrad
répondu il y a un an
  • I killed 2 hours on this, thank you kind Sir, it worked.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions