Repository navigation
Conversation
Co-Authored-By: Claude Code <noreply@anthropic.com>
…er/kms-signed-overrides
…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>
…nto luismeyer/secretless-snapshot
…ncryption' into luismeyer/secretless-snapshot # Conflicts: # packages/flags/src/lib/crypto.ts
Co-Authored-By: Claude Code <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Member
Author
|
Moved into #587. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #597.
Why
encryptOverridesneeds aFLAGS_SECRET. A project without one had no way in the SDK to create avercel-flag-overridestoken, 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 theVERCEL_OIDC_TOKENofvercel env pull. It returns the signed token, whichdecryptOverridesand 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 (
readOidcTokenis from #587). The diff shrinks to the last commit when #597 is restacked.🤖 Generated with Claude Code