Is it possible to generate an S3 download URL without query parameters?

814 Views Asked by At

I am using an S3 instance provided by the Ceph Rados Gateway, not Amazon S3.

I can generate download urls like this:

http://<host>:<port>/<bucket>/<key>?AWSAccessKeyId=<access_key>&Signature=<signature>&Expires=<expires>

but certain clients, like iPXE don't seem to be able to handle downloading from an HTTP source that contains query parameters. I don't really care what the format of the url is, just so long as it can be downloaded by picky clients.

Is this even possible?

2

There are 2 best solutions below

0
Randy On BEST ANSWER

I ended up being able to make this work by using the iPXE imgfetch/initrd/module commands. They allow you to take whatever you have downloaded and rename the downloaded file to something that is capable of being saved.

Link: docs

1
iliul On

Maybe you need to set the object to public read permission, so that's it.