fix(R-1187): the .fab import loads the database through the backup side (mariadb-admin/mariadb, the container's own credentials)
gates / gates (push) Successful in 48s

Found live on 9202: every MariaDB 11+ import timed out (mysqladmin/mysql absent). Red-proved.
This commit is contained in:
2026-10-26 21:58:11 +01:00
parent 5d07c4e923
commit 90a2530689
4 changed files with 96 additions and 130 deletions
@@ -185,10 +185,8 @@ func TestR1187g_PostgisIsPostgresAndPsqlStopsOnError(t *testing.T) {
t.Errorf("%s is not classified as PostgreSQL: %+v", img, info)
}
}
args := strings.Join(psqlImportArgs("c", "u", "d"), " ")
if !strings.Contains(args, "--set=ON_ERROR_STOP=1") {
t.Fatalf("psql does not stop on error: %s", args)
}
// The load itself goes through appbackup.ImportDump (psql -v ON_ERROR_STOP=1 --single-transaction) since the
// import's own client calls were removed — TestR1187_TheImportLoadsTheDumpThroughTheBackupSide.
}
// (b), the security review's case: a link already in the destination folder (left by the old app, or made by an earlier