Lightrun PII Redaction🔗
Lightrun PII (Personally Identifiable Information) redaction helps protect sensitive application data captured in production environments. It masks sensitive information before Dynamic Logs and Snapshots are shared through Lightrun. Examples include names, email addresses, credit card data, passwords, phone numbers, and social security numbers.
Lightrun provides two complementary redaction methods:
| Method | Description |
|---|---|
| Pattern-based PII redaction | Uses customer-configured Google RE2 patterns to mask values that match known field names or data formats. |
| AI Privacy Filter | Starting with Lightrun SaaS version 1.98, uses a context-aware model to detect supported categories of sensitive text in Dynamic Logs and Snapshots. |
You can use both methods together. Pattern-based rules provide deterministic protection for organization-specific identifiers and formats, while AI Privacy Filter adds context-aware detection.
Note
Starting with Lightrun version 1.22, PII Redaction patterns use Google's RE2 regular expression syntax. Validate existing and new patterns against representative data before using them in production.
Get started with PII Redaction🔗
Start by reviewing PII Redaction best practices, then select the controls that match your organization's data and security requirements.
For deterministic redaction, Lightrun supports two methods for setting patterns:
-
Configure custom PII Redaction patterns
Depending on your Lightrun subscription, you can apply patterns to the default Agent Pool or create templates for multiple Agent Pools.
- For a single Agent Pool, follow Configure PII Redaction.
- For multiple Agent Pools with RBAC, see Manage PII Redaction templates for Agent Pools.
-
Apply predefined patterns from the pattern library
Use the Patterns library to add predefined rules for common sensitive-data formats. For more information, see Configure PII Redaction using predefined patterns.
For context-aware detection, see AI Privacy Filter.