I’ve been using STORJ for some time on my site and I love it. However I recently made a few more buckets that I needed, and created a new S3 credential with the setting ‘same passphrase’. When I use the id and secret in my NodeJS server (using S3 API), it either gets an Unauthorized error or just doesn’t return any of my data.
I enabled all access to all buckets with no expiration date in the new S3 credentials. How should I be doing this? Thank you.
I believe I found the answer. It’s because I already had an access key associated with the buckets, and I had to switch over to that access key in the dashboard and create the bucket + new S3 credentials which on that access key. Was a tad confusing, thanks for the help.
You may have as much access grants (and related S3 credentials) as you want, but they should be created using the same encryption phrase, as used during upload of objects to be able to decrypt them in your application.
Please also note, that bucket will be available independently of used encryption phrase, but prefixes (“folders”) are part of the object name, so they encrypted together. With a different encryption phrase your objects cannot be decrypted and will be hidden, so the bucket will look like empty.