-
Notifications
You must be signed in to change notification settings - Fork 94
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
Header parsing in AWS v4 should ignore spaces after commas [JIRA: RCS-214] #1166
Comments
@gdoteof Thanks for reporting. By reading the AWS S3 doc [1], it seems that the separator for these
Does your example with spaces after commas work well with AWS S3? [1] http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-auth-using-authorization-header.html |
@shino Yes I did see that as well, I think it's rather ambiguous; especially as they added line breaks for "readability!" Note here their python example does use a space: http://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html The library I found this with is https://github.com/brendanhay/amazonka -- and yes it does work with amazon s3 (this library hard codes the spaces in the header) |
@gdoteof Thanks for references. I was afraid the case AWS would add another space-separated token like P.S. I guess you know, v4 auth in riak cs is still half-baked. It does not verify content sha. please don't use it in production 😓 |
Will be fixed by #1235 which will be included in the next release 2.1.0. |
No release note needed as this is a GA feature. _[posted via JIRA by Kota Uenishi]_ |
not* _[posted via JIRA by Kota Uenishi]_ |
Riak_cs appears to be strict in it's parsing of the
Authorization
header.Header that looks for example like (NOTE SPACES BETWEEN FIELDS):
Will parse the AuthResult as (note space before
SignedHeaders
)And then the lookup will fail
here(ish):
riak_cs/src/riak_cs_s3_auth.erl
Line 198 in 03032ff
The text was updated successfully, but these errors were encountered: