]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/sse-s3: +get_encryption_defaults, use new crypt_attribute_map
authorMarcus Watts <mwatts@redhat.com>
Sat, 18 Dec 2021 04:16:09 +0000 (23:16 -0500)
committerMarcus Watts <mwatts@redhat.com>
Thu, 12 May 2022 07:33:45 +0000 (03:33 -0400)
commit508f60539de43c800e3629fc8aa2af8cf58d6e38
tree43e610e8e48e8835d5a8d5d24ffd67e44bf83d0e
parent0318a086f508ed7f9028d48e8b98e4b2f458a51f
rgw/sse-s3: +get_encryption_defaults, use new crypt_attribute_map

putobj and postobj: get_encryption_defaults
this fetches bucketencryption policy and resolves defaults.
also errors for various conflicts between parameters (& policy).
verify_permisions
fetch encryption attributes from crypt_attribute_map not x_meta_map
for postobj, x_meta_map only gets meta attributes, not sse.
if bucketencryption policy exists, it *may* be correct to
prepopulate this before bucket policy sees it.

map_qs_metadata
for putobj it now also copies sse attributes into crypt_attribute_map.

Signed-off-by: Marcus Watts <mwatts@redhat.com>
(cherry picked from commit 464fda8bcd2e3b605d94d68a9e530148846e9297)
src/rgw/rgw_op.cc
src/rgw/rgw_rest_s3.cc