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_urlinerr_textwithredact_url_credentials_for_logsoutput when they differ.