]> 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)
committerAbhishek Lekshmanan <abhishek@suse.com>
Fri, 20 Oct 2017 14:42:00 +0000 (16:42 +0200)
commit46f09e3803ba3c4b463bfa6a2eeb40a0bd7cc0ef
treef966875b60c8cc4845bfd635ecd75b539de8d607
parentfefbc9fec47cc6858f74b7ea372d39efeb95c61f
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>
(cherry picked from commit f8c4be8a8943096217d89f7c5abd129fa2414b36)
src/rgw/rgw_crypt.cc