Skip to main content

redact_string

Function redact_string 

Source
pub fn redact_string(s: &str) -> String
Expand description

Redact a single free-form string (used for vs_inspect eval expressions in args_redacted). Replaces inline bearer ... / token = ... style secrets with ***. Matching is intentionally loose so casually-pasted credentials don’t survive the audit log.