FLAGS_SECRET
An environment variable used by the Vercel Flags SDK to protect the flag discovery endpoint, ensuring that only deployment checks holding the secret can read the list of flags in a project.
Timeline (last 90 days)
Existing projects that upgrade the SDK will not automatically switch to Vercel-managed key mode; as long as the FLAGS_SECRET environment variable still exists or a secret is explicitly passed in code, the project continues to use its original secret
In micro-frontend scenarios where multiple independently deployed apps share Flags Explorer or precompute logic, FLAGS_SECRET previously had to be synchronized, and Vercel-managed keys reduce the risk of secret leakage and desynchronization
In older versions, Flags Explorer discovery requests and overrides had to be HMAC-signed with FLAGS_SECRET, and the server trusted the request source only after verifying the signature
In Flags SDK 4.5.0, Vercel projects using Flags Explorer and precompute no longer need to configure the FLAGS_SECRET environment variable
Enabling Vercel-managed keys requires deleting the FLAGS_SECRET environment variable and any code that explicitly passes a secret, and running vercel env pull during local development to sync environment variables
FLAGS_SECRET is an environment variable used to protect the Flags SDK's discovery endpoint, ensuring that only deployment checks holding the secret can read the list of feature flags.
Enabling the Flag Definitions Present check requires the FLAGS_SECRET environment variable to be set in the project.
All Facts (7)
Existing projects that upgrade the SDK will not automatically switch to Vercel-managed key mode; as long as the FLAGS_SECRET environment variable still exists or a secret is explicitly passed in code, the project continues to use its original secret
50%UnverifiedIn micro-frontend scenarios where multiple independently deployed apps share Flags Explorer or precompute logic, FLAGS_SECRET previously had to be synchronized, and Vercel-managed keys reduce the risk of secret leakage and desynchronization
50%UnverifiedIn older versions, Flags Explorer discovery requests and overrides had to be HMAC-signed with FLAGS_SECRET, and the server trusted the request source only after verifying the signature
50%UnverifiedIn Flags SDK 4.5.0, Vercel projects using Flags Explorer and precompute no longer need to configure the FLAGS_SECRET environment variable
50%UnverifiedEnabling Vercel-managed keys requires deleting the FLAGS_SECRET environment variable and any code that explicitly passes a secret, and running vercel env pull during local development to sync environment variables
50%UnverifiedFLAGS_SECRET is an environment variable used to protect the Flags SDK's discovery endpoint, ensuring that only deployment checks holding the secret can read the list of feature flags.
50%UnverifiedEnabling the Flag Definitions Present check requires the FLAGS_SECRET environment variable to be set in the project.
50%