Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@PhilipNilsson7
Copy link
Contributor

s3cmd modify s3://myr2/photo.jpg

ERROR: Copy failed for: 's3://myr2/photo.jpg' (403 (SignatureDoesNotMatch): The request signature we calculated does not match the signature you provided. Check your secret access key and signing method. )

It happens because s3cmd is copying cf-ray header and using it for the signature.
A simple fix is to add cf-ray on the _sanitize_headers list.

@PhilipNilsson7 PhilipNilsson7 changed the title SignatureDoesNotMatch error when modifying an object on Cloudflare R2 fix #1332 SignatureDoesNotMatch error when modifying an object on Cloudflare R2 Jul 3, 2023
@fviard fviard added this to the 2.4.0 milestone Oct 20, 2023
@fviard fviard merged commit c859a29 into s3tools:master Oct 20, 2023
@fviard
Copy link
Contributor

fviard commented Oct 20, 2023

Merged, thank you very much for your contribution.

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.

2 participants