Skip to main content

Module redact

Module redact 

Source
Expand description

Credential and path redaction for diagnostic bundles.

Redactor compiles all patterns once at construction time and applies them in redact_text / redact_path. The trace_id field on AppError::Internal is intentionally NOT redacted — it is the link between a user-visible error and the corresponding log lines.

Structs§

Redactor
Compiled redaction patterns.

Enums§

RedactionLevel
Controls how aggressively account IDs are redacted.

Functions§

dirs_home 🔒
Return the current user’s home directory as a string, without a trailing slash. Returns None when the home directory cannot be determined.