Skip to content

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

Merged
batrick merged 2 commits into
ceph:tentaclefrom
mheler:wip-80571-tentacle
Sep 30, 2026
Merged

batrick merged 2 commits into
ceph:tentaclefrom
mheler:wip-80571-tentacle

Conversation

@mheler

@mheler mheler commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

…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.
@mheler
mheler requested a review from a team as a code owner September 16, 2026 16:07
@mheler mheler added this to the tentacle milestone Sep 16, 2026
@mheler mheler added the rgw label Sep 16, 2026
@github-actions github-actions Bot added the tests label Sep 16, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

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)

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.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Sep 16, 2026
@adamemerson

Copy link
Copy Markdown
Contributor

/audit override

@github-actions github-actions Bot added releng-audit-override and removed releng-audit-fail Release engineering: failed backport verification audit. labels Sep 17, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @adamemerson.

View workflow run

@anrao19

anrao19 commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

@anrao19

anrao19 commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

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.
@mheler , if no further testing is needed then this pr can be merged

@batrick batrick modified the milestones: tentacle, v20.2.5 Sep 30, 2026
@batrick
batrick merged commit c059118 into ceph:tentacle Sep 30, 2026
24 of 25 checks passed
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