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:
Andras Bacsai
2026-10-05 11:08:52 +02:00
parent 774e6bf178
commit 554bd354bf
94 changed files with 2922 additions and 357 deletions
+17
View File
@@ -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(