Skip to main content

Module redaction

Module redaction 

Source
Expand description

Redact secrets from strings intended for operator logs (not a crypto primitive).

Functions§

redact_url_credentials_for_logs
Remove URL username/password (userinfo) so connection strings can be logged safely.
redact_url_if_echoed_in_text
Replace exact occurrences of raw_connection_url in err_text with redact_url_credentials_for_logs output when they differ.