Module redaction

Module redaction 

Source
Expand description

Key redaction and safety utilities

This module provides utilities for redacting sensitive information (API keys, credentials) from logs, error messages, and debug output to prevent accidental credential leakage.

Structs§

Redacted
A wrapper type that automatically redacts its Debug output
RedactionFilter
Redaction filter for removing sensitive information from strings

Functions§

contains_sensitive_info
Check if a string contains sensitive information
get_redaction_filter
Get the global redaction filter (singleton)
redact
Redact sensitive information from a string using the global filter