I am having trouble understanding how access to Storj buckets works. I’ve created a bucket with the browser and made an access grant with full permissions to the bucket. I generated s3 creds and uploaded many files to the bucket with the s3 creds (using a Linux backup tool called
restic). But I cannot delete any files from the bucket.
So, assuming I accidentally disallowed deletes, I’ve created a new access grant with full permissions and associated that access grant with
uplink like so:
uplink share --readonly=false sj://<bucketname> uplink import <paste in access grant from previous command>
But when I try to
ls the bucket with the new access grant creds, the bucket appears to be empty. When I
ls the bucket using the first access grant creds, it shows many files but
rm just says:
Error: uplink: permission denied (metainfo error: Unauthorized API credentials)
Can files created with one access grant not be deleted by another access grant? If so, how can I delete these files if the access grant that created them does not have delete permissions?
I think I have some kind of fundamental misunderstanding about access grants and Storj.