From 8ace0d18e36d07e10efe17c0e11b84e916450462 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Tue, 1 Sep 2026 20:48:39 +0200 Subject: [PATCH] fix(database): warn about PostgreSQL password overwrite on full restore --- .../livewire/project/database/import-form.blade.php | 4 ++++ tests/Feature/DatabaseRestoreDialogTest.php | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/resources/views/livewire/project/database/import-form.blade.php b/resources/views/livewire/project/database/import-form.blade.php index a8087bd8ed..dd57b121c2 100644 --- a/resources/views/livewire/project/database/import-form.blade.php +++ b/resources/views/livewire/project/database/import-form.blade.php @@ -57,6 +57,10 @@
@if ($resourceDbType === 'standalone-postgresql') @if ($dumpAll) + + The backup replaces PostgreSQL administrator role passwords, including the destination administrator password. + If the administrator password changes, update it in Coolify's database configuration after the restore. + diff --git a/tests/Feature/DatabaseRestoreDialogTest.php b/tests/Feature/DatabaseRestoreDialogTest.php index 0086a6cf2f..5f78706a8c 100644 --- a/tests/Feature/DatabaseRestoreDialogTest.php +++ b/tests/Feature/DatabaseRestoreDialogTest.php @@ -8,3 +8,13 @@ test('database restore output opens in the centered process dialog', function () ->toContain('') ->not->toContain('toContain('@if ($dumpAll)') + ->toContain('Full restore overwrites administrator passwords') + ->toContain('The backup replaces PostgreSQL administrator role passwords, including the destination administrator password.') + ->toContain("If the administrator password changes, update it in Coolify's database configuration after the restore."); +});