From b2ddd2753c030f17d1629144e2a0a3f5cf9e7d9a Mon Sep 17 00:00:00 2001 From: Jacek Galowicz Date: Thu, 26 Mar 2026 12:08:18 +0100 Subject: [PATCH] config: Expand environment variables in some.config.value.path.file inputs for better secret management --- pkg/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 764f33196..f57248242 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -515,7 +515,7 @@ func GetConfigValueFromFile(configKey string) string { if !strings.HasSuffix(configKey, ".file") { configKey += ".file" } - var valuePath = viper.GetString(configKey) + var valuePath = os.ExpandEnv(viper.GetString(configKey)) if valuePath == "" { return "" }