Skip to content

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

Merged
mheler merged 3 commits into
ceph:mainfrom
mheler:wip-rgw-block-encryption-types
Sep 28, 2026
Merged

mheler merged 3 commits into
ceph:mainfrom
mheler:wip-rgw-block-encryption-types

Conversation

@mheler

@mheler mheler commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Fixes: https://tracker.ceph.com/issues/79738

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@mheler
mheler requested review from a team as code owners August 23, 2026 01:28
@mheler
mheler force-pushed the wip-rgw-block-encryption-types branch 2 times, most recently from c3693bf to 01e006b Compare August 26, 2026 17:31
@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.

@cbodley cbodley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks great, but i'd like @yuvalif to ack the bucket logging bits

Comment thread PendingReleaseNotes Resolved
@anrao19

anrao19 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by anuchaithra started 2026-09-02-05:41.

@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

@mheler
mheler force-pushed the wip-rgw-block-encryption-types branch from ef58636 to abae90e Compare September 16, 2026 14:46
@mheler
mheler force-pushed the wip-rgw-block-encryption-types branch from abae90e to c89c3b0 Compare September 16, 2026 15:38
@anrao19

anrao19 commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by anuchaithra started 2026-09-18-10:20.

@ivancich

Copy link
Copy Markdown
Member

@ivancich ivancich removed the needs-qa label Sep 21, 2026
@mheler
mheler force-pushed the wip-rgw-block-encryption-types branch from c89c3b0 to 16a6e59 Compare September 21, 2026 20:22
@mheler

mheler commented Sep 21, 2026

Copy link
Copy Markdown
Contributor Author

There was a test_bucket_block_sse_c error on the QA run. See: https://qa-proxy.ceph.com/teuthology/anuchaithra-2026-09-18_12:34:38-rgw-wip-anuchaithra-testing-20260918.102038-main-distro-default-trial/567087/teuthology.log

This was part of this QA run: https://tracker.ceph.com/issues/80179

I'm removing the needs-qa label so this can be addressed.

@ivancich Apologies. That was the dbstore job, whose copy_object is a no-op stub. I moved the CopyObject case into its own test tagged fails_on_dbstore like the rest of the copy tests, which should resolve that failure.

@anrao19

anrao19 commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by anuchaithra started 2026-09-22-04:11.

@anrao19

anrao19 commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

This PR has been removed from main integration testing by anuchaithra started 2026-09-02-05:41.

@anrao19

anrao19 commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

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]>
@mheler
mheler force-pushed the wip-rgw-block-encryption-types branch from 895d8e8 to 056f444 Compare September 22, 2026 11:24
@mheler

mheler commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

This PR has been removed from main integration testing by anuchaithra started 2026-09-02-05:41.

@mheler , build creation failed, could you please check : https://shaman.ceph.com/builds/ceph/wip-anuchaithra-testing-20260922.041044-main/

@anrao19 Please rebase, and try the build again. Those build failures are unrelated to this PR.

@yuvalif

yuvalif commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

looks great, but i'd like @yuvalif to ack the bucket logging bits

LGTM from bucket logging perspective!

@anrao19

anrao19 commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

pr testing completed and approved by @ivancich , more details in https://tracker.ceph.com/issues/80713.
@mheler, if no further testing is needed then this pr can be merged.

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]>
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]>
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.

5 participants