From 316ada445ee8a74eb9f85749c0b0f0cfe2cc73f7 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Tue, 9 Oct 2018 17:42:48 -0700 Subject: [PATCH] rgw: blacklist x-amz-storage-class header Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_op.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_op.h b/src/rgw/rgw_op.h index 25e8d3041f6..5d6a73d14a1 100644 --- a/src/rgw/rgw_op.h +++ b/src/rgw/rgw_op.h @@ -1902,7 +1902,8 @@ static inline int rgw_get_request_metadata(CephContext* const cct, static const std::set blacklisted_headers = { "x-amz-server-side-encryption-customer-algorithm", "x-amz-server-side-encryption-customer-key", - "x-amz-server-side-encryption-customer-key-md5" + "x-amz-server-side-encryption-customer-key-md5", + "x-amz-storage-class" }; size_t valid_meta_count = 0;