Skip to content

Commit

Permalink
Require KEYLESS_ prefix for environment variables
Browse files Browse the repository at this point in the history
This avoids accidental conflicts with generically named parameters like
hostname.
  • Loading branch information
cbroglie committed Jul 13, 2018
1 parent 619a879 commit d2c76d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/gokeyless/gokeyless.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ func initConfig() error {
pflag.Parse()
viper.BindPFlags(pflag.CommandLine)
viper.AutomaticEnv()
viper.SetEnvPrefix("KEYLESS")

viper.SetConfigType("yaml")
if configFile != "" {
Expand Down

0 comments on commit d2c76d1

Please sign in to comment.