Enhancement #79738
closedrgw: support BlockedEncryptionTypes in bucket encryption configuration
0%
Description
AWS blocks SSE-C by default on new general purpose buckets. The switch is a new BlockedEncryptionTypes element in the bucket default encryption configuration (PutBucketEncryption / GetBucketEncryption), not a bucket policy. While SSE-C is blocked, any PutObject, CopyObject, PostObject, multipart upload, or replication request that specifies SSE-C is rejected with 403 AccessDenied. Existing SSE-C objects stay readable with the key headers.
RGW only parses SSEAlgorithm, KMSMasterKeyID and BucketKeyEnabled from the encryption configuration, so a client that sets BlockedEncryptionTypes gets a 200 and the setting is silently dropped. We should store it, return it from GetBucketEncryption, and reject SSE-C writes with 403 AccessDenied when SSE-C is blocked.
The default should stay allow: flipping the default like AWS did would break existing SSE-C users on upgrade.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/blocking-unblocking-s3-c-encryption-gpb.html
https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketEncryption.html
MH Updated by Matthew Heler 3 months ago
- Backport changed from tentacle, umbrella to umbrella, tentacle, squid
- Pull request ID set to 71247
MH Updated by Matthew Heler 3 months ago
- Status changed from New to Fix Under Review
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #80979: squid: rgw: support BlockedEncryptionTypes in bucket encryption configuration added
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #80980: tentacle: rgw: support BlockedEncryptionTypes in bucket encryption configuration added
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #80981: umbrella: rgw: support BlockedEncryptionTypes in bucket encryption configuration added
UB Updated by Upkeep Bot 2 months ago
- Status changed from Fix Under Review to Backporting
- Merge Commit set to 98b8a9c48c31327c0853e5ff2e2570ca2a0a75f6
- Fixed In set to v21.3.0-3696-g98b8a9c48c
- Upkeep Timestamp set to 2026-09-28T13:16:50+00:00