From 5584b8b8117c7a05fdfb2084980927cf388b1462 Mon Sep 17 00:00:00 2001 From: Kim Bassett Date: Tue, 23 Jun 2026 14:12:43 -0700 Subject: [PATCH] [proxy] Skipping logging config value on errors Old switchboard proxy logic would log the config value when loading the configuration failed. This could leak sensitive credentials unnecessarily. Align with the pattern in other components and only log an error value for troubleshooting rather than the full value. [TNZ-97934] ai-assisted=yes --- .../cloudfoundry-incubator/switchboard/cmd/proxy/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/cloudfoundry-incubator/switchboard/cmd/proxy/main.go b/src/github.com/cloudfoundry-incubator/switchboard/cmd/proxy/main.go index ca0ae00f9..1f9d32aa7 100644 --- a/src/github.com/cloudfoundry-incubator/switchboard/cmd/proxy/main.go +++ b/src/github.com/cloudfoundry-incubator/switchboard/cmd/proxy/main.go @@ -33,7 +33,7 @@ func main() { err = rootConfig.Validate() if err != nil { - logger.Fatal("Error validating config:", err, lager.Data{"config": rootConfig}) + logger.Fatal("Error validating config:", err) } if _, err := os.Stat(rootConfig.StaticDir); os.IsNotExist(err) {