config: Expand environment variables in some.config.value.path.file inputs for better secret management

This commit is contained in:
Jacek Galowicz 2026-03-26 12:08:18 +01:00 committed by kolaente
parent 6b225bb0ba
commit b2ddd2753c
1 changed files with 1 additions and 1 deletions

View File

@ -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 ""
}