Skip to content

Commit

Permalink
Change umask when creating config file to exclude user write (stashap…
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutPants authored and halkeye committed Sep 1, 2024
1 parent a509dfe commit 9ad4db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/manager/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ func (i *Config) Write() error {
return err
}

return os.WriteFile(i.filePath, data, 0644)
return os.WriteFile(i.filePath, data, 0640)
}

func (i *Config) Marshal() ([]byte, error) {
Expand Down

0 comments on commit 9ad4db7

Please sign in to comment.