From b89d08c63d57d5491156ccc6061eda0f10a8e122 Mon Sep 17 00:00:00 2001 From: Oleksandr Piskun Date: Wed, 14 Oct 2026 15:04:36 +0000 Subject: [PATCH] fix: hide environment variables in the container create debug log Signed-off-by: Oleksandr Piskun --- lib/DeployActions/DockerActions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/DeployActions/DockerActions.php b/lib/DeployActions/DockerActions.php index cb82f6e96..0f6b588e6 100644 --- a/lib/DeployActions/DockerActions.php +++ b/lib/DeployActions/DockerActions.php @@ -167,7 +167,9 @@ public function deployExAppHarp(ExApp $exApp, DaemonConfig $daemonConfig, array $createPayload['resource_limits'] = $params['container_params']['resourceLimits']; } - $this->logger->debug(sprintf('Payload for /docker/exapp/create for %s: %s', $exAppName, json_encode($createPayload))); + $logPayload = $createPayload; + $logPayload['environment_variables'] = '[REDACTED]'; + $this->logger->debug(sprintf('Payload for /docker/exapp/create for %s: %s', $exAppName, json_encode($logPayload))); try { $response = $this->guzzleClient->post( sprintf('%s/%s', $dockerUrl, 'docker/exapp/create'),