Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseβ€’7mo agoβ€’
5 replies
yootaki

How to regenerate individual service_role key?

Current situation
I need to rotate my service_role key, but the individual "Regenerate" button is no longer available in the Legacy API Keys section. I can see the key but there's no regenerate option. I'm currently using this key in Edge Functions.

Questions
1. Is it still possible to regenerate just the service_role key individually?
2. What's the recommended approach for rotating a compromised service_role key?
3. If using new Secret API keys with Edge Functions, what code changes are required?
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Service Role Key won’t regenerate (before and after rotation)
SupabaseSSupabase / help-and-questions
2mo ago
Alternative to service_role key?
SupabaseSSupabase / help-and-questions
3y ago
How to change Service_Role API key
SupabaseSSupabase / help-and-questions
5d ago
JWT Service Role Key
SupabaseSSupabase / help-and-questions
3d ago