From a487c4ef50c8185f2e38b858271270d46d4bb5a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=A5rtensson?= Date: Fri, 21 Nov 2025 10:15:34 +0100 Subject: [PATCH] fix: don't log full environment variables at default log level (#589) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Logging the full environment of the plugin container can potentially result in an unnecessarily long log line, but perhaps more importantly the credentials are visible as well. Signed-off-by: Andreas MÃ¥rtensson --- internal/cnpgi/restore/restore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cnpgi/restore/restore.go b/internal/cnpgi/restore/restore.go index 187143e..0aad1e5 100644 --- a/internal/cnpgi/restore/restore.go +++ b/internal/cnpgi/restore/restore.go @@ -157,7 +157,7 @@ func (impl JobHookImpl) Restore( config := getRestoreWalConfig() - contextLogger.Info("sending restore response", "config", config, "env", env) + contextLogger.Info("sending restore response", "config", config) return &restore.RestoreResponse{ RestoreConfig: config, Envs: nil,