I want to access object storage in browser with key

https://app.ap-south-1.linodeobjects.com/test.json

since the bucket is private, I want to access object storage in browser with key
what is the url should look like?

2 Replies

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.

https://www.linode.com/marketplace/apps/nirvashare/nirvashare

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct