Skip to content

rgw/s3: don't require sse-c headers to complete a multipart upload - #71241

Merged
cbodley merged 2 commits into
ceph:mainfrom
mheler:wip-rgw-ssec-complete
Sep 16, 2026
Merged

cbodley merged 2 commits into
ceph:mainfrom
mheler:wip-rgw-ssec-complete

Conversation

@mheler

@mheler mheler commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

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

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 a review from a team as a code owner August 22, 2026 11:21
Comment thread src/rgw/rgw_rest_s3.cc Resolved
@mheler
mheler force-pushed the wip-rgw-ssec-complete branch from 287916e to 7801353 Compare August 28, 2026 17:26
@mheler
mheler requested a review from cbodley August 28, 2026 17:27
Comment thread src/rgw/rgw_rest_s3.cc Resolved
…pload

CompleteMultipartUpload rejected sse-c uploads with 400 InvalidArgument
unless the customer key headers were sent again. s3 only expects those
headers when the upload was created with a checksum algorithm, so
clients that follow the api don't send them.

Signed-off-by: Matthew N. Heler <[email protected]>
rgw no longer requires the sse-c key headers on completion. Drop the
assertion that completing without them fails, and stop sending them in
the get_part test. Completing with the wrong key still fails. Add a test
that a checksummed sse-c upload still requires the key headers to
complete.

Signed-off-by: Matthew N. Heler <[email protected]>
@mheler
mheler force-pushed the wip-rgw-ssec-complete branch from 7801353 to d1434df Compare September 2, 2026 23:28
@mheler
mheler requested a review from cbodley September 2, 2026 23:29

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

thanks, test coverage looks good

Comment thread src/rgw/rgw_rest_s3.cc
Comment on lines -4825 to -4832
// get encrypt headers to reflect from multipart upload
// mostly to verify sse-c here
std::unique_ptr<rgw::sal::MultipartUpload> upload =
s->bucket->get_multipart_upload(s->object->get_name(),
upload_id);
std::unique_ptr<rgw::sal::Object> obj = upload->get_meta_obj();
obj->set_in_extra_data(true);
int res = obj->get_obj_attrs(s->yield, this);

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.

+1 to eliminating this duplicated read op

@anrao19

anrao19 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

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

@anrao19

anrao19 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

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

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

@anrao19

anrao19 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check

@cbodley

cbodley commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

The following tests FAILED:
242 - unittest_backend_basics (SEGFAULT)

reported in https://tracker.ceph.com/issues/80565

@cbodley

cbodley commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

jenkins test make check

@cbodley
cbodley merged commit be4927e into ceph:main Sep 16, 2026
10 checks passed
@mheler
mheler deleted the wip-rgw-ssec-complete branch September 16, 2026 14:58
aainscow pushed a commit to aainscow/ceph that referenced this pull request Sep 18, 2026
rgw/s3: don't require sse-c headers to complete a multipart upload

Reviewed-by: Casey Bodley <[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.

4 participants