© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3mo ago•
2 replies
Parth220

Unable to rotate service role key anymore!

Hi I want to rotate the service role, as I am terminating someone on my team who previously had access to it.

In the past this doc's instructions worked: https://supabase.com/docs/guides/troubleshooting/rotating-anon-service-and-jwt-secrets-1Jq6yd


But now the new API Keys system does not allow me to rotate legacy keys!
https://supabase.com/dashboard/project/__/settings/api-keys/new

Additionally doing a drop in replacement on supabase-py for the supabase_key where I used my service key returns a
supabase._async.client.SupabaseException: Invalid API key
supabase._async.client.SupabaseException: Invalid API key
error!

Would really appreciate some help here!
Supabase Docs | Troubleshooting | Rotating Anon, Service, and JWT S...
Supabase is the Postgres development platform providing all the backend features you need to build a product.
Supabase Docs | Troubleshooting | Rotating Anon, Service, and JWT S...
Settings | Supabase
Supabase Studio
Settings | Supabase
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

rotate legacy service role key?
SupabaseSSupabase / help-and-questions
4mo ago
How can I rotate the service role key
SupabaseSSupabase / help-and-questions
2mo ago
Alternative to service_role key?
SupabaseSSupabase / help-and-questions
3y ago
JWT Service Role Key
SupabaseSSupabase / help-and-questions
3d ago