From be9c67a7615633e3879828e3295ca5469525243f Mon Sep 17 00:00:00 2001
From: Monica Khoury <99693443+monicakh@users.noreply.github.com>
Date: Mon, 21 Sep 2026 17:13:33 +0300
Subject: [PATCH] fix: warn that resetting the DB password affects pooler and
read replicas (#50649)
## What kind of change does this PR introduce?
Fixes:
[FE-3607](https://linear.app/supabase/issue/FE-3607/re-proper-ui-warning-when-changing-db-password).
## What is the current behavior?
`ResetDbPasswordDialog` (the "Reset database password" dialog, reachable
from Database Settings and the Connect sheet) only validates password
strength. It has no warning about what actually happens when the
password changes: the same password is shared across the direct
connection, the pooler, read replicas, and third-party integrations
(Warehouse, ORMs, backend services) that have it configured. Resetting
it silently breaks any of those still using the old value.
## What is the new behavior?
Adds an `Admonition` warning inside the shared `ResetDbPasswordDialog`
component explaining that the pooler, read replicas, and any
app/ORM/tool using the old password will be disconnected. Added to the
shared dialog itself (not the Database Settings page wrapper) so both
places it's embedded, the Database Settings page and the Connect sheet's
direct-connection step, get the warning automatically.
## Additional context
No behavior change to the reset flow itself, copy-only addition. No new
tests added since this doesn't introduce new logic/branches.
## Summary by CodeRabbit
- **Improvements**
- Added a warning to the database password reset dialog explaining that
the password is shared across all connection methods.
- Clarified that resetting the password disconnects the pooler, read
replicas, and applications, ORMs, or tools using the previous password.
---
.../Database/DatabaseSettings/ResetDbPasswordDialog.tsx | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPasswordDialog.tsx b/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPasswordDialog.tsx
index 9e3bde80045..9e64e5a1107 100644
--- a/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPasswordDialog.tsx
+++ b/apps/studio/components/interfaces/Settings/Database/DatabaseSettings/ResetDbPasswordDialog.tsx
@@ -14,6 +14,7 @@ import {
DialogTitle,
DialogTrigger,
} from 'ui'
+import { Admonition } from 'ui-patterns/Admonition'
import { Input } from 'ui-patterns/DataInputs/Input'
import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'
@@ -155,6 +156,10 @@ export const ResetDbPasswordDialog = ({
+
+ Resetting it will disconnect the pooler, read replicas, and any app, ORM, or tool still
+ using the old password. Update it everywhere before switching over.
+