Skip to content

Commit

Permalink
fix Config file Permissions being to Open
Browse files Browse the repository at this point in the history
  • Loading branch information
speatzle committed Dec 17, 2021
1 parent 2c20350 commit 7f3059d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ func initConfig() {
cobra.CheckErr(err)

confDir = filepath.Join(confDir, "go-passbolt-cli")
_ = os.MkdirAll(confDir, 0755)
_ = os.MkdirAll(confDir, 0700)

viper.SetConfigPermissions(os.FileMode(0600))
viper.AddConfigPath(confDir)
viper.SetConfigType("toml")
viper.SetConfigName("go-passbolt-cli")
Expand Down

0 comments on commit 7f3059d

Please sign in to comment.