Skip to content

Commit 09772bd

Browse files
committed
misc: set TLS certificate files perms to 0o600
Signed-off-by: Hidde Beydals <[email protected]>
1 parent 04612b5 commit 09772bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/helm/getter/client_opts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func storeTLSCertificateFiles(tlsBytes *stls.TLSBytes, path string) (string, str
216216

217217
func writeToFile(data []byte, filename, tmpDir string) (string, error) {
218218
file := path.Join(tmpDir, filename)
219-
err := os.WriteFile(file, data, 0o644)
219+
err := os.WriteFile(file, data, 0o600)
220220
if err != nil {
221221
return "", err
222222
}

0 commit comments

Comments
 (0)