Highlights

Contents

Part V
05

Signed URLs and private delivery

We keep reusable private bytes behind a per-request permission boundary. Shared storage of a representation need not make that representation public. We will sign the delivery capability, validate it before a cache hit, restrict origin, and bound revocation exposure.

CHAPTER ATLAS / FOLLOW THE READING PATHCHAPTER ATLAS / FOLLOW THE READING PATH1Edges, origins, hits andmisses2TTL and Cache-Control3Invalidation andversioned URLs4Pull vs push CDN andshielding5Signed URLs and privatedelivery6Geographic routing7Video and image delivery8Case study: private videodelivery

#Section 17Origin upload signatures and CDN delivery signatures

Heron used a presigned object request to permit upload. Playback through a CDN needs permission at the viewer-to-CDN boundary. A signed CDN URL carries a delivery policy authenticated by a trusted signer, allowing the edge to validate permitted retrieval according to the product’s mechanism.

An origin-storage upload signature does not automatically authorize a different CDN hostname, method, or path. Conversely, a CDN playback signature should not grant upload or general object-store access. Keep each capability’s signer, resource, method or action, and usable time explicit.

UPLOAD AND PLAYBACK CREDENTIALS OPEN DIFFERENT OPERATIONSUPLOAD AND PLAYBACK CREDENTIALS OPEN DIFFERENT OPERATIONSupload capabilityreserved writeplayback capabilitypermitted GETobject storageserving edge
Figure 14.20Distinct authorization boundaries. One signed request cannot be assumed valid for another service’s request format.

CloudFront private-content documentation describes signed URLs and signed cookies with restricted origin. The product’s actual policy fields and validation timing need verification. Heron issues playback access only after its metadata says the user may view the published version.

#Section 18Validate permission even on a cache hit

The edge already holds a private clip’s bytes. A second viewer requests the same key without valid access. A cache hit must not bypass the chosen private-delivery check. The edge validates its supported signed policy before returning bytes, regardless of whether it contacts origin.

The same authorized representation can be reused across permitted viewers when access is enforced outside its content identity. If the signature or user identifier is unnecessarily part of the cache key, every viewer may create a distinct entry and lose reuse. Excluding those fields is safe only when the access boundary still checks them and the bytes truly are equivalent.

A PRIVATE CLIP CAN BE A CACHE HIT, AND THE EDGE STILL CHECKS THE VIEWER FIRSTA PRIVATE CLIP CAN BE A CACHE HIT, AND THE EDGE STILL CHECKS THE VIEWER FIRSTsigned requestviewer capabilityvalidatesignature, expirylookupclip c7 v1returnpermitted bytesleave the signature out of the cache key, or every viewer misses
Figure 14.21Private cache-hit path. Cache-key normalization must not remove the separate authorization check.
THE CONTENT ID PICKS THE BYTES; THE ACCESS ID DECIDES WHO GETS THEMTHE CONTENT ID PICKS THE BYTES; THE ACCESS ID DECIDES WHO GETS THEMcontent identityclip c7 version v1access identityviewer policy + expirysame bytes reused across viewers, only after each one is validated
Figure 14.22Identity separation. Personalized representation bytes require additional content-key dimensions.

Test a warmed private object with missing, expired, malformed, and altered signatures. Test a different object path with a valid signature for the original path. The security guarantee must hold before the cache lookup can return content, not only on misses.

#Section 19Restrict the origin and protect signing authority

A viewer discovers the origin hostname and downloads the private object directly. The CDN signature was irrelevant because another public path existed. Restrict origin so only the intended delivery mechanism or narrowly authorized administrative path can retrieve private bytes under its actual policy.

Protect the signer and rotate keys through the supported trust configuration. A leaked signer can create apparently valid capabilities until its authority is removed and validation paths honor that change. Short expiration limits some exposure but does not replace signer revocation and controlled key distribution.

A SIGNED-URL CDN MEANS NOTHING IF THE ORIGIN BUCKET IS PUBLICA SIGNED-URL CDN MEANS NOTHING IF THE ORIGIN BUCKET IS PUBLICCDN checksorigindirect, uncheckedrestrict the origin to the CDN; protect every path to the same bytes
Figure 14.23Origin-access boundary. The object store and application must enforce the intended private serving path.

Do not place complete signed URLs in logs or third-party analytics. They carry delegated authority. Keep a redacted content identity, policy identifier, decision, and request correlation value for diagnosis. Access logs should explain why a request was denied without reproducing a reusable secret.

#Section 20Expiration and revocation are stated promises

Heron gives an illustrative playback capability a 300-second lifetime. If the user loses permission after it is issued, the service may stop issuing new capabilities immediately while the existing one remains usable according to its signed policy. Whether additional revocation is required is a product and security decision.

Cache freshness can exceed or be shorter than capability life because they govern different things. Fresh retained bytes do not extend an expired viewer capability. Conversely, valid access does not make stale mutable content fresh. The request must satisfy both independent rules.

A 300 S CAPABILITY AND THE CACHED BYTES' AGE RUN ON SEPARATE CLOCKSA 300 S CAPABILITY AND THE CACHED BYTES' AGE RUN ON SEPARATE CLOCKScapability (illustrative 300 s)cached representation ageexpired access: deny, even on a fresh hitvalid access does not make stale content fresh either
Figure 14.24Separate policy checks. Existing transfer and reconnect expiration behavior is product-specific.

An urgent revocation requirement may need a short capability, an online deny rule, or product-supported revocation. That introduces latency, availability, and control-plane dependencies to evaluate. Avoid a claim of immediate revocation when the design only stops new signing.