Hello group,

having problem with pre-signed URLs on B2.

Setup:

- application key with read access to the bucket and `listAllBucketNames` 
enabled
- private bucket
- file in that bucket
        - visible with `s3cmd ls s3://bucket-name/`
        - downloadable with `s3cmd get s3://bucket-name/file-name`
- no special characters in bucket-name nor file-name. Just plain alphanumeric 
ASCII

Now I try to get that file with a pre-signed URL:

$ s3cmd signurl s3://bucket-name/file-name `gdate -d 'now + 1 year' +%s`
https://bucket-name.s3.us-west-001.backblazeb2.com/file-name?AWSAccessKeyId=<correct-access-key-id-here>&Expires=1757021192&Signature=aJtG2JFU3xrWIMZlD%2F0wwWYhTIs%3D

But trying to use this URL returns always

<Error>
<Code>UnauthorizedAccess</Code>
<Message>bucket is not authorized: bucket-name</Message>
</Error>

Any clues as to what I might be doing wrong?

-- 
SD!

_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general

Reply via email to