on this page

GlossaryWhat is a presigned URL?

What is a presigned URL?

A presigned URL is a link to one object in object storage that carries its own signature and expiry time in the query string. Whoever holds it can perform one specific action, such as downloading or uploading that object, with no account and no credentials, until it expires.


How it works

Someone who does have credentials signs the request ahead of time. With S3-compatible storage the signature uses AWS Signature Version 4 and covers the HTTP method, the bucket and key, the expiry and a timestamp, and it goes into the URL as X-Amz-* query parameters. When the link is used, the storage service recomputes the signature with the same secret key. If the method, path or expiry has been changed, or the time has passed, the request is refused.

The common uses are handing someone a private file for a limited time, and letting a client upload straight to storage without the bytes passing through your server. In the upload case your server checks who is asking, mints a short-lived PUT URL for one key, and the client sends the file to that URL. Keep the expiry short. A presigned URL works for anyone who has it until it expires, so a leaked one stays usable for that long.


Presigned URLs on Tissue Cloud

g7 buckets support presigned URLs two ways. Any S3 client can presign against https://g7.tissue.systems with a bucket's own credentials, for example aws s3 presign or boto3's generate_presigned_url. The management API also mints one for a single object with POST /v1/buckets/:bucket/presign: a PUT unless you ask for another method, valid for 15 minutes unless you ask for a different expiry, up to 24 hours. Download links are served from g7.tissue.dev, the domain Cells use, so an uploaded file never runs as a page on tissue.systems; upload links work on g7.tissue.systems as signed. The g7 binding inside a Cell has no presign method, because a Cell can read and write the bucket directly.

g7 buckets and g7 S3 API have the details and examples.