Roadmap priority
9
Goal
Provide safe, additive custom regex controls for PII scrubbing without allowing projects or organizations to disable mandatory privacy protections.
Custom regex patterns should extend existing scrubbing capabilities rather than replace them.
Current state
Motivation
Built-in heuristics cover common emails, tokens, phones, and payment card patterns. Deny-keys cover known property names.
Some teams need domain-specific string matching that is difficult to express as field names alone, for example:
Internal employee identifiers
National identification numbers
Customer-specific account formats
Legacy application identifiers
Custom regex controls should make these use cases possible while preserving mandatory privacy protections.
Deliverables
Custom regex controls
Safety
Quality
Merge semantics
Custom regex patterns are additive only.
Built-in defaults
+
Organization defaults (#477)
+
Project deny-keys
+
Custom regex patterns
↓
Effective scrubbed output
Custom regex patterns must never:
- disable mandatory built-in protections
- replace existing built-in patterns
- silently remove supported organization or project defaults
Feature-specific merge rules defined by #477 remain compatible with this model.
Technical notes
- Prefer extending existing PII settings models rather than introducing parallel configuration systems.
- Invalid custom patterns must fail validation rather than silently disabling scrubbing behavior.
- Prefer omission over partial scrubbing failures when safety guarantees cannot be maintained.
- Custom regex patterns should be evaluated after built-in protections and deny-keys.
- Organization-level inheritance of custom regex patterns is intentionally deferred to future roadmap work.
- Existing RBAC and authorization rules remain applicable.
Related
Out of scope
- Organization-level inheritance of custom regex patterns
- Automatic replacement of built-in PII protections
- Disabling mandatory built-in scrubbing behavior
- Automatic historical backfill when custom patterns change
- RBAC redesign or permissions changes
- Cross-organization sharing of custom regex configurations
- Changing the default built-in pattern set without an explicit product decision
Base branch
develop
Suggested acceptance checks
- Custom regex patterns are validated safely before storage.
- Built-in privacy protections remain enabled regardless of custom configuration.
- Custom regex patterns are applied additively alongside existing deny-keys and organization defaults.
- Invalid or unsafe patterns are rejected appropriately.
- Dashboard UI clearly distinguishes deny-keys from regex-based rules.
- Tests cover merge behavior, validation, ReDoS protections, and placeholder stability.
- Existing project-scoped PII functionality continues to work when no custom regex patterns are configured.
- Documentation describes the relationship between built-in protections, organization defaults, project settings, and custom regex controls.
Roadmap priority
9
Goal
Provide safe, additive custom regex controls for PII scrubbing without allowing projects or organizations to disable mandatory privacy protections.
Custom regex patterns should extend existing scrubbing capabilities rather than replace them.
Current state
Motivation
Built-in heuristics cover common emails, tokens, phones, and payment card patterns. Deny-keys cover known property names.
Some teams need domain-specific string matching that is difficult to express as field names alone, for example:
Custom regex controls should make these use cases possible while preserving mandatory privacy protections.
Deliverables
Custom regex controls
Safety
Quality
Merge semantics
Custom regex patterns are additive only.
Custom regex patterns must never:
Feature-specific merge rules defined by #477 remain compatible with this model.
Technical notes
Related
Out of scope
Base branch
developSuggested acceptance checks