From 523419e3fcbdbde98528e872432b1dd7daf29068 Mon Sep 17 00:00:00 2001
From: Terry Sutton
Date: Mon, 3 Mar 2025 13:16:39 -0330
Subject: [PATCH] Update language
---
.../components/interfaces/Settings/API/JWTSettings.tsx | 7 ++++---
.../components/ui/ProjectSettings/DisplayApiSettings.tsx | 2 +-
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/apps/studio/components/interfaces/Settings/API/JWTSettings.tsx b/apps/studio/components/interfaces/Settings/API/JWTSettings.tsx
index 56b739eee9d..001bbe4cdb8 100644
--- a/apps/studio/components/interfaces/Settings/API/JWTSettings.tsx
+++ b/apps/studio/components/interfaces/Settings/API/JWTSettings.tsx
@@ -225,9 +225,10 @@ const JWTSettings = () => {
A random secret will be created, or you can create your own.
- This will invalidate all existing API keys, including your{' '}
+ This will invalidate your{' '}
service_role and{' '}
- anon keys.
+ anon API keys, and sign out all
+ users authenticated through Supabase Auth.
@@ -247,7 +248,7 @@ const JWTSettings = () => {
},
}}
>
- Generate new API Keys
+ Generate a random secret
) : (
diff --git a/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx b/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx
index 5e7b83d3c39..47aded807d3 100644
--- a/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx
+++ b/apps/studio/components/ui/ProjectSettings/DisplayApiSettings.tsx
@@ -149,7 +149,7 @@ const DisplayApiSettings = ({
(legacy ? 'Prefer using Secret API keys instead.' : '')
}
/>
- {true && x.tags === 'service_role' && (
+ {hasServiceRoleKeyLeak && x.tags === 'service_role' && (
Urgent: Service Role key leak detected