coolify/app/Actions/Database
Andras Bacsai f0e955bf45 refactor(database): escape postgres_user in SSL chown command
Apply escapeshellarg() to the Postgres username before interpolating it
into the chown command used to fix SSL certificate ownership, matching
the handling already in place for StartMysql. This keeps the sink-side
escaping consistent across database actions, independent of upstream
input validation.

Also adjusts an assertion in DatabaseSslCredentialEscapingTest to match
the actual double-escaped output of executeInDocker, and adds Postgres
regression cases for subshell and semicolon payloads.
2026-04-20 21:41:48 +02:00
..
RestartDatabase.php Fix database restart to skip unnecessary Docker cleanup 2025-11-20 17:15:45 +01:00
StartClickhouse.php fix(database): prevent command injection in healthcheck via CMD exec-form 2026-04-20 13:17:15 +02:00
StartDatabase.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
StartDatabaseProxy.php Merge remote-tracking branch 'origin/next' into fix/configurable-proxy-timeout 2026-03-10 10:01:46 +01:00
StartDragonfly.php fix(database): prevent command injection in healthcheck via CMD exec-form 2026-04-20 13:17:15 +02:00
StartKeydb.php fix(database): prevent command injection in healthcheck via CMD exec-form 2026-04-20 13:17:15 +02:00
StartMariadb.php fix(database): use && instead of || for conf null/empty checks 2026-04-20 13:12:16 +02:00
StartMongodb.php fix(database): enforce credential format validation and sanitize init/SSL arguments 2026-04-20 13:58:36 +02:00
StartMysql.php fix(database): enforce credential format validation and sanitize init/SSL arguments 2026-04-20 13:58:36 +02:00
StartPostgresql.php refactor(database): escape postgres_user in SSL chown command 2026-04-20 21:41:48 +02:00
StartRedis.php fix(database): use && instead of || for conf null/empty checks 2026-04-20 13:12:16 +02:00
StopDatabase.php fix(restart): reset restart count when resource is manually stopped 2025-12-27 15:21:19 +01:00
StopDatabaseProxy.php chore: prepare for PR 2026-02-03 15:32:03 +01:00