misc: set TLS certificate files perms to `0o600`
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
parent
04612b539b
commit
09772bd092
|
@ -216,7 +216,7 @@ func storeTLSCertificateFiles(tlsBytes *stls.TLSBytes, path string) (string, str
|
||||||
|
|
||||||
func writeToFile(data []byte, filename, tmpDir string) (string, error) {
|
func writeToFile(data []byte, filename, tmpDir string) (string, error) {
|
||||||
file := path.Join(tmpDir, filename)
|
file := path.Join(tmpDir, filename)
|
||||||
err := os.WriteFile(file, data, 0o644)
|
err := os.WriteFile(file, data, 0o600)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue