PII Sanitization
Protect sensitive data in your logs.
Overview
Vestig automatically detects and redacts Personally Identifiable Information (PII) to:
- Prevent data leaks — No accidental exposure in logs
- Meet compliance — GDPR, HIPAA, PCI-DSS ready presets
- Zero configuration — Works out of the box
Quick Start
Sanitization is enabled by default:
typescript
Sanitization Presets
Vestig includes 6 presets for different compliance needs:
| Preset | Description | Use Case |
|---|---|---|
none | No sanitization | Development only |
minimal | Passwords and secrets only | Internal tools |
default | Common PII patterns | General use |
gdpr | EU data protection | GDPR compliance |
hipaa | Healthcare data | HIPAA compliance |
pci-dss | Payment card data | PCI-DSS compliance |
Using Presets
typescript
What Gets Sanitized
Field Name Detection
Fields are sanitized based on their names:
typescript
Pattern Detection
Values are analyzed for common patterns:
typescript
Preset Details
minimal
Only passwords and explicit secrets:
typescript
default
Common PII plus authentication data:
typescript
gdpr
EU data protection requirements:
typescript
hipaa
Healthcare data protection:
typescript
pci-dss
Payment card industry:
typescript
Custom Configuration
Extend presets or create your own:
typescript
Direct Sanitization
Sanitize data without logging:
typescript
Deep Object Sanitization
Vestig sanitizes nested objects and arrays:
typescript
Disable Sanitization
For development or when needed:
typescript
Next Steps
- Presets — Detailed preset configuration
- Custom Patterns — Create your own patterns