s5cmd icon indicating copy to clipboard operation
s5cmd copied to clipboard

s5cmd doesn't support aws signature version 4

Open adamcohenhillel opened this issue 3 years ago • 2 comments

Can not find a way to run s5cmd with sigv4 option of aws, which is enforced by many regions by now

https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html

go SDK https://docs.aws.amazon.com/sdk-for-go/api/aws/signer/v4/

adamcohenhillel avatar Jun 23 '22 11:06 adamcohenhillel

I see there is this file: https://github.com/peak/s5cmd/blob/master/vendor/github.com/aws/aws-sdk-go/aws/signer/v4/v4.go but is it used by default? if not, should I pass any flag to trigger it?

adamcohenhillel avatar Jun 23 '22 11:06 adamcohenhillel

s5cmd --log trace will write out the HTTP requests sent to s3 endpoint. You can see the signing details in Authorization header.

By looking at the trace logs, I can say that by default signature version 4 is used.

Authorization: AWS4-HMAC-SHA256 ......

ilkinulas avatar Jun 27 '22 15:06 ilkinulas