Skip to main content

read_secret_file

Function read_secret_file 

Source
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.