coolify/tests/Unit
Andras Bacsai 952f324797 fix(backup): use escapeshellarg for credentials in database backup commands
Apply proper shell escaping to all user-controlled values interpolated into
backup shell commands (PostgreSQL username/password, MySQL/MariaDB root
password, MongoDB URI). Also URL-encode MongoDB credentials before embedding
in connection URI. Adds unit tests for escaping behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-25 23:43:57 +01:00
..
Actions
Api
Jobs
Livewire
Notifications/Channels
Parsers
Policies
Project/Database
Rules
AllExcludedContainersConsistencyTest.php
ApplicationComposeEditorLoadTest.php
ApplicationConfigurationChangeTest.php
ApplicationDeploymentCustomBuildCommandTest.php
ApplicationDeploymentEmptyEnvTest.php
ApplicationDeploymentErrorLoggingTest.php
ApplicationDeploymentNixpacksNullEnvTest.php
ApplicationDeploymentTypeTest.php
ApplicationGitSecurityTest.php
ApplicationHealthcheckRemovalTest.php
ApplicationNetworkAliasesSyncTest.php
ApplicationParserStringableTest.php
ApplicationPortDetectionTest.php
ApplicationServiceEnvironmentVariablesTest.php
ApplicationSettingStaticCastTest.php
ApplicationWatchPathsTest.php
BashEnvEscapingTest.php
CheckForUpdatesJobTest.php
CheckTraefikVersionForServerJobTest.php
CheckTraefikVersionJobTest.php
ClickhouseOfficialImageMigrationTest.php
CloudInitScriptValidationTest.php
ComposerAuthEnvEscapingTest.php
ContainerHealthStatusTest.php
ContainerStatusAggregatorTest.php
CoolifyTaskCleanupTest.php
DatabaseBackupSecurityTest.php fix(backup): use escapeshellarg for credentials in database backup commands 2026-03-25 23:43:57 +01:00
DatalistComponentTest.php
DeploymentCommandNewlineInjectionTest.php
DeploymentExceptionTest.php
DockerComposeEmptyStringPreservationTest.php
DockerComposeEmptyTopLevelSectionsTest.php
DockerComposeLabelParsingTest.php
DockerComposePreserveRepositoryStartCommandTest.php
DockerComposeRawContentRemovalTest.php
DockerComposeRawSeparationTest.php
DockerfileArgInsertionTest.php
DockerImageAutoParseTest.php
DockerImageParserTest.php
EnvironmentVariableFillableTest.php
EnvironmentVariableMagicVariableTest.php
EnvironmentVariableParsingEdgeCasesTest.php
EnvVarInputComponentTest.php
EscapeShellValueTest.php
ExcludeFromHealthCheckTest.php
ExecuteInDockerEscapingTest.php
ExtractHardcodedEnvironmentVariablesTest.php
ExtractYamlEnvironmentCommentsTest.php
FileStorageSecurityTest.php
FormatBytesTest.php
FormatContainerStatusTest.php
GetContainersStatusEmptyContainerSafeguardTest.php
GetContainersStatusServiceAggregationTest.php
GitlabSourceCommandsTest.php
GitLsRemoteParsingTest.php
GitRefValidationTest.php
GlobalSearchNewImageQuickActionTest.php
HealthCheckCommandInjectionTest.php
HetznerDeletionFailedNotificationTest.php
HetznerServiceTest.php
HetznerSshKeysTest.php
LocalFileVolumeReadOnlyTest.php
LogDrainCommandInjectionTest.php
LogViewerXssSecurityTest.php
MetricsDownsamplingTest.php
NestedEnvironmentVariableParsingTest.php
NestedEnvironmentVariableTest.php
NotifyOutdatedTraefikServersJobTest.php
ParseCommandsByLineForSudoTest.php
ParseDockerVolumeStringTest.php
ParseEnvFormatToArrayTest.php
PathTraversalSecurityTest.php
PostgresqlInitScriptSecurityTest.php
PostgRESTDetectionTest.php
PreSaveValidationTest.php
PreviewDeploymentBindMountTest.php
PreviewDeploymentPortTest.php
PrivateKeyStorageTest.php
ProxyConfigRecoveryTest.php
ProxyConfigurationSecurityTest.php
ProxyCustomCommandsTest.php
ProxyHelperTest.php
RestartCountTrackingTest.php
RestoreJobFinishedNullServerTest.php
RestoreJobFinishedSecurityTest.php
RestoreJobFinishedShellEscapingTest.php
S3RestoreSecurityTest.php
S3RestoreTest.php
S3StorageTest.php
SanitizeLogsForExportTest.php
ScheduledJobManagerLockTest.php
ScheduledJobsRetryConfigTest.php
ScheduledTaskJobTimeoutTest.php
ServerManagerJobExecutionTimeTest.php
ServerManagerJobSentinelCheckTest.php
ServerQueryScopeTest.php
ServerStatusAccessorTest.php
ServiceApplicationPrerequisitesTest.php
ServiceConfigurationRefreshTest.php
ServiceExcludedStatusTest.php
ServiceIndexValidationTest.php
ServiceNameSecurityTest.php
ServiceParserEnvVarPreservationTest.php
ServiceParserImageUpdateTest.php
ServiceParserPathDuplicationTest.php
ServiceParserPortDetectionLogicTest.php
ServicePortSpecificVariablesTest.php
ServiceRequiredPortTest.php
SshCommandInjectionTest.php
SshKeyValidationTest.php
SshMultiplexingDisableTest.php
SshRetryMechanismTest.php
StartKeydbConfigPermissionTest.php
StartProxyTest.php
StartRedisConfigPermissionTest.php
StartupExecutionCleanupTest.php
StopProxyTest.php
StripCoolifyCustomFieldsTest.php
TimescaleDbDetectionTest.php
UnmanagedContainerCommandInjectionTest.php
UpdateComposeAbbreviatedVariablesTest.php
UpdateCoolifyTest.php
ValidateShellSafePathTest.php
ValidationPatternsTest.php
ValidGitRepositoryUrlTest.php
ValidHostnameTest.php
ValidProxyConfigFilenameTest.php
VolumeArrayFormatSecurityTest.php
VolumeSecurityTest.php
WindowsPathVolumeTest.php