Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update DisplayApiSettings.tsx | add note on how to rotate service_rol… (#30366)

TheOtherBrian160c0d5fe84f6
diff --git a/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx b/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx
index 9cf249a7ca3..c45e703792a 100644
--- a/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx
+++ b/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx
@@ -121,7 +121,7 @@ const DisplayApiSettings = ({ legacy }: { legacy?: boolean }) => {
onChange={() => {}}
descriptionText={
x.tags === 'service_role'
- ? 'This key has the ability to bypass Row Level Security. Never share it publicly. ' +
+ ? 'This key has the ability to bypass Row Level Security. Never share it publicly. If leaked, generate a new JWT secret immediately. ' +
(legacy ? 'Prefer using Publishable API keys instead.' : '')
: 'This key is safe to use in a browser if you have enabled Row Level Security for your tables and configured policies. ' +
(legacy ? 'Prefer using Secret API keys instead.' : '')