pub fn read_secret_file(
path: &Path,
) -> Result<Secret<Vec<u8>>, SecurityProviderError>Expand description
Opens, permission-checks and reads a secret using the same file handle.
ยงErrors
Returns a redacted SecurityProviderError while retaining safe typed I/O
sources. Insecure permissions are retained as a closed contract source.