Private PDF exports: regional storage and signed URLs in a Next.js API
The article describes generating large tenant PDFs outside the download request and storing them privately in an approved US or EU region. A Next.js API route only issues a short-lived signed download URL after checking authorization and that the object exists. The author stresses that signed URLs are delivery credentials rather than an access control system, and that storage region should be set by tenant policy, not by the request. Key safeguards include no cross-region fallback, server-derived object keys, and private, no-store caching for responses carrying signed URLs. The piece also notes that this storage layer lacks versioning and object lock, so retention and concurrent writes need external handling.
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