]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: s3: awsv4 drop special handling for x-amz-credential 27666/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:29:14 +0000 (07:29 +0200)
commited086809f019db0250c11600d6e900adcd15ddc9
tree5641f1f83ba0a3e28027dbc5deba04ca172f95de
parent8ab5d82d5115b9cc63d28ef1dc3f9592c4853dc2
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