Project

General

Profile

Actions

Enhancement #79738

closed
MH MH

rgw: support BlockedEncryptionTypes in bucket encryption configuration

Enhancement #79738: rgw: support BlockedEncryptionTypes in bucket encryption configuration

Added by Matthew Heler 3 months ago. Updated 2 months ago.

Status:
Backporting
Priority:
Normal
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
umbrella, tentacle, squid
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-3696-g98b8a9c48c
Released In:
Upkeep Timestamp:
2026-09-28T13:16:50+00:00

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


Related issues 3 (1 open — 2 closed)

Copied to rgw - Backport #80979: squid: rgw: support BlockedEncryptionTypes in bucket encryption configurationResolvedMatthew Heler

Actions
Copied to rgw - Backport #80980: tentacle: rgw: support BlockedEncryptionTypes in bucket encryption configurationFix Under ReviewMatthew Heler

Actions
Copied to rgw - Backport #80981: umbrella: rgw: support BlockedEncryptionTypes in bucket encryption configurationResolvedMatthew Heler

Actions

MH Updated by Matthew Heler 3 months ago Actions #1

  • Backport changed from tentacle, umbrella to umbrella, tentacle, squid
  • Pull request ID set to 71247

MH Updated by Matthew Heler 3 months ago Actions #2

  • Status changed from New to Fix Under Review

UB Updated by Upkeep Bot 2 months ago Actions #3

  • Copied to Backport #80979: squid: rgw: support BlockedEncryptionTypes in bucket encryption configuration added

UB Updated by Upkeep Bot 2 months ago Actions #4

  • Copied to Backport #80980: tentacle: rgw: support BlockedEncryptionTypes in bucket encryption configuration added

UB Updated by Upkeep Bot 2 months ago Actions #5

  • Copied to Backport #80981: umbrella: rgw: support BlockedEncryptionTypes in bucket encryption configuration added

UB Updated by Upkeep Bot 2 months ago Actions #6

  • 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
Actions

Also available in: PDF Atom