Skip to content

Commit

Permalink
misc: set TLS certificate files perms to 0o600
Browse files Browse the repository at this point in the history
Signed-off-by: Hidde Beydals <[email protected]>
  • Loading branch information
hiddeco committed Oct 10, 2023
1 parent 4aedf81 commit babe98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/helm/getter/client_opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func storeTLSCertificateFiles(tlsBytes *stls.TLSBytes, path string) (string, str

func writeToFile(data []byte, filename, tmpDir string) (string, error) {
file := path.Join(tmpDir, filename)
err := os.WriteFile(file, data, 0o644)
err := os.WriteFile(file, data, 0o600)
if err != nil {
return "", err
}
Expand Down

0 comments on commit babe98a

Please sign in to comment.