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

Skip to content

SignatureDoesNotMatch error when modifying an object on Cloudflare R2 #1332

@PhilipNilsson7

Description

@PhilipNilsson7

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions