Skip to content

rgw/s3: reject an empty x-amz-server-side-encryption header - #71073

Merged
anrao19 merged 2 commits into
ceph:mainfrom
mheler:wip-rgw-sse-header-fix
Sep 3, 2026
Merged

anrao19 merged 2 commits into
ceph:mainfrom
mheler:wip-rgw-sse-header-fix

Conversation

@mheler

@mheler mheler commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

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

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.

an empty value suppressed the bucket's default encryption but never
reached the algorithm checks, so the object was written unencrypted.
gate on the header's presence instead of a non-empty value, so an
empty value fails with InvalidArgument like any other bad algorithm.

Signed-off-by: Matthew N. Heler <[email protected]>
@mheler
mheler requested a review from a team as a code owner August 15, 2026 23:33
@github-actions github-actions Bot added the rgw label Aug 15, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

Would you be willing to add a reproducer/test to s3-tests, since we have it merged?

an empty value used to suppress the bucket's default encryption and
store the object unencrypted. expect InvalidArgument instead.

Signed-off-by: Matthew N. Heler <[email protected]>
@github-actions github-actions Bot added the tests label Aug 18, 2026
@mheler

mheler commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

Would you be willing to add a reproducer/test to s3-tests, since we have it merged?

@adamemerson Added!

@anrao19

anrao19 commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by anuchaithra started 2026-08-19-07:20.

@supriti

supriti commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

LGTM

@supriti supriti 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.

LGTM

@anrao19

anrao19 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to main integration testing by anuchaithra started 2026-08-19-07:20.

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

@anrao19
anrao19 merged commit 0d6e700 into ceph:main Sep 3, 2026
11 checks passed
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I have resolved the following tracker ticket due to the merge of this PR:

No backports are pending for the ticket. If this is incorrect, please update the tracker
ticket and reset to Pending Backport state.

Update Log: https://github.com/ceph/ceph/actions/runs/33751540788

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