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

SignatureDoesNotMatch error when modifying an object on Cloudflare R2 #1332

Closed
PhilipNilsson7 opened this issue Jul 3, 2023 · 1 comment
Closed

Comments

@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
Copy link
Contributor Author

Pr #1333

@fviard fviard closed this as completed in c859a29 Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant