Skip to content

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:

For context-aware detection, see AI Privacy Filter.


Last update: November 18, 2026