Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Botocore does not make S3 Signed URLs with SigV4 #3

Closed
denist-huma opened this issue Oct 6, 2021 · 1 comment · Fixed by #4
Closed

Botocore does not make S3 Signed URLs with SigV4 #3

denist-huma opened this issue Oct 6, 2021 · 1 comment · Fixed by #4
Labels
bug Something isn't working

Comments

@denist-huma
Copy link
Owner

denist-huma commented Oct 6, 2021

Description

The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.

https://stackoverflow.com/questions/47686044/error-when-using-presigned-url-to-download-from-s3
https://stackoverflow.com/questions/26533245/the-authorization-mechanism-you-have-provided-is-not-supported-please-use-aws4

Steps to Reproduce

follow a pre-signed URL

Expected Behavior

Description of the expected behavior

Actual Behavior

Additional Information

Information regarding the environment where the issue occurred. This can include
information such as location, platform, origin, version or environment.

Any additional information, configuration or data that might be necessary or helpful to reproduce the issue and help in identification and resolution of the issue.

@denist-huma denist-huma added the bug Something isn't working label Oct 6, 2021
@denist-huma
Copy link
Owner Author

Have The request signature we calculated does not match the signature you provided. Check your key and signing method.
After fixing region pass with
docker run -p 8080:5000 -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY -e BUCKET=$BUCKET -e AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION flask-drive

Fixed using the last comment of boto/boto3#1644 (comment)
and info from boto/boto3#1644 (comment)

denist-huma added a commit that referenced this issue Oct 6, 2021
…Please use AWS4-HMAC-SHA256. #3

Signed-off-by: Denis Trofimov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant