Skip to content

feat(cdn-worker): proxy SDL download URLs to the S3 bucket or the api SDL endpoint - #9036

Draft
n1ru4l wants to merge 7 commits into
feat-sdl-legacy-signed-url-endpointfrom
feat-sdl-cdn-proxy
Draft

n1ru4l wants to merge 7 commits into
feat-sdl-legacy-signed-url-endpointfrom
feat-sdl-cdn-proxy

Conversation

@n1ru4l

@n1ru4l n1ru4l commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Background

Description

Checklist

  • Input validation
  • Output encoding
  • Authentication management
  • Session management
  • Access control
  • Cryptographic practices
  • Error handling and logging
  • Data protection
  • Communication security
  • System configuration
  • Database security
  • File management
  • Memory management
  • Testing

Stack created with GitHub Stacks CLI • Give Feedback 💬

@n1ru4l
n1ru4l added this pull request to stack #9038 December 4, 2026 07:22
@theguild-bot

theguild-bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphql-hive/laboratory 0.4.2-alpha-20261204150039-d538b42eacbb60b69692a438eccabedcf8cb1dc2 npm ↗︎ unpkg ↗︎
@graphql-hive/render-laboratory 0.2.1-alpha-20261204150039-d538b42eacbb60b69692a438eccabedcf8cb1dc2 npm ↗︎ unpkg ↗︎
hive 15.10.0-alpha-20261204150039-d538b42eacbb60b69692a438eccabedcf8cb1dc2 npm ↗︎ unpkg ↗︎

@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

🐋 This PR was built and pushed to the following Docker images:

Targets: build

Platforms: linux/amd64

Image Tags: 15.10.0-alpha-d538b42, d538b42, d538b42eacbb60b69692a438eccabedcf8cb1dc2

@n1ru4l
n1ru4l force-pushed the feat-sdl-cdn-proxy branch 2 times, most recently from 5f48847 to dc3a57a Compare December 4, 2026 09:59
@n1ru4l
n1ru4l force-pushed the feat-sdl-cdn-proxy branch from dc3a57a to d3c1e6d Compare December 4, 2026 12:23
The expiry of presigned S3 URLs (X-Amz-Date + X-Amz-Expires) and of signed
legacy SDL URLs (expires) can be read without a secret, so expired URLs are
rejected with a 403 before a request reaches the bucket or the API.
Only keys the API presigns (sdl/<org>/sha256/<sha256>, artifact/<target>/…),
legacy SDL paths with a known location type, and signatures of the expected
shape are forwarded. Anything else is rejected without a request to the bucket
or the API, which stay the authority for the signature.
Requests to the bucket's endpoint do not go through the zone's cache, so
successful responses with a lifetime are stored in the Cache API, keyed by the
full signed URL, until the URL expires. Repeated downloads of a URL, e.g. CI
re-running a check, are served without a request to the bucket or the API.
Range and conditional requests bypass the cache.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants