Skip to content

Commit

Permalink
Ensure vault file is created with 0700 rights fixes #505
Browse files Browse the repository at this point in the history
  • Loading branch information
oleiade committed Aug 17, 2021
1 parent a051fec commit 70cd3df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/trousseau/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func CreateAction(ct CryptoType, ca CryptoAlgorithm, recipients []string) error
return err
}

f, err := os.OpenFile(InferStorePath(config), os.O_CREATE|os.O_WRONLY, os.ModeAppend)
f, err := os.OpenFile(InferStorePath(config), os.O_CREATE|os.O_WRONLY, 0700)
if err != nil {
return err
}
Expand Down

0 comments on commit 70cd3df

Please sign in to comment.