]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: encryption fix the issue when not provide encryption mode
authorEnming Zhang <enming.zhang@umcloud.com>
Fri, 25 Aug 2017 11:48:53 +0000 (19:48 +0800)
committerEnming Zhang <enming.zhang@umcloud.com>
Thu, 5 Oct 2017 13:22:53 +0000 (21:22 +0800)
commitf8c4be8a8943096217d89f7c5abd129fa2414b36
tree3a684cb66d272802a4ceda44e224eebcb8623d9d
parent3f16785daf4b3609f2bff7c107a35f908103e32a
rgw: encryption fix the issue when not provide encryption mode

Now, in RGW, if someone want to upload an object using server-side
encryption with providing customer key or kms key id, but not
specify the encryption mode in the
"x-amz-server-side-encryption-customer-algorithm" or
"x-amz-server-side-encryption", the object will be uploaded
successfully without encryption.

This is not a correct way to deal with it. It is better to
return error.

Fixes: http://tracker.ceph.com/issues/21581
Signed-off-by: Enming Zhang <enming.zhang@umcloud.com>
src/rgw/rgw_crypt.cc