I want to access object storage in browser with key
since the bucket is private, I want to access object storage in browser with key
what is the url should look like?
You need to use “signed URLs” which include the relevant key and protection encoded in the URL. When you generate the URL, you can optionally include an expiration timestamp so it is only valid for a given period of time.
Most S3 client SDKs include support for generating a signed URL.
You can also use the s3cmd utility with the “signurl” sub-command:
s3cmd signurl s3://your-bucket-name/path/to/your/file.ext 12345678
12345678 should be the unix epoch (timestamp) the link should be valid until. There are many online tools that allow you to create this timestamp for a given date/time - such as epochconverter.com.
Example for your file:
s3cmd signurl s3://app/test.json 1640995199
The generated link from this command would be valid until December 31st, 2021 at 23:59:59
For better security, access, and sharing files, you can also check the app NirvaShare in the marketplace.