Unless I’m missing something obvious, I’m pretty sure I’m running into an R2 bug. I’m using a token with “Object Read & Write” permissions and get AccessDenied when using rclone to write an object to the bucket. I know I have the access id & secret key correct because as soon as I switch the token permissions to “Admin Read & Write” privileges, it starts working and rclone can now write new objects to the bucket. When I switch the token back, it stops working again.
What I’m doing is very simple:
sergey@ark ~> echo Hello World > myfile.txt
sergey@ark ~> rclone copyto myfile.txt r2:mcbuilds/myfile.txt
2023/08/28 21:58:52 ERROR : myfile.txt: Failed to copy: AccessDenied: Access Denied
status code: 403, request id: , host id:
2023/08/28 21:58:52 ERROR : Attempt 1/3 failed with 1 errors and: AccessDenied: Access Denied
status code: 403, request id: , host id: