Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
Loading...
Searching...
No Matches
kcenon::logger::security Namespace Reference

Namespaces

namespace  detail
 

Classes

class  audit_logger
 Secure audit logging with tamper detection. More...
 
interface  critical_logger_interface
 Interface for loggers that support emergency flushing. More...
 
class  log_sanitizer
 Log sanitizer for masking sensitive data. More...
 
class  path_validator
 Validates file paths to prevent security vulnerabilities. More...
 
struct  sanitization_rule
 Configuration for a sanitization rule. More...
 
class  secure_key
 RAII wrapper for encryption keys with secure memory management. More...
 
class  secure_key_storage
 Secure storage and retrieval of encryption keys. More...
 
class  signal_manager
 Manager for safe signal handler installation. More...
 
interface  signal_manager_interface
 Interface for signal handler management. More...
 

Enumerations

enum class  sensitive_data_type {
  credit_card , ssn , api_key , password ,
  email , ip_address , phone_number , custom
}
 Types of sensitive data that can be automatically detected. More...
 

Functions

log_sanitizer make_default_sanitizer ()
 Create a sanitizer with common patterns pre-configured.
 

Enumeration Type Documentation

◆ sensitive_data_type

Types of sensitive data that can be automatically detected.

Enumerator
credit_card 

Credit card numbers (Visa, MC, Amex, etc.)

ssn 

Social Security Numbers (US format)

api_key 

API keys (sk-, api_, bearer tokens)

password 

Password fields in key=value format.

email 

Email addresses.

ip_address 

IPv4 addresses.

phone_number 

Phone numbers (various formats)

custom 

Custom user-defined patterns.

Examples
/home/runner/work/logger_system/logger_system/include/kcenon/logger/security/log_sanitizer.h.

Definition at line 39 of file log_sanitizer.h.

39 {
41 ssn,
42 api_key,
43 password,
44 email,
47 custom
48};
@ api_key
API keys (sk-, api_, bearer tokens)
@ phone_number
Phone numbers (various formats)
@ password
Password fields in key=value format.
@ credit_card
Credit card numbers (Visa, MC, Amex, etc.)
@ ssn
Social Security Numbers (US format)
@ custom
User-defined custom fields.

Function Documentation

◆ make_default_sanitizer()

log_sanitizer kcenon::logger::security::make_default_sanitizer ( )
inline

Create a sanitizer with common patterns pre-configured.

Returns
A log_sanitizer with credit_card, ssn, api_key, password, and email patterns
Examples
/home/runner/work/logger_system/logger_system/include/kcenon/logger/security/log_sanitizer.h.

Definition at line 298 of file log_sanitizer.h.

298 {
299 log_sanitizer sanitizer;
300 sanitizer.add_common_patterns();
301 return sanitizer;
302}
Log sanitizer for masking sensitive data.
log_sanitizer & add_common_patterns()
Add all common patterns at once.

References kcenon::logger::security::log_sanitizer::add_common_patterns().

Here is the call graph for this function: