diff --git a/cmd/admin/setup/config.go b/cmd/admin/setup/config.go index f5bc602d57..9256a03192 100644 --- a/cmd/admin/setup/config.go +++ b/cmd/admin/setup/config.go @@ -2,6 +2,7 @@ package setup import ( "bytes" + "strings" "github.com/mitchellh/mapstructure" "github.com/spf13/viper" @@ -57,6 +58,9 @@ type encryptionKeyConfig struct { } func MustNewSteps(v *viper.Viper) *Steps { + viper.AutomaticEnv() + viper.SetEnvPrefix("ZITADEL") + viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_")) v.SetConfigType("yaml") err := v.ReadConfig(bytes.NewBuffer(defaultSteps)) logging.OnError(err).Fatal("unable to read setup steps")