Project

General

Profile

Actions

Bug #73315

open

RGW Cloud Transition is missing x-amz-content-sha256 header during PUT requests

Added by Matthew Heler 6 months ago. Updated 5 months ago.

Status:
Pending Backport
Priority:
Normal
Assignee:
Target version:
-
% Done:

0%

Source:
Backport:
squid tentacle
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
backport_processed
Fixed In:
v20.3.0-3514-g5caea33c38
Released In:
Upkeep Timestamp:
2025-10-10T17:47:39+00:00

Description

When using Cloud Transition with Backblaze B2's S3 offering, the logs show the following errors when lifecycle executes to transition an object to the provider.

debug 2025-09-29T16:39:10.458+0000 7f7b29f82640 20 lifecycle: ERROR: orule.process() returned ret=-22 thread=wp_thrd: 0, 2 bucket=rgw-test-a18bb949-efe7-4c54-9896-da2c7a1fae04
debug 2025-09-29T16:39:10.774+0000 7f7b29f82640 0 lifecycle: ERROR: fail to complete request, ret = -22
debug 2025-09-29T16:39:10.774+0000 7f7b29f82640 0 lifecycle: ERROR: failed to transition object ret=-22
debug 2025-09-29T16:39:10.774+0000 7f7b29f82640 0 lifecycle: ERROR: failed to transfer object(rgw-test-put-000051.dat) to the cloud endpoint(https://s3.us-east-005.backblazeb2.com) ret=-22
debug 2025-09-29T16:39:10.774+0000 7f7b29f82640 0 lifecycle: ERROR: failed to transition obj(key:rgw-test-put-000051.dat) to cloud (r=-22)
debug 2025-09-29T16:39:10.774+0000 7f7b29f82640 0 lifecycle: ERROR: remove_expired_obj :rgw-test-a18bb949-efe7-4c54-9896-da2c7a1fae04[b786ab23-d551-4fca-bf7b-f0d5134e6677.1557690.1]):rgw-test-put-000051.dat (22) Invalid argument wp_thrd: 0, 2

A bpftrace of the rgw daemon shows me the following header is missing as part of the signature

<Error>
<Code>InvalidRequest</Code>
<Message>header 'x-amz-content-sha256' must be included in signature</Message>
</Error>

From the S3 specs this header seems to be required, but also optional under certain conditions.
https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-header-based-auth.html


Related issues 2 (2 open0 closed)

Copied to rgw - Backport #73495: squid: RGW Cloud Transition is missing x-amz-content-sha256 header during PUT requestsNewActions
Copied to rgw - Backport #73496: tentacle: RGW Cloud Transition is missing x-amz-content-sha256 header during PUT requestsFix Under ReviewActions
Actions #1

Updated by Matthew Heler 6 months ago

  • Pull request ID set to 65723
Actions #2

Updated by Casey Bodley 6 months ago

  • Status changed from New to Fix Under Review
  • Assignee set to Matthew Heler
  • Backport set to squid tentacle
Actions #3

Updated by Upkeep Bot 5 months ago

  • Status changed from Fix Under Review to Pending Backport
  • Merge Commit set to 5caea33c38502431d608842ae6b2dc8bf251d5a8
  • Fixed In set to v20.3.0-3514-g5caea33c38
  • Upkeep Timestamp set to 2025-10-10T17:47:39+00:00
Actions #4

Updated by Upkeep Bot 5 months ago

  • Copied to Backport #73495: squid: RGW Cloud Transition is missing x-amz-content-sha256 header during PUT requests added
Actions #5

Updated by Upkeep Bot 5 months ago

  • Copied to Backport #73496: tentacle: RGW Cloud Transition is missing x-amz-content-sha256 header during PUT requests added
Actions #6

Updated by Upkeep Bot 5 months ago

  • Tags (freeform) set to backport_processed
Actions

Also available in: Atom PDF