Repository navigation
rgw/s3: don't require sse-c headers to complete a multipart upload - #71241
Conversation
287916e to
7801353
Compare
…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]>
7801353 to
d1434df
Compare
cbodley
left a comment
There was a problem hiding this comment.
thanks, test coverage looks good
| // 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); |
There was a problem hiding this comment.
+1 to eliminating this duplicated read op
|
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. |
|
jenkins test make check |
reported in https://tracker.ceph.com/issues/80565 |
|
jenkins test make check |
rgw/s3: don't require sse-c headers to complete a multipart upload Reviewed-by: Casey Bodley <[email protected]>
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.