FeatureFuel
1

Vercel integration: stop syncing SUPABASE_JWT_SECRET for projects on signing keys, and sync preview branch variables when the branch is created

Source: supabase/supabase#54450 · opened by @martijn00
Two changes to the environment variables the Vercel integration syncs. 1. Don't sync SUPABASE_JWT_SECRET to projects that sign with asymmetric keys The Vercel Marketplace guide lists SUPABASE_JWT_SECRET among the variables every connected Vercel project gets, and "Preview branches on Vercel" syncs it for each preview branch too, next to SUPABASE_URL and the keys. For a project that has moved to JWT signing keys (ES256 or RS256), the value is the legacy shared secret. Apps verify tokens against the JWKS (getClaims() does that), so they don't need it. But the secret can still sign a token for any user and role for as long as it isn't revoked, and after the migration it stays under "previously used" until someone revokes it. Syncing it puts a token-minting secret into every Vercel environment, including preview deployments of every pull request, where it serves no purpose. Ask: sync SUPABASE_JWT_SECRET only while the legacy secret is the current sig…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests