TECHNOLOGY

Bound a signed artifact URL around the full download

In this article
THE QUICK TAKE

Plan presigned retries around credential and policy expiry, preserve artifact identity during renewal, and distinguish ongoing transfer from a new request.

A large checkpoint download starts successfully, then its resumed request fails after a connection interruption. The original presigned URL’s authorization window may have ended. Amazon S3 checks expiration when a request begins; continuing an established transfer and starting a later retry are different events. Plan renewal around the complete preparation workflow instead of treating one successful connection as indefinite access.

Preserve the signed operation

Record the intended object identity, HTTP method and permitted request shape without placing the bearer URL in public logs. The signature authorizes a particular operation under its contract, not arbitrary changes to the object key or request. Keep a separate nonsecret artifact identity for diagnostics. Redacting only the host while retaining signed query parameters can still expose usable authorization material.

Inspect the effective lifetime

A configured URL expiry is not the only boundary. Temporary signing credentials can expire earlier, and revoked or deactivated credentials can also invalidate access. Bucket or access-point policy can impose additional signature-age restrictions. Preserve the applicable session and policy context rather than assuming a long requested duration overrides those constraints or that credential rotation automatically extends an already issued URL.

Distinguish transfer from retry

The S3 documentation explains that an already started download can continue beyond the expiry point, while restarting after that point fails. This does not promise that a broken transport can reconnect using expired authorization. Keep request start, interruption and new-attempt timestamps separately. A retry budget must include acquisition of fresh authorized access where the workflow supports it, not just repeated requests with the same expired token.

Keep revision identity during renewal

Renew access for the accepted artifact identity rather than silently switching to whatever is now current under the key. Preserve applicable version selection and integrity validation across attempts. A new URL repairs authorization only; it does not prove partial local bytes belong to the same object or satisfy the downloader’s range-consistency contract. Treat those checks as independent requirements before assembling or publishing the checkpoint.

Test bounded recovery

In an isolated client harness, exercise earlier credential expiry, policy rejection and interruption followed by a new request. Verify that the worker refreshes access through its authorized path or fails preparation clearly without leaking the URL. A useful result bounds authorization recovery for one artifact workflow. It does not guarantee download duration, remove network failures or authorize longer-lived credentials merely because a checkpoint transfer is large.

Primary references

Amazon S3 Presigned URL Lifetime.

AWS Temporary Credential Lifetime.

Amazon S3 GetObject State and Version Semantics.

Related reading: Init container downloads an artifact again: making preparation idempotent; AI service network traffic: accounting for egress before GPU placement.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles