pub fn load_plaintext_secrets(
plaintext: &[u8],
format: Option<SecretsFormat>,
) -> Result<PatternCompileResult>Expand description
Load and parse a plaintext secrets file into ScanPatterns.
This function mirrors load_encrypted_secrets but skips
AES decryption and password prompts entirely. It preserves
memory hygiene by zeroizing parsed entries after compilation.
§Arguments
plaintext— raw bytes of the secrets file (JSON / YAML / TOML).format— optional explicit format override.
§Security
Even for unencrypted secrets, entries are zeroized after pattern compilation to minimise the window during which sensitive values reside in memory.
§Errors
Returns [SanitizeError::SecretsError] if parsing or pattern
compilation fails.