Node.js AI-Generated Images in Private Object Storage with Presigned Downloads A developer outlined a Node.js pattern for storing AI-generated images in private object storage, keeping the bucket private and routing every access decision through application code. The approach stores a tenant-scoped object key and deletion deadline in the database, then mints short-lived presigned download URLs only after verifying the requester's tenant and that the object has not passed its deletion deadline. The write-up includes a minimal TypeScript adapter and policy-check example, and warns that filename-only lookups can leak objects across tenants even when bucket permissions look correct. For Node.js, the practical way to store generated images in object storage is to keep the bucket private and make the application own every access decision. In a gaming system that must retain signed documents until an explicit deletion deadline, tenant isolation matters more than a convenient image URL. Short answer: use a private object-storage bucket, persist a tenant-scoped object key and deletion deadline in your database, and mint a short-lived presigned download URL only after the application authorizes the requester. Node.js should own the decision; object storage should hold the bytes. That division is the useful boundary. A URL is temporary permission, not identity. A database row is where the application can answer “which tenant owns this object?” and “may it still exist?” Start with an object key that cannot cross tenants by accident. For example, tenant/t-17/generation/g-902/result.png is more useful than a display filename. Keep the tenant ID, object key, content type, creation time, and deletion deadline in one application record. For signed documents, add the document status and the legal or product reason for the deadline. Do not make a bucket listing your authorization database. The upload path is backend-only in this design. The generation worker sends bytes to an object-store adapter, then the application records the result. A retry should target the same job-specific key. That makes a timeout boring: the worker can check the intended record and retry without creating a second object under a random name. Consider a match-support case. Tenant t-17 owns a generated screenshot and a signed parental-consent document; tenant t-18 owns a similar-looking pair. If the authorization query finds an object by filename alone, a support export or a presign request can cross that boundary even though every bucket permission looks correct. The safe lookup includes both tenant and object identity, checks the deletion deadline, and only then passes the stored key to the adapter. The same record also gives a cleanup worker a reason to delete the object. That is more work than storing a URL in a player profile, but it is the work that makes deletion explainable during an audit. Here is the smallest useful shape. The adapter hides provider-specific calls, while the policy check stays in application code. type ImageRecord = { tenantId: string; objectKey: string; contentType: string; deleteAfter: Date; }; type ObjectStore = { put input: { key: string; body: Uint8Array; contentType: string } : Promise