Skip to content

umbrella: rgw/s3: support BlockedEncryptionTypes in bucket encryption configuration - #72635

Merged
batrick merged 3 commits into
ceph:umbrellafrom
mheler:wip-80981-umbrella
Nov 14, 2026
Merged

batrick merged 3 commits into
ceph:umbrellafrom
mheler:wip-80981-umbrella

Conversation

@mheler

@mheler mheler commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown

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.
Ignore this comment if docs are already updated. To make the "Check ceph config changes" CI check pass, please comment /config check ok and re-run the test.

github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added releng-audit-fail Release engineering: failed backport verification audit. needs-rebase labels Oct 13, 2026
@github-actions

Copy link
Copy Markdown

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)
@mheler
mheler force-pushed the wip-80981-umbrella branch from 2a43333 to 62ea4a6 Compare October 13, 2026 11:54
@mheler mheler removed the releng-audit-fail Release engineering: failed backport verification audit. label Oct 13, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

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)

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.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Oct 13, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@github-actions github-actions Bot added releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Oct 14, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

View workflow run

@anrao19

anrao19 commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-anrao12-testing-2026-11-11-0619-umbrella.

@anrao19

anrao19 commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

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
@mheler , if no further testing is needed then this pr can be merged

@batrick batrick modified the milestones: umbrella, v21.2.1 Nov 14, 2026
@batrick
batrick merged commit dbeba8b into ceph:umbrella Nov 14, 2026
22 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants