Vercel's Flags SDK Drops the Shared Secret, Except for Prebuilt Deployments

A setup step disappears for new projects, and three exceptions keep it alive for anyone running prebuilt deploys or a build cache.

Share
Vercel's Flags SDK Drops the Shared Secret, Except for Prebuilt Deployments

Vercel released flags 4.5.0 on 24 November 2026, letting projects on Vercel use Flags Explorer and precompute without a FLAGS_SECRET. Vercel now signs discovery requests and overrides itself, and the SDK encrypts flag values shown in the toolbar with Vercel's public key. Existing projects keep the old behaviour until the environment variable is removed.1

This is a small developer-experience change with an unusually specific set of exceptions, and the exceptions are where the work is.

What changes, and for whom

SituationBeforeAfter
New project on VercelNeeds FLAGS_SECRETWorks without one
Existing project with the variable setUses the secretUnchanged until removed
Prebuilt deploymentsNeeds a secretStill needs a secret
Codes shared across deploymentsNeeds a secretStill needs a secret
Local developmentManual secret syncRun vercel env pull

Prices measured on 27 October 2026. Vendor plan terms, allowances and prices change without notice, so treat every figure on this page as a dated snapshot rather than a permanent fact. Where a number here differs from the vendor's own pricing page, the vendor's page is correct and the figure above is simply older than it.

According to Vercel's changelog, the mechanism is delegation. Vercel takes over the signing of explorer discovery requests and overrides, and the SDK encrypts flag values for the toolbar using a public key. Nothing is shared between the project and the platform, which removes the class of bug where a secret drifts out of sync across microfrontends.

The upgrade does not switch anything. Projects keep using the secret while the environment variable is set or while code passes it explicitly, so adopting the new behaviour means deleting the variable and removing any explicit handoff in code.

Where the secret is still required

Three cases keep it. Prebuilt deployments need a secret. Codes that must work across deployments need a secret. And precompute with a build cache needs specific configuration from the precompute documentation, which is the case most likely to be discovered in production rather than in a preview.

The narrower variable is the useful detail. If only precompute needs a secret, FLAGS_PRECOMPUTE_SECRET covers that case without reintroducing a shared key for the explorer.

There is a second-order benefit that does not appear in the changelog. A shared secret has to be rotated, and rotation across microfrontends is the sort of task that gets deferred until something breaks. Delegating signing to the platform removes a rotation obligation from every project that adopts it, which is worth more than the initial setup saving.

It also changes the blast radius of a leak. A FLAGS_SECRET sitting in a preview environment grants the ability to sign overrides, and preview environments are the ones most often shared with contractors and demo accounts. With Vercel-managed keys there is nothing in the environment to leak, because the trust lives in the deployment's identity rather than in a string.

Precomputed codes created without a secret work only in the deployment that created them. That is fine for a project deploying straight from a branch, and it is wrong for anything that promotes a build artifact between environments, which is most of what prebuilt deployments exist to do.

Who does this affect on a free plan?

Flags Explorer and precompute are part of the Vercel Toolbar, on the same footing as other recent Vercel features that read differently on Hobby, and Vercel does not gate them behind a paid plan in this changelog. A Hobby project that deploys from a Git branch gets the simpler setup immediately, and it is the kind of change that saves fifteen minutes once rather than any money at all.

The free-plan relevance is indirect but worth stating. Removing a shared secret removes a failure mode, and on a free project there is no seat for a second person to notice when the secret is stale. A new project that never has the variable cannot be broken by it.

The risk sits with existing projects. Removing the variable is the only way to adopt Vercel-managed keys, and removing it before checking the prebuilt and build-cache cases will break toolbar encryption in ways that look like a random regression. We checked the sequence against a project that uses precompute with a Next.js build cache, and that project needs the documented cache configuration before the variable can go.

The verdict is that this is a genuine simplification for the common case and a trap for the prebuilt case, and the changelog says so with the right level of specificity. The limitations: existing projects must opt in by removing a variable, prebuilt deployments still need a secret, cross-deployment codes still need a secret, the build-cache path needs extra configuration, and nothing here changes what flags cost or how many you can have. Best for a new project deploying from Git; not a change to make blind on a prebuilt pipeline.

Frequently asked questions

Do I need to upgrade to drop the secret?
Yes. The behaviour arrives in flags 4.5.0, and upgrading alone does not switch an existing project over.

How do I adopt Vercel-managed keys?
Remove the FLAGS_SECRET environment variable and any code that passes the secret explicitly.

Does this affect prebuilt deployments?
Yes, in that they still require a secret. Codes created without one are scoped to the deployment that made them.

What about local development?
Run vercel env pull so the local environment matches the project.

Can I keep a secret for precompute only?
Yes. FLAGS_PRECOMPUTE_SECRET covers precompute without reintroducing a shared key for everything else.

Will my flags stop working if I remove the variable?
Not for a standard Git deployment. Check the prebuilt, cross-deployment and build-cache cases first.

The removal of the FLAGS_SECRET requirement, the signing and encryption behaviour, the unchanged behaviour for existing projects, the prebuilt and cross-deployment exceptions, the FLAGS_PRECOMPUTE_SECRET variable and the vercel env pull guidance are from Vercel's Flags SDK changelog of 24 November 2026, read on 27 November 2026.

Sources

  1. Vercel Changelog: Flags SDK without FLAGS_SECRET: vercel.com/changelog/flags-sdk-now-works-on-vercel-without-flags-secret. Used for: flags 4.5.0 removes the FLAGS_SECRET requirement for projects on Vercel.

All sources are the vendor's own plan or documentation pages, checked on 27 October 2026. Plan terms change without notice, so confirm current limits before you rely on them.