Skip to content

[flags] signOverrides to sign flag overrides with Vercel - #598

Closed
luismeyer wants to merge 8 commits into
luismeyer/precompute-deployment-keyfrom
luismeyer/sign-overrides
Closed

luismeyer wants to merge 8 commits into
luismeyer/precompute-deployment-keyfrom
luismeyer/sign-overrides

Conversation

@luismeyer

Copy link
Copy Markdown
Member

Stacked on #597.

Why

encryptOverrides needs a FLAGS_SECRET. A project without one had no way in the SDK to create a vercel-flag-overrides token, e.g. for end-to-end tests. Only the Vercel Toolbar could.

What

signOverrides(overrides, { ttl? }) asks Vercel to sign the overrides for the project and the environment of the host, with the OIDC token of the host: of the request on a deployment, or the VERCEL_OIDC_TOKEN of vercel env pull. It returns the signed token, which decryptOverrides and the flags of the SDK already accept.

It throws when the host has no OIDC token or project, and when Vercel does not sign the overrides.

Note

This branch contains the current heads of #587 and #589, which #597 does not have yet (readOidcToken is from #587). The diff shrinks to the last commit when #597 is restacked.

🤖 Generated with Claude Code

luismeyer and others added 8 commits November 11, 2026 12:21
Co-Authored-By: Claude Code <noreply@anthropic.com>
…he request

Co-Authored-By: Claude Code <noreply@anthropic.com>
…an decrypt

Note that decryptFlagValues, encryptFlagDefinitions and
decryptFlagDefinitions work only with a FLAGS_SECRET.

Co-Authored-By: Claude Code <noreply@anthropic.com>
…ncryption' into luismeyer/secretless-snapshot

# Conflicts:
#	packages/flags/src/lib/crypto.ts
Co-Authored-By: Claude Code <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
flags-playground Ready Ready Preview, v0 Nov 12, 2026 9:38am UTC
flags-sdk-dev Ready Ready Preview, v0 Nov 12, 2026 9:38am UTC
flags-sdk-flagsmith Ready Ready Preview, v0 Nov 12, 2026 9:38am UTC
flags-sdk-growthbook Ready Ready Preview, v0 Nov 12, 2026 9:38am UTC
flags-sdk-launchdarkly Ready Ready Preview, v0 Nov 12, 2026 9:38am UTC
flags-sdk-openfeature Ready Ready Preview, v0 Nov 12, 2026 9:38am UTC
flags-sdk-posthog Ready Ready Preview, v0 Nov 12, 2026 9:38am UTC
flags-sdk-reflag Ready Ready Preview, v0 Nov 12, 2026 9:38am UTC
flags-sdk-snippets Ready Ready Preview, v0 Nov 12, 2026 9:38am UTC
flags-sdk-statsig Ready Ready Preview, v0 Nov 12, 2026 9:38am UTC
flags-sdk-sveltekit-snippets Ready Ready Preview, v0 Nov 12, 2026 9:38am UTC
shirt-shop Ready Ready Preview, v0 Nov 12, 2026 9:38am UTC
shirt-shop-api Ready Ready Preview, v0 Nov 12, 2026 9:38am UTC

@luismeyer

Copy link
Copy Markdown
Member Author

Moved into #587.

@luismeyer luismeyer closed this Nov 12, 2026
@luismeyer
luismeyer deleted the luismeyer/sign-overrides branch November 12, 2026 09:40

This branch was successfully deployed

14 active deployments
Preview – flags-sdk-dev — e735526d Deployed Nov 12, 2026 by vercel[bot]
Preview – flags-sdk-sveltekit-snippets — e735526d Deployed Nov 12, 2026 by vercel[bot]
Preview – flags-sdk-snippets — e735526d Deployed Nov 12, 2026 by vercel[bot]
Preview – shirt-shop — e735526d Deployed Nov 12, 2026 by vercel[bot]
Preview – flags-sdk-launchdarkly — e735526d Deployed Nov 12, 2026 by vercel[bot]
Preview – flags-sdk-growthbook — e735526d Deployed Nov 12, 2026 by vercel[bot]
Preview – flags-sdk-vercel — e735526d Deployed Nov 12, 2026 by vercel[bot]
Preview – flags-sdk-openfeature — e735526d Deployed Nov 12, 2026 by vercel[bot]
Preview – flags-sdk-posthog — e735526d Deployed Nov 12, 2026 by vercel[bot]
Preview – flags-playground — e735526d Deployed Nov 12, 2026 by vercel[bot]
Preview – flags-sdk-flagsmith — e735526d Deployed Nov 12, 2026 by vercel[bot]
Preview – flags-sdk-reflag — e735526d Deployed Nov 12, 2026 by vercel[bot]
Preview – flags-sdk-statsig — e735526d Deployed Nov 12, 2026 by vercel[bot]
Preview – shirt-shop-api — e735526d Deployed Nov 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant