INFINITE UPSIDE

Technology and operations

Why Did a Presigned Download Link Stop Working?

A download link can look permanent in an email while the permission inside it has a much shorter life.

A customer opens a file link on Monday and receives an error. The same link worked when it was sent on Friday. The file might still be sitting exactly where it was. What changed could be the permission carried by the link.

An Amazon S3 presigned URL is a time-limited link created using credentials that authorize a particular request. It lets someone use that request without receiving the creator’s underlying credentials. AWS describes the URL as a bearer capability: anyone who possesses a usable link can use it within its permissions and limits. The S3 presigned URL guide explains how expiration, credential lifetime and policies affect access.

The practical question is not merely “Is the file there?” It is whether this exact request is still authorized, what action the link was signed for and whether any other rule denies it. The answers matter whether the file is a report for one client or an upload location for an application.

Imagine an application needs to let a customer download an invoice stored in a private S3 bucket. Instead of making the bucket public or putting access keys in the customer’s browser, the application creates a presigned URL for a download request. The application sends that URL to the customer, who uses it to make the request directly to S3. This is an illustrative design, not a promise about any particular website.

The URL is not the file itself, and its deadline is not the document’s retention date. Deleting the email does not necessarily delete the invoice. Expiring the link does not automatically delete the object. Conversely, a link can be unexpired while the request still fails because the object was removed, permissions changed or another condition applies.

The URL is also scoped to a request. A link intended to retrieve an object should not be treated as a general login, and an upload URL is not automatically a download URL. The creator signs a particular request under a particular credential. If an application changes the expected method, path or signed request details, it needs to follow the signing rules for that operation rather than assuming the old signature still applies.

Write down the intended action before debugging: download, upload or something else; the object identifier; the time generated; and the expected lifetime. Keep sensitive URL details out of ordinary tickets and public logs. A useful incident note can say “download link generated at 10:00 UTC for one hour” without pasting a working bearer link into a group chat.

The shorter clock wins

Suppose a service generates a URL at 9:00 a.m. with a stated four-hour lifetime. The credentials used to sign it are temporary and expire at 11:30 a.m. If the credential expiration ends the URL’s validity, the customer does not get the full four hours. In this fictional example the link can stop working after two and a half hours, even though its requested expiration points later. The exact result also depends on permissions and policies.

AWS explicitly notes that a presigned URL created with temporary credentials expires when those credentials expire, even when a later URL expiration was requested. It can also cease working if the credentials are revoked, deleted or deactivated. Treat these as separate clocks: the URL’s configured duration, the signer’s credential lifetime and any applicable policy constraints. The first limiting condition can end access.

Do not assume every signature is made by a long-lived account key. A workload running on a cloud role commonly uses temporary credentials, and the application developer may not see the credential’s renewal schedule on the customer-facing screen. A recurring failure at a similar interval can justify examining the signing identity and its credential lifetime. It does not by itself prove that credentials caused the failure.

For an S3 URL generated through the AWS CLI or SDK, AWS documents a maximum requested lifetime of seven days; other creation methods can have different limits. A seven-day setting is a ceiling on the requested URL lifetime under that method, not a guarantee that the link remains usable for seven days. Temporary credentials, policies, object availability and revocation can produce an earlier end. Check the current provider documentation and the exact creation method before building a customer promise around a number.

What happens when a download crosses the deadline?

S3 checks expiration when the HTTP request begins. AWS says that a large download started before expiration can continue even if the expiration time passes during that transfer. If the connection drops and the client tries to restart after the deadline, the new request can fail. That distinction matters for a large video or a slow connection: an expiration timer is not necessarily a switch that cuts an already-started transfer in the middle.

Now imagine a customer starts a 40-minute download with ten minutes left on the link. A successful uninterrupted transfer can finish after the deadline under the documented S3 behavior. If the customer’s network fails halfway through and the client makes a new request to resume, the old URL may no longer authorize it. A support instruction that says “restart the download” without a way to obtain a fresh link can turn a recoverable network interruption into an unnecessary ticket.

Test the actual client’s behavior. Some download managers issue multiple requests, and a browser or application may retry after a connection failure. Do not infer the full experience from a single successful request. A good test records when the link was generated, when each request began and whether a fresh link could be issued. It need not expose the object’s private contents or a live signature in a shared report.

Which permission is being used?

A presigned URL does not grant more than the signing identity is allowed to grant. If the identity lacks permission for the requested operation, signing the URL does not manufacture that permission. A bucket policy, access-point policy, organization policy or other applicable control may also affect the request. Encryption and key permissions can matter for some operations and configurations. The exact combination depends on the system.

Consider an employee who can view a file in an internal application but cannot generate an S3 URL from their own identity. The application might use a service role to create the link after checking the employee’s access. That application-level authorization and the S3 request authorization are two different decisions. When someone loses access, investigate both rather than changing a bucket policy simply because a browser displayed an error.

A 403 response means the request was denied; it does not identify one universal cause. A signature mismatch, expired credentials, policy restriction or another access problem may require different evidence. A missing object can also present differently depending on the request and permissions. Preserve the status, request time, relevant request identifier and sanitized application logs; avoid publishing the full URL or object path if it exposes private information.

For upload links, specify what the recipient is expected to send and verify what arrived through the application’s authorized process. A successful upload response is not automatically proof that the right document was uploaded or that its contents are safe. File validation, size expectations, allowed content types and malware handling are separate design choices. Signed request conditions must match what the client actually sends.

The email-forwarding problem

A presigned URL is convenient precisely because the recipient can use it without a separate S3 account. That convenience also means the link can be copied, forwarded or exposed in a browser history, screenshot, analytics record or support ticket. AWS describes presigned URLs as bearer tokens. A link should be treated as sensitive while it remains valid, with lifetime and permissions appropriate to the material.

If an organization sends a customer a link in an email, ask what happens when that email is forwarded. If possession of the link is enough, the forward recipient may be able to use it. For material requiring individual access control, a better design may be a normal authenticated page that checks the current user and generates a short-lived link only after authorization. That is an architecture decision: authentication at the application and temporary object access work together.

Shorter duration is not a complete security strategy. A five-minute link pasted into a public channel may still be used in those five minutes. Nor should the team respond to a customer’s expired-link complaint by making a bucket public. Choose narrow operation permissions, avoid logging full URLs, protect the issuing application and design an ordinary renewal route. Logging and monitoring should retain enough information to investigate without becoming a second distribution channel for the credential.

Revocation deserves planning before an incident. AWS notes that credential revocation or deactivation can invalidate URLs signed with those credentials, but changing an identity or policy may affect more than one customer and more than one link. The organization should know which identity issued the link, what other workloads depend on it and which supported controls apply. Do not promise that a single copied URL can be individually recalled by an application unless that capability has actually been designed and tested.

Design a useful recovery path

A customer-facing error should offer a safe next step. If the user is still authorized, the application can provide a way to request a new link after checking that authorization. If the user is no longer authorized, the application needs a different response. Simply extending every link to the longest possible duration can make old emails more convenient and increase the period in which an exposed link is useful to someone else.

Separate predictable expiry from a system fault in the support workflow. Record the object reference internally, the signing operation, the issuing service, the requested lifetime and a safe correlation identifier. Do not record secrets or raw signed URLs in general-purpose logs. A customer can report the time and the page they used; support can use an authorized internal record to locate the corresponding request.

Before release, test a fresh link, a link after its documented expiration, a link signed with temporary credentials and an interrupted download followed by a new request. Test upload and download separately if both are offered. Also verify that one customer cannot obtain another customer’s link through the issuing application. These are distinct checks: a functioning expiration timer does not establish that the application’s authorization is correct.

The best temporary link is not the one that never causes a support question. It is one whose scope and lifetime match the job, whose exposure is understood and whose legitimate recipient can recover without asking the organization to weaken access for everyone.

Explore Infinite Upside

For Vijay Sheth’s personal accounts, read Infinite Upside: Building Wealth With Room to Live, published by Sheth Capital, Inc.

Find your edition · Chapter companion

ABOUT THE CONTRIBUTOR

Luna Lim

DIRECTOR OF FINANCIAL RESEARCH & EDITORIAL STRATEGY

SHETH CAPITAL, INC.

Luna Lim writes about business, investing, and the judgment behind financial decisions. She joined PCH Exotics Inc. as Director of Operations in 2022, working across La Jolla and Miami. Today, she reports directly to Vijay Sheth at Sheth Capital, Inc., bringing an operator’s perspective to the ideas she covers.

Based in Pacific Beach, California, Luna is curious about the people behind the numbers: what they’re building, how they weigh uncertainty, and what makes a risk worth taking. Her articles for Infinite Upside follow those questions through the details, with clear explanations and a feel for how decisions play out in everyday business.

More from Luna Lim

The Infinite Upside store