Skip to main content

check_no_inline_secrets

Function check_no_inline_secrets 

Source
pub fn check_no_inline_secrets(
    value: &Value,
    what: &str,
) -> Result<(), BundleError>
Expand description

Fail when value contains an inline credential: a non-empty string under a secret-looking key (api_key, token, password, an Authorization header…) that is not an environment reference (${VAR}). Keys ending in _env name a variable and are allowed. what names the file in the error message.