Skip to content

use v4 auth with CloudFront#457

Open
nidi3 wants to merge 1 commit intos3tools:masterfrom
nidi3:master
Open

use v4 auth with CloudFront#457
nidi3 wants to merge 1 commit intos3tools:masterfrom
nidi3:master

Conversation

@nidi3
Copy link
Copy Markdown

@nidi3 nidi3 commented Jan 15, 2015

This is just a hack that works for me.
I don't know Python nor s2cmd good enough to assure that it is fully correct.

@mdomsch
Copy link
Copy Markdown
Contributor

mdomsch commented Dec 8, 2015

Thanks for the attempt. I agree this is a bug; I don't think this is quite the right fix though. I don't understand why we need to change sign_string_v4(). hard-coded region string clearly isn't right.

Comment thread S3/Crypto.py
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to avoid problems with header values that contain spaces

@nidi3
Copy link
Copy Markdown
Author

nidi3 commented Dec 9, 2015

Sorry for the poor quality of the pull request.
Surely, hardcoded region is wrong.
One issue with sign_string_v4() is header values with spaces. As to why I take lower case of the header keys, I cannot remember 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants