[KongchangAI]
Concept

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)

Nov 24

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

Unverified50%
Nov 24

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

Unverified50%
Nov 24

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

Unverified50%
Nov 24

In Flags SDK 4.5.0, Vercel projects using Flags Explorer and precompute no longer need to configure the FLAGS_SECRET environment variable

Unverified50%
Nov 24

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

Unverified50%
Nov 23

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.

Unverified50%
Nov 23

Enabling the Flag Definitions Present check requires the FLAGS_SECRET environment variable to be set in the project.

Unverified50%

All Facts (7)

Source Articles