Module error_sanitizer

Module error_sanitizer 

Source
Expand description

Error message sanitization system for preventing information disclosure

This module provides a comprehensive error sanitization system that ensures sensitive information is not leaked through error messages while maintaining useful debugging capabilities for developers.

Structs§

ErrorSanitizer
Main error sanitization engine
RedactionRule
Rule for redacting sensitive information from error messages
SanitizedError
Sanitized error result with correlation ID
SanitizerConfig
Configuration for error sanitization behavior
SanitizerStatistics
Statistics about the error sanitizer

Enums§

ErrorContext
Context where error occurred
ErrorLevel
Error classification levels for secure error handling
ErrorMode
Operating mode for error sanitization

Traits§

SecureError
Trait for secure error handling with multiple disclosure levels

Functions§

init_global_sanitizer
Initialize the global error sanitizer with custom configuration
sanitize_build_error
Sanitize build error for safe external reporting
sanitize_error
Quick sanitization functions using global sanitizer
sanitize_io_error
Sanitize IO error for safe external reporting
sanitize_parse_error
Sanitize parse error for safe external reporting
sanitize_security_error
Sanitize security error for safe external reporting
with_global_sanitizer
Get access to the global error sanitizer