Menu

Tenant-Safe Fintech Exports: Presigned Download URL 403s, Clock Skew, and Key Encoding
📰

Tenant-Safe Fintech Exports: Presigned Download URL 403s, Clock Skew, and Key Encoding

DEV Community: node·HoldenFox8476·20 days ago
#C1iMbifO
#devtonodejs#devto#dev#tenant#report
Long article (1397 words) — no AI summary yet.
Reading 0:00
15s threshold

Short answer: treat a 403 on a presigned download URL as a signature disagreement about the exact object-storage bytes and time used for signing, then trace those inputs before changing permissions.

That rule matters in a fintech system serving generated reports to authenticated customers. A link can be authorized for the right tenant and still fail because a proxy decoded %2F , a worker's clock is ahead, or the signer used a different object key than the uploader. The storage service is doing what it should: it verifies a precise request, not your intention.

The decision record: preserve these invariants

I start the design with four invariants. The authenticated request determines tenant_id ; that value selects a storage prefix, never a user-supplied path. The object key is stored as data and passed unchanged to the signer. The application signs and serves from UTC time.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.