Supabase New API Key Changes.- https://github.com/orgs/supabase/discussions/29260
Hi all, I am new to supabase and am struggling to understand how this change would impact going forward. I am using edge functions in Supabase and would like to know the impact. I do not want to use —no-verify-jwt. Do we continue using SUPABASE_SERVICE_ROLE_KEY and SUPABASE_ANON_KEY in our edge functions even after we disable the legacy JWT keys ? Do these existing variables get the new API Key values automatically assigned? What happens when the legacy keys are removed in 2026 ?
I saw this in a comment in the github link and am confused - " Also be aware instead of Deno.env.get("SERVICE_ROLEKEY") you should probably use the secret key. Create a new environment variable? We plan to launch automatically generated variables for the new API keys soon. Format: SUPABASE(PUBLISHABLE|SECRET)_<name of key, usually DEFAULT>_KEY. This will be both for Edge Functions and the Next.js / Vercel integration if you have it set up. "
And then this comment too - “The anon and service_role Edge function secrets become the publishable and secret keys when you switch to the new keys.”
Could anyone please help clarify. I am not finding any documents on this and am unable to post a question on that github space. Thank you !
#help-and-questions
I saw this in a comment in the github link and am confused - " Also be aware instead of Deno.env.get("SERVICE_ROLEKEY") you should probably use the secret key. Create a new environment variable? We plan to launch automatically generated variables for the new API keys soon. Format: SUPABASE(PUBLISHABLE|SECRET)_<name of key, usually DEFAULT>_KEY. This will be both for Edge Functions and the Next.js / Vercel integration if you have it set up. "
And then this comment too - “The anon and service_role Edge function secrets become the publishable and secret keys when you switch to the new keys.”
Could anyone please help clarify. I am not finding any documents on this and am unable to post a question on that github space. Thank you !
#help-and-questions