Logistics report images: storing thumbnails and signed reads in object storage with safe deletion
The article recommends keeping original report images and generated thumbnails under service-generated, immutable keys in a private bucket. Access is granted through short-lived presigned download URLs issued only after an authorization check against the tenant. The database row, not the storage bucket, is treated as the authority for ownership and retention. Deletion is handled as a multi-step process: mark the image as retiring, remove the object, verify the removal, then mark the row deleted, with idempotent retries and an audit trail. Sharp is used in a separate worker to create bounded WebP thumbnails, and retention rules are stored per object with lifecycle rules serving only as a backstop.
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