deniz.in

Markets

Weather

Loading weather

· via Vercel blog

[email protected] drops the FLAGS_SECRET requirement on Vercel for Flags Explorer and precompute

Vercel's [email protected] lets projects use Flags Explorer and precompute without setting FLAGS_SECRET, replacing the shared secret with Vercel-signed requests and key-based encryption.

flags@4.5.0 drops the FLAGS_SECRET requirement on Vercel for Flags Explorer and precompute

What changed

Version 4.5.0 of the Flags SDK removes a fiddly setup step for teams deploying on Vercel: according to the Vercel blog, projects can now run Flags Explorer and precompute feature flags without configuring a FLAGS_SECRET environment variable. Previously that secret was a prerequisite for these features, meaning every new project had to generate and wire one in before the flag tooling became usable.

The change targets friction directly. Fresh projects get working flag tooling out of the box, and teams running microfrontends — where several separately deployed apps may need to read the same flags — no longer have to distribute a common secret and keep it aligned across each of them.

How the secret was replaced

Vercel did not simply strip out the authentication layer. Per the company's changelog, the platform now cryptographically signs the discovery requests and overrides that Flags Explorer sends, and the SDK encrypts flag values displayed in the Vercel Toolbar using a public key belonging to Vercel. In effect, the trust that FLAGS_SECRET used to establish between a project and its flag tooling has been folded into the platform itself.

One dependency worth noting: precompute without a secret relies on Vercel's system environment variables, which the company says are switched on by default.

Existing projects are not migrated automatically

The changelog is explicit that upgrading alone does not move an existing project onto the new arrangement. As long as FLAGS_SECRET is set in the environment, or the secret is passed directly in code, the SDK keeps using it. Teams that want Vercel-managed keys for these features have to delete the environment variable and strip out any code that hands the secret to the SDK explicitly.

For local development outside a deployment, Vercel's guidance is to run vercel env pull so the required environment values are available on the developer's machine.

Where a secret is still required

Going secret-free has boundaries. Precomputed codes generated without a secret only function inside the deployment that produced them; they will not carry over to other deployments. Vercel notes that prebuilt deployments, along with any codes that must remain valid across deployments, still depend on a secret. For teams that only need one for the precompute path, the changelog points to FLAGS_PRECOMPUTE_SECRET as a narrower option. If a build cache is part of the pipeline, Vercel directs readers to the precompute documentation for the configuration it requires.

Why it matters

Feature flags have become standard plumbing for shipping behind toggles, but their operational overhead — setup steps that block a new repo from running, configuration that has to be repeated per service in a microfrontend setup — tends to land on whoever scaffolds a new app first. By moving the trust model into platform-level signing and encryption, Vercel eliminates a category of configuration that microfrontend teams in particular had to duplicate across every app sharing the same flags.

The trade-off is portability. Flag codes scoped to a single deployment cover the common case of testing one deployment in isolation, but cross-deployment and prebuilt scenarios still require manual secret management. Teams upgrading to 4.5.0 should audit where FLAGS_SECRET currently appears — in environment configuration and in code — before assuming the new Vercel-managed behaviour applies to them.

  • #vercel
  • #feature-flags
  • #sdk
  • #cloud
  • #microfrontends

Related posts