]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: s3: awsv4 drop special handling for x-amz-credential 27668/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Mon, 20 Aug 2018 15:45:04 +0000 (17:45 +0200)
committerNathan Cutler <ncutler@suse.com>
Thu, 18 Apr 2019 05:49:26 +0000 (07:49 +0200)
commit5a334aee0a54af3948a164cef1af2c21bfe25ad1
tree0c44077fe52f4f29537baaf1ee9ca88691d0faa2
parent70f96f1218173280d55def9b9e86a513812bf2b1
rgw: s3: awsv4 drop special handling for x-amz-credential

While s3 docs mention that every byte must be urlencoded, they are relaxed in
its implementation, when testing this behaviour on aws s3 itself, they seem to
be relaxed in handling aws credentials of the form

X-Amz-Credential=access1/20180817T123456Z/us-east-1...

wherein

X-Amz-Credential=access1%2F2018...

is expected. This allows for clients requesting the urls in both forms to
succeed as aws s3 does at the moment

Fixes: http://tracker.ceph.com/issues/26965
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 25e1d2a32074254e9ebd780f3a41b2ff6469370f)
src/rgw/rgw_auth_s3.cc