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

Need support for AWS Signature V4 #31

Open
athomason opened this issue Jan 20, 2015 · 0 comments
Open

Need support for AWS Signature V4 #31

athomason opened this issue Jan 20, 2015 · 0 comments

Comments

@athomason
Copy link
Contributor

New AWS regions will no longer support the V2 signature protocol that is currently targeted by the library. So far this includes Beijing and Frankfurt for S3. This is the error currently being returned from those regions:

<Error><Code>InvalidRequest</Code><Message>The 
authorization mechanism you have provided is not supported. Please use 
AWS4-HMAC-SHA256.</Message>

To fix this, Signature Version 4 should be supported as well. All existing AWS regions support V4, but third-party implementations might not, so this should probably be optional, defaulting to the V2 behavior. Other libraries have done this by either hardcoding a mapping of region to desired version, or by falling back to V2 if V4 fails.

The change is unfortunately more complicated than just switching from SHA1 to SHA256 since the V4 signature requires the region name to be included. An API change will therefore be necessary to pass this value. #13 may be necessary/useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant