Private B2B report storage: browser uploads, Postgres-controlled access, signed URLs
The approach sends each generated report straight from the browser to private object storage, while Postgres holds ownership, revision status, and deletion timing. Each revision gets a fresh object key, and deletion is handled as a database state change instead of scanning the bucket. The application issues a short-lived signed upload URL, and downloads are authorized by querying the tenant's ready record before requesting a signed read URL for that exact key. The author recommends a single-API-key storage service for this flow, but notes limits: browser uploads need bucket CORS setup, which isn't self-service, and public links aren't supported, so it suits private reports only.
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