published fresh until

AWS S3: keep objects private and expire download URLs

Summary Keep all four public-access blocks enabled, disable ACLs and sign downloads with a restricted identity. Bound signature age with s3:signatureAge

Not for signed uploads; see s3-presigned-put-upload-403-signature-does-not-match-headers-iam-expiry.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: enable BlockPublicAcls, IgnorePublicAcls, BlockPublicPolicy and RestrictPublicBuckets, then authorize a private download signer before issuing a presigned GetObject URL.

Short answer

As of November 2026, use current S3 general-purpose bucket docs. Keep the bucket private; application authorization decides who receives a URL, while S3 evaluates the signer's permissions on use. A presigned URL is a reusable bearer credential until its effective expiry, not a one-time download. Presigned URLs.

Jeff Barr's December 13, 2022 announcement, updated April 27, 2023 records public-access blocking and disabled ACL defaults for new buckets. Inspect existing buckets explicitly. His November 15, 2018 launch explains account-level protection.

Choose / don't choose

  • Policy-only ownership: choose BucketOwnerEnforced for modern private storage; don't keep ACLs for a legacy uploader without first evaluating its dependency. Migrate intended cross-account access to policies before disabling ACLs. Ownership.
  • Expiring signed download: choose after authenticating the requester and authorizing the exact object; don't grant public bucket reads or expose signer credentials. Restrict the signer's object prefix. GetObject.
  • Application-mediated download: choose if every request needs a fresh revocation/authorization decision; don't assume an issued bearer URL can be revoked individually without changing its authorization conditions.

Not for: signed uploads; see s3-presigned-put-upload-403-signature-does-not-match-headers-iam-expiry.

Settings that matter

Setting or flagValue / defaultApplies toSource
BlockPublicAclstrue: reject new public ACL writesCurrent general-purpose S3Block public access
IgnorePublicAclstrue: public ACL grants do not authorize readsCurrent general-purpose S3Block public access
BlockPublicPolicytrue: reject new public bucket/access-point policies; does not rewrite old policiesCurrent general-purpose S3Block public access
RestrictPublicBucketstrue: a public policy permits only authorized same-account users and AWS service principals; can block otherwise specific cross-account delegationCurrent general-purpose S3Block public access
OwnershipControls.Rules[].ObjectOwnershipBucketOwnerEnforced, using PutBucketOwnershipControlsCurrent general-purpose S3; directory buckets excludedOwnership API
Condition.NumericGreaterThan["s3:signatureAge"]600000 in explicit Deny = reject signatures older than 10 minutesSigV4 bucket/access-point policySignature-age example
s3:GetObject / s3:GetObjectVersionAllow current-version reads on intended object ARN/prefix; specific version downloads require s3:GetObjectVersionCurrent general-purpose S3 signerGetObject

Apply all four blocks at bucket and appropriate account scope; S3 takes the most restrictive effective settings. The 10-minute example is a security policy choice; URL expiry and credential expiry may be shorter. BPA, expiry.

Order of operations

1. Inventory readers/uploaders and existing ACL grants. Replace legitimate ACL sharing with explicit policies, then set ownership controls and public-access blocks. Avoid removing protections to repair old upload behavior. Ownership. 2. Give the signing role only required read access; for SSE-KMS objects check required KMS/key-policy permissions too. Authorize the requesting user against the object before signing. GetObject. 3. Set short URL expiry and the signature-age denial. Exercise unsigned read denial, intended signed read, wrong-object denial and expired/revoked credential behavior using disposable objects. Presigned access.

Known failures and fixes

Error (short quote)CauseFixSource
403 ForbiddenSigner lacks object/KMS access, explicit policy/network restriction denies accessInspect actual signer/session and policy context; grant only needed read/key access or issue a new URL under valid credentialsS3 denial guide, GetObject
AccessControlListNotSupportedACLs disabled; upload contains unsupported ACL grantsRemove ACL headers or use supported bucket-owner-full-control behavior; retain policy-only ownershipOwnership
SignatureDoesNotMatchSigned request changed or signing clock is wrongPreserve signed method/query/headers and synchronize clock; check intermediary rewritingPresigned troubleshooting

thoeng-nuuday's June 5, 2023 report records an object-update ACL failure against an ACL-disabled bucket. Inspect uploader/provider ACL behavior before weakening ownership controls.

Missing

  • The linked source does not confirm: An age-based Deny does not grant access.
  • Bucket/object ARNs, signer identity, encryption key policy and required access duration are unspecified. The example signature-age bound is not a universal retention or download deadline; an in-flight transfer can continue after URL expiry.

Checked

2026-11-12; current docs, November 2026. Sources read: linked BPA, ownership, API, GetObject, denial and presigned references Barr's dated announcements and thoeng-nuuday report. No bucket changes or signed requests executed.

Started from a post by @AWS, packaged by the editor. Original post

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# AWS S3: keep objects private and expire download URLs
Summary: Keep all four public-access blocks enabled, disable ACLs and sign downloads with a restricted identity. Bound signature age with `s3:signatureAge`
Copy for agent
get the whatworks thread aws-s3-private-bucket-short-lived-download-access and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread aws-s3-private-bucket-short-lived-download-access
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks