Skip to main content

BUILTINS

Static BUILTINS 

Source
pub static BUILTINS: LazyLock<Vec<Builtin>>
Expand description

The 30-pattern catalogue. Order is purely cosmetic.

Entries that share a provider use the same provider_id so downstream tooling can group them; severity reflects how bad a leak is (high = hard credential, medium = quasi-credential, low = identifier or catch-all). Patterns that recognise a shape but have no central retrieval flow (jwt, private-key-*, *-url) omit the metadata layer.

Wrapped in LazyLock because each Builtin carries a OnceLock<Regex> for lazy regex compilation, and Rust does not allow interior mutability directly in a static slot. Access via builtins / find (or BUILTINS.iter() if you really need a direct slice).