mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Fixing excessive unix file permissions (#14791)
* Fixing excessive unix file permissions * CL * reduce the permission from 750 to 700
This commit is contained in:
@@ -76,7 +76,7 @@ func (c *OperatorRaftSnapshotSaveCommand) Run(args []string) int {
|
||||
|
||||
w := &lazyOpenWriter{
|
||||
openFunc: func() (io.WriteCloser, error) {
|
||||
return os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0o644)
|
||||
return os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0o600)
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user