Cheapest Compatible Object Storage for US/EU App Data Backups
Short answer: use private object storage with a standard API, keep backup objects under tenant-scoped keys, retain the original receipt, and issue short-lived signed download links only after an authorization check. The cheapest-looking bucket is not the cheapest recovery path if one tenant can read another tenant's archive or a restore cannot be verified. I care about this because backup jobs…
To achieve the cheapest object storage solution for application data backups in the US and EU regions, follow these guidelines: use a private object storage system with standard APIs, keep backup objects under tenant-scoped keys, retain the original receipt, and issue short-lived signed download links after an authorization check. The cheapest-looking bucket is not necessarily the most cost-effective option if there's a risk of unauthorized access to another tenant's archive or an unreliable restore process.
Maintain tenant isolation by storing essential information such as the tenant ID, application-owned object ID, original filename as metadata, content digest, storage region, and retention deadline for each backup or receipt. The object key should be deterministic yet not reveal any business information. The server must verify the caller's tenant membership against the database record before signing a download link.
Select the appropriate data region explicitly and record that choice with the backup row. Avoid allowing clients to choose their own bucket or prefix. Ensure that the backend creates the pending record and the signed upload target. When processing nightly jobs, verify that the audit record is present to prevent missing jobs, duplicate deliveries, or pointing at the wrong tenant.
Treat the original receipt as a separate entity with its own lifecycle. Regenerate any processed images, OCR results, or normalized accounting rows as needed; the original may serve as evidence for auditors. Define retention policies based on object records rather than hidden assumptions in the UI. Document the reasons for object deletion eligibility during the state machine transition from pending to stored.
Periodically remove abandoned pending records using an idempotent reaper, as the scheduler might deliver the same task multiple times. Implement signed download links to protect tenant isolation during restores. The download endpoint should accept an application object ID rather than an arbitrary storage key, and the handler should validate tenant membership and receipt-level permissions before retrieving a signed GET target from the storage layer.
Set an appropriate expiration duration for the signed URL, balancing security and usability based on the specific threat model and operational tests.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to