summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_auth_s3.cc
diff options
context:
space:
mode:
authoryuliyang_yewu <yuliyang_yewu@cmss.chinamobile.com>2021-01-15 02:45:55 +0100
committeryuliyang_yewu <yuliyang_yewu@cmss.chinamobile.com>2021-01-15 02:45:55 +0100
commit51af56cee4ba4fc1a2f937c5c195d05cddfb40b7 (patch)
treebc647322f482bdb61e5043f8c3126dd37e15a42d /src/rgw/rgw_auth_s3.cc
parentrgw: fix sts get_session_token always failed because of wrong (diff)
downloadceph-51af56cee4ba4fc1a2f937c5c195d05cddfb40b7.tar.xz
ceph-51af56cee4ba4fc1a2f937c5c195d05cddfb40b7.zip
rgw: fix download object when use v2 presigned url generate by
sts fix https://tracker.ceph.com/issues/48885 Signed-off-by: yuliyang_yewu <yuliyang_yewu@cmss.chinamobile.com>
Diffstat (limited to 'src/rgw/rgw_auth_s3.cc')
-rw-r--r--src/rgw/rgw_auth_s3.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rgw/rgw_auth_s3.cc b/src/rgw/rgw_auth_s3.cc
index 3727c0c7ba3..62dd7e68d36 100644
--- a/src/rgw/rgw_auth_s3.cc
+++ b/src/rgw/rgw_auth_s3.cc
@@ -167,6 +167,9 @@ static inline void get_v2_qs_map(const req_info& info,
if (k.find("x-amz-meta-") == /* offset */ 0) {
rgw_add_amz_meta_header(qs_map, k, elt.second);
}
+ if (k == "x-amz-security-token") {
+ qs_map[k] = elt.second;
+ }
}
}