mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
fix: support host storage paths and clean up cancelled deployments
Allow validated host file and directory mounts outside resource directories while protecting external paths from deletion. Clean up cancelled deployment containers and clear tracked process IDs. Preserve legacy KeyDB and Dragonfly password parsing, accept server backup paths without extension restrictions, and allow Compose variable proxy ports.
This commit is contained in:
@@ -46,6 +46,13 @@ use OpenApi\Attributes as OA;
|
||||
)]
|
||||
class ApplicationDeploymentQueue extends Model
|
||||
{
|
||||
/**
|
||||
* Kept in memory only, never saved.
|
||||
*
|
||||
* @var array<array-key, mixed>
|
||||
*/
|
||||
private array $remoteSecretsForRedaction = [];
|
||||
|
||||
protected static function booted(): void
|
||||
{
|
||||
static::created(function (ApplicationDeploymentQueue $deployment): void {
|
||||
@@ -179,6 +186,14 @@ class ApplicationDeploymentQueue extends Model
|
||||
return str($this->commit_message)->value();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<array-key, mixed> $secrets
|
||||
*/
|
||||
public function redactRemoteSecrets(array $secrets): void
|
||||
{
|
||||
$this->remoteSecretsForRedaction = $secrets;
|
||||
}
|
||||
|
||||
private function redactSensitiveInfo($text)
|
||||
{
|
||||
try {
|
||||
@@ -209,6 +224,8 @@ class ApplicationDeploymentQueue extends Model
|
||||
);
|
||||
}
|
||||
|
||||
$lockedVars = $lockedVars->merge(EnvironmentVariable::remoteSecretLogRedactionValues($this->remoteSecretsForRedaction));
|
||||
|
||||
foreach ($lockedVars as $key => $value) {
|
||||
$escapedValue = preg_quote($value, '/');
|
||||
$text = preg_replace(
|
||||
|
||||
Reference in New Issue
Block a user