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 Risposta
1
Risposta accettata

Yes, encrypt with S3 managed keys.

profile pictureAWS
ESPERTO
kentrad
con risposta un anno fa
  • I killed 2 hours on this, thank you kind Sir, it worked.

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande