fn write_secret_file(path: impl AsRef<Path>, data: &[u8]) -> Result<()>
Write a file containing secret data to the filesystem, restricting the file permissions so it’s only readable by the owner