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

S3 pre-signed URL Canonical Request missing port number #883

Closed
JumpyKitten opened this issue Jul 29, 2015 · 2 comments
Closed

S3 pre-signed URL Canonical Request missing port number #883

JumpyKitten opened this issue Jul 29, 2015 · 2 comments

Comments

@JumpyKitten
Copy link

It appears when composing the Canonical Request for presigned URL, the Ruby SDK is missing the port number in the signed Host header:

In aws-sdk-core/signers/v4.rb:
def sign(req)
...
req.headers['Host'] = req.endpoint.host

Here, req.endpoint.host does not include port number even if it is specified. This is not a problem if default port is used, but for servers that doesn't use default port, this will cause SignatureDoesNotMatch.

@trevorrowe
Copy link
Member

Thank you for reporting this limitation. This should go out with the next release.

@JumpyKitten
Copy link
Author

That was quick. Thanks.

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

3 participants