Presigned URL
Object storage is private by default, so reaching a file needs authorisation. A presigned URL solves this by encoding a signed, expiring permission directly into a link. The storage service generates it using the account key, and anyone holding the link can read or upload that one object until the link expires, usually within minutes or hours. No long-lived credentials ever leave the server.
This pattern is everywhere in media apps because it is both secure and simple. A backend signs a URL for one clip, hands it to the client, and the client streams or uploads directly to storage without routing the bytes through the app server. Combined with multipart upload, presigned URLs let huge video files move straight between the editor and the storage layer.
Under the hood, the signature is a cryptographic hash (HMAC) of the request details, the HTTP method, the object key, an expiry time, and sometimes headers like content type, computed with the secret account key. The storage service recomputes that hash when the link is used and only serves the request if it matches and the clock has not passed the expiry. Because the secret never travels, the link cannot be forged, and it is scoped tightly: a URL signed for GET on one object cannot be reused to upload, delete, or reach a different file.
The expiry is the main safety feature and the main limit. A short lifetime means a leaked link stops working quickly, which keeps the blast radius small, but a presigned URL generally cannot be revoked before it expires, so lifetimes are kept short, minutes for actions, up to a few hours for a streaming session. A system typically signs a fresh URL whenever one is needed rather than storing long-lived links, which is how a video app can expose exactly one clip to one client for exactly as long as the task takes.
How long is a presigned URL valid
The lifetime is set when the URL is generated, and it has two ceilings: the expiration you choose, and the life of the credentials that signed it, whichever ends first. On S3 compatible storage, seven days is the maximum with long term credentials; URLs signed with temporary session credentials die with the session. Best practice is to keep lifetimes short, minutes to an hour, long enough for the transfer to complete, and to generate a fresh URL per request rather than reusing one.
Examples
- •A backend signs a 50-minute URL so a client can upload one clip
- •A presigned link lets an NLE stream a single original without account keys
- •A download link expires after an hour, limiting exposure if shared
In Sanbila
Sanbila moves your media with short-lived, scoped secure links: your machine uploads originals to and streams them from cloud storage directly, without your storage credentials ever touching the desktop app.
Frequently asked questions
How long does a presigned URL last?+
Whatever was set at generation, up to the ceilings: seven days on S3 compatible storage with long term credentials, and no longer than the signing credentials themselves live. Most systems issue short ones, minutes to an hour, and simply mint a new URL whenever a client needs the file again.
Is a presigned URL safe to share?+
It is safe in the sense that it exposes no account credentials and reaches only the one object it was signed for, but anyone who holds the link can use it until it expires, so treat it like a temporary password. Its safety comes from a short lifetime: a link that lives for minutes limits the damage if it leaks. For anything sensitive, keep the expiry short and sign a new link when needed rather than reusing one.
Can a presigned URL be revoked before it expires?+
Generally no. The link is valid until its built-in expiry time, and there is no simple per-link off switch; the usual mitigations are to use short lifetimes or, in an emergency, rotate the underlying access key, which invalidates every link signed with it. That is why systems sign short-lived URLs on demand instead of handing out long-lived ones.
Does Sanbila expose my storage credentials?+
No. The desktop app never holds your storage account credentials. Sanbila's backend hands your machine short-lived, scoped secure links that let it upload originals to, and stream them from, cloud storage directly; each link reaches one object and expires quickly, so the bytes move straight between your machine and storage while the keys stay on the server.
Related terms
See also
Sources
- Using presigned URLs in Amazon S3 · Amazon Web Services
- Share an object with a presigned URL · AWS