]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/crypt - improve PutBucketEncryption / RGWBucketEncryptionConfig
authorMarcus Watts <mwatts@redhat.com>
Tue, 15 Feb 2022 01:16:42 +0000 (20:16 -0500)
committerMarcus Watts <mwatts@redhat.com>
Tue, 19 Apr 2022 21:35:40 +0000 (17:35 -0400)
commitbd9ff0f7b10b1271c0956e7d6ce6e834c3aa0049
tree8b3e7e8f3a2d975a636fbab3f6316e67c6f089ed
parent0dea74f5e6ddc5b13874bf5f294ad8cb3e3768b6
rgw/crypt - improve PutBucketEncryption / RGWBucketEncryptionConfig

The existing logic for bucket encryption was incomplete.  This adds the
rest of the changes necessary to support sse-kms with default bucket
encryption.

The new logic has these changes:

on input: SSEAlgorithm is now optional.

On output: emit xmlns attribute at top level.
also output
BucketKeyEnabled and KMSMasterKeyID.
Hnadle "empty rule" case.

for testing and diagnostics:
support RGWBucketEncryptionConfig in ceph-dencoder

Signed-off-by: Marcus Watts <mwatts@redhat.com>
src/rgw/rgw_bucket_encryption.cc
src/rgw/rgw_bucket_encryption.h
src/rgw/rgw_crypt.cc
src/rgw/rgw_dencoder.cc
src/rgw/rgw_json_enc.cc
src/rgw/rgw_rest_s3.cc
src/tools/ceph-dencoder/rgw_types.h
src/rgw/rgw_bucket_encryption.cc
src/rgw/rgw_bucket_encryption.h
src/rgw/rgw_dencoder.cc
src/rgw/rgw_rest_s3.cc
src/tools/ceph-dencoder/rgw_types.h