Private Tenant File Downloads via Short-Lived Presigned S3 URLs in Node.js
The article explains how to let tenants download private backup files by having the backend verify authorization for the selected object and then issue a short-lived presigned URL. It recommends resolving a snapshot identifier to a bucket and key on the server rather than letting the browser choose storage paths, with a tenant-and-snapshot metadata record tying authorization, selection, and object identity together. The author compares a direct S3-compatible client approach with a small storage gateway, favoring the gateway when several services share one storage boundary. It also notes that immutable keys, rather than reused filenames, are needed for historical recovery, and that AWS S3, Cloudflare R2, and MinIO differ mainly in surrounding ecosystem and operational responsibility.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in