Repository navigation
tentacle: rgw/s3: don't require sse-c headers to complete a multipart upload - #71842
Conversation
…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]> (cherry picked from commit 079205f)
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]> (cherry picked from commit d1434df) Conflicts: src/test/rgw/s3-tests/s3tests/functional/test_s3.py In test_multipart_sse_c_get_part, tentacle does not assign the result of complete_multipart_upload() to a variable (main has `res = ...`). Kept the tentacle form and applied the intended change of dropping the **get_args sse-c key headers from the call.
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #71842 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| a087b96 rgw: only require sse-c headers to complete a checksummed multipart upload | PR #71241 | 079205f rgw: only require sse-c headers to complete a checksummed multipart upload |
| c5bfaa5 s3tests: complete sse-c multipart uploads without the key headers | d1434df s3tests: complete sse-c multipart uploads without the key headers |
Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations
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 c5bfaa5 (cherry-pick of d1434df)
Affected File(s)
src/test/rgw/s3-tests/s3tests/functional/test_s3.py
Range Diff
Click to expand
--- Original (d1434df0)
+++ Backport (c5bfaa52)
@@ -7,3 +7,12 @@
complete.
Signed-off-by: Matthew N. Heler <[email protected]>
+(cherry picked from commit d1434df0464dc9b2ce605d9b41f8701ff7f146a8)
+
+Conflicts:
+ src/test/rgw/s3-tests/s3tests/functional/test_s3.py
+ In test_multipart_sse_c_get_part, tentacle does not assign the
+ result of complete_multipart_upload() to a variable (main has
+ `res = ...`). Kept the tentacle form and applied the intended
+ change of dropping the **get_args sse-c key headers from the
+ call.
================================================================================
RANGE DIFF
================================================================================
1: d1434df0464 ! 1: c5bfaa52ef1 s3tests: complete sse-c multipart uploads without the key headers
@@ Commit message
complete.
Signed-off-by: Matthew N. Heler <[email protected]>
+ (cherry picked from commit d1434df0464dc9b2ce605d9b41f8701ff7f146a8)
+
+ Conflicts:
+ src/test/rgw/s3-tests/s3tests/functional/test_s3.py
+ In test_multipart_sse_c_get_part, tentacle does not assign the
+ result of complete_multipart_upload() to a variable (main has
+ `res = ...`). Kept the tentacle form and applied the intended
+ change of dropping the **get_args sse-c key headers from the
+ call.
## src/test/rgw/s3-tests/s3tests/functional/test_s3.py ##
@@ src/test/rgw/s3-tests/s3tests/functional/test_s3.py: def test_multipart_sse_c_get_part():
assert status == 404
assert error_code == 'NoSuchKey'
-- res = client.complete_multipart_upload(Bucket=bucket_name, Key=key, UploadId=upload_id, MultipartUpload={'Parts': parts}, **get_args)
-+ res = client.complete_multipart_upload(Bucket=bucket_name, Key=key, UploadId=upload_id, MultipartUpload={'Parts': parts})
+- client.complete_multipart_upload(Bucket=bucket_name, Key=key, UploadId=upload_id, MultipartUpload={'Parts': parts}, **get_args)
++ client.complete_multipart_upload(Bucket=bucket_name, Key=key, UploadId=upload_id, MultipartUpload={'Parts': parts})
assert len(parts) == part_count
for part, size in zip(parts, part_sizes):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.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
/audit override |
|
✅ Audit Override Applied by @adamemerson. |
|
This PR has been added to tentacle integration testing by anuchaithra started 2026-09-22-04:07. |
PR testing completed and approved by @ivancich , more details in https://tracker.ceph.com/issues/80711. |
backport tracker: https://tracker.ceph.com/issues/80571
backport of #71241
parent tracker: https://tracker.ceph.com/issues/79606
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh