summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_bucket_encryption.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* rgw/crypt - improve PutBucketEncryption / RGWBucketEncryptionConfigMarcus Watts2022-04-191-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* rgw: build without "using namespace std"Kefu Chai2021-08-131-8/+8
| | | | | | | | | | * add "std::" prefix in headers * add "using" declarations in .cc files. so we don't rely on "using namespace std" in one or more included headers. Signed-off-by: Kefu Chai <kchai@redhat.com>
* rgw: Introduce BucketEncryption APIs to support SSE-S3 featureRahul Dev Parashar2021-07-191-0/+130
This patch introduces support for 3 new BucketEncryption APIs which are listed below and are helpful in supporting AWS SSE-S3 encryption mode. PutBucketEncryption: https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketEncryption.html GetBucketEncryption: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketEncryption.html DeleteBucketEncryption: https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucketEncryption.html The user provided parameters are parsed and stored in the bucket's extended attributes RGW_ATTR_BUCKET_ENCRYPTION and RGW_ATTR_BUCKET_ENCRYPTION_SSE_S3_KEY_ID. Signed-off-by: Rahul Dev Parashar <rahul.dev@flipkart.com>