]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: handle S3 version 2 pre-signed urls with meta-data 25899/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 18:24:33 +0000 (23:54 +0530)
commit480f0877d15520c045331ca591f91e0f6a36bbb5
tree8280010595ee34f4fa3e62cc68e5908470a555f2
parent5547f73db8102965b2ef730f8a7c2d7222d0faf8
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)
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