feat: secure Windows client spool state
This commit is contained in:
@@ -50,7 +50,7 @@ func writeIdentityAtomically(path string, data []byte) (result error) {
|
||||
_ = os.Remove(temporaryPath)
|
||||
}
|
||||
}()
|
||||
if err := temporary.Chmod(0o600); err != nil {
|
||||
if err := securePrivateFile(temporaryPath); err != nil {
|
||||
_ = temporary.Close()
|
||||
return fmt.Errorf("secure client identity temporary file: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user