Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #1332 SignatureDoesNotMatch error when modifying an object on Cloudflare R2 #1333

Merged
merged 1 commit into from
Oct 20, 2023

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