Skip to content

Commit

Permalink
fix: add default okd mode 440
Browse files Browse the repository at this point in the history
Signed-off-by: sebastien.heurtematte <[email protected]>
  • Loading branch information
heurtematte committed Oct 4, 2023
1 parent 6594393 commit 03d9087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func readConfig(path string) error {
return err
}

if perms := permbits.FileMode(fi.Mode()); perms != 0o600 && perms != 0o400 {
if perms := permbits.FileMode(fi.Mode()); perms != 0o600 && perms != 0o400 && perms != 0o440 {
return fmt.Errorf("permissions of %q are insecure: %s, please use 0600 or 0400", path, perms)
}

Expand Down

0 comments on commit 03d9087

Please sign in to comment.