]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: handle S3 version 2 pre-signed urls with meta-data 25901/head
authorMatt Benjamin <mbenjamin@redhat.com>
Fri, 19 Oct 2018 19:59:29 +0000 (15:59 -0400)
committerAshish Singh <assingh@redhat.com>
Thu, 10 Jan 2019 20:34:45 +0000 (02:04 +0530)
commit966c6dce171dfbe1998e66f87797db4f04454108
treebad5bd46316c034117cbf0fcbdf570e483a63992
parentdd7d957a51fc0ac8b16e66f8baaba9339f2bda78
rgw: handle S3 version 2 pre-signed urls with meta-data

Add CanonicalizedAmzHeaders to the v2 signing document, as required
in https://docs.aws.amazon.com/AmazonS3/latest/dev/RESTAuthentication.html

Also lift qs metadata into x_meta_map in RGWPutObj_ObjStore_S3::get_parms(),
so they are applied to the stored object.

Fixes: https://tracker.ceph.com/issues/23470
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 3b0480ed136cebd3fba2322a77c7d047ef6ad5e3)

Conflicts:
src/rgw/rgw_rest_client.cc
   - Used 'method()' instead of 'method.c_str()' and
     'new_url.c_str()' instead of 'url.c_str()'
src/rgw/rgw_auth_s3.cc
src/rgw/rgw_auth_s3.h
src/rgw/rgw_common.cc
src/rgw/rgw_common.h
src/rgw/rgw_loadgen.cc
src/rgw/rgw_rest_client.cc
src/rgw/rgw_rest_s3.cc