misc: set TLS certificate files perms to `0o600`

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
Hidde Beydals 2023-10-09 16:29:38 +02:00
parent 04612b539b
commit 09772bd092
No known key found for this signature in database
GPG Key ID: 979F380FC2341744
1 changed files with 1 additions and 1 deletions

View File

@ -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
} }