Repository navigation
umbrella: rgw/s3: support BlockedEncryptionTypes in bucket encryption configuration - #72635
Conversation
Config Diff Tool Output+ added: rgw_s3_block_sse_c_by_default (rgw.yaml.in)
The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
Add support for BlockedEncryptionTypes in PutBucketEncryption and GetBucketEncryption. Blocking SSE-C rejects new SSE-C uploads with 403 AccessDenied. Objects already encrypted with SSE-C stay readable. Add rgw_s3_block_sse_c_by_default to block SSE-C on newly created buckets. Signed-off-by: Matthew N. Heler <[email protected]> (cherry picked from commit 96ed8b8) Conflicts: src/rgw/rgw_rest_s3.cc The umbrella branch now has the upstream refactor that moved the multipart SSE check out of RGWCompleteMultipart_ObjStore_S3:: get_params() into verify_encryption(), so the previous backport adaptation (the meta object attr lookup + rgw_s3_prepare_decrypt() in get_params()) is obsolete. Dropped that block, kept umbrella's get_params(), and placed the rgw_s3_check_sse_c_blocked() check in verify_encryption() as in the upstream commit. The resulting diff matches upstream.
Add tests to validate that BlockedEncryptionTypes keeps new SSE-C uploads out of a bucket while pre-existing objects stay readable. Cover rgw_s3_block_sse_c_by_default and its per-bucket override. Signed-off-by: Matthew N. Heler <[email protected]> (cherry picked from commit 0f6df8d)
Describe the BlockedEncryptionTypes element and how to block or allow sse-c uploads on a bucket. Document the option that applies this policy to all newly created buckets. Signed-off-by: Matthew N. Heler <[email protected]> (cherry picked from commit 66f329c)
2a43333 to
62ea4a6
Compare
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #72635 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| 1ea33ce rgw: support BlockedEncryptionTypes in bucket encryption config | PR #71247 | 96ed8b8 rgw: support BlockedEncryptionTypes in bucket encryption config |
| 22fa398 s3tests: add tests for blocking sse-c on a bucket | 0f6df8d s3tests: add tests for blocking sse-c on a bucket | |
| 62ea4a6 doc/rgw: document blocking sse-c uploads | 66f329c doc/rgw: document blocking sse-c uploads |
Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations
A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
This does not necessarily indicate an issue but a maintainer should review.
**Click to expand conflict summaries.**
Deviation in Backport 1ea33ce (cherry-pick of 96ed8b8)
Affected File(s)
src/rgw/rgw_bucket_logging.cc
Range Diff
Click to expand
--- Original (96ed8b8c)
+++ Backport (1ea33ce2)
@@ -8,3 +8,15 @@
buckets.
Signed-off-by: Matthew N. Heler <[email protected]>
+(cherry picked from commit 96ed8b8c7800dc68041d4f3fe444c4771f5077e7)
+
+Conflicts:
+ src/rgw/rgw_rest_s3.cc
+ The umbrella branch now has the upstream refactor that moved the
+ multipart SSE check out of RGWCompleteMultipart_ObjStore_S3::
+ get_params() into verify_encryption(), so the previous backport
+ adaptation (the meta object attr lookup + rgw_s3_prepare_decrypt()
+ in get_params()) is obsolete. Dropped that block, kept umbrella's
+ get_params(), and placed the rgw_s3_check_sse_c_blocked() check in
+ verify_encryption() as in the upstream commit. The resulting diff
+ matches upstream.
================================================================================
RANGE DIFF
================================================================================
1: 96ed8b8c780 ! 1: 1ea33ce286c rgw: support BlockedEncryptionTypes in bucket encryption config
@@ Commit message
buckets.
Signed-off-by: Matthew N. Heler <[email protected]>
+ (cherry picked from commit 96ed8b8c7800dc68041d4f3fe444c4771f5077e7)
+
+ Conflicts:
+ src/rgw/rgw_rest_s3.cc
+ The umbrella branch now has the upstream refactor that moved the
+ multipart SSE check out of RGWCompleteMultipart_ObjStore_S3::
+ get_params() into verify_encryption(), so the previous backport
+ adaptation (the meta object attr lookup + rgw_s3_prepare_decrypt()
+ in get_params()) is obsolete. Dropped that block, kept umbrella's
+ get_params(), and placed the rgw_s3_check_sse_c_blocked() check in
+ verify_encryption() as in the upstream commit. The resulting diff
+ matches upstream.
## PendingReleaseNotes ##
@@
@@ src/rgw/rgw_bucket_encryption.h: public:
## src/rgw/rgw_bucket_logging.cc ##
@@ src/rgw/rgw_bucket_logging.cc: int verify_target_bucket_policy(const DoutPrefixProvider* dpp,
- err_message);
+ return 0;
}
+/*How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
/audit override |
|
✅ Audit Override Applied by @adamemerson. |
|
This PR has been added to wip-anrao12-testing-2026-11-11-0619-umbrella. |
pr testing completed and approved by @ivancich more details on :https://tracker.ceph.com/issues/83031 |
backport tracker: https://tracker.ceph.com/issues/80981
backport of #71247
parent tracker: https://tracker.ceph.com/issues/79738
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh