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 Resposta
1
Resposta aceita

Yes, encrypt with S3 managed keys.

profile pictureAWS
ESPECIALISTA
kentrad
respondido há um ano
  • I killed 2 hours on this, thank you kind Sir, it worked.

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas