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.
Comments
Similar requests
production, preview, and development integrations for vercel
4 votes · 0 comments
Ephemeral branches need a stable OAuth callback URL
2 votes · 0 comments
Vercel Intergation - Create environment variables as sensitive in production & preview
2 votes · 0 comments
Add necessary query params to POSTGRES_PRISMA_URL for Vercel integration
2 votes · 0 comments
Skip preview branch creation via PR title or label
2 votes · 0 comments
No comments yet.