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§
- Error
Sanitizer - Main error sanitization engine
- Redaction
Rule - Rule for redacting sensitive information from error messages
- Sanitized
Error - Sanitized error result with correlation ID
- Sanitizer
Config - Configuration for error sanitization behavior
- Sanitizer
Statistics - Statistics about the error sanitizer
Enums§
- Error
Context - Context where error occurred
- Error
Level - Error classification levels for secure error handling
- Error
Mode - Operating mode for error sanitization
Traits§
- Secure
Error - 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