Skip to main content

resolve

Function resolve 

Source
pub fn resolve(
    file: Option<&Path>,
    inline: Option<&str>,
    name: &str,
) -> Option<Secret>
Expand description

Resolves a configured secret from a file or an inline value.

A successfully read file takes precedence and is trimmed; an empty file yields None instead of falling back inline. Read failures are logged and permit the inline value to be used, while empty values are discarded.