Skip to main content

redact_secrets

Function redact_secrets 

Source
pub fn redact_secrets(value: &mut Value)
Expand description

Walk a JSON Value tree and redact any field ending in _secret.

Applies the AFD convention: _secret suffix signals sensitive data. String values are replaced with "***". Call this before serializing config or log output in any format (JSON, YAML, plain).