GitLab

Strengthen data security with custom PII detection rulesets

Apr 1, 2025Fernando Diaz
Strengthen data security with custom PII detection rulesets
SummaryAI, from the source post

This post introduces the ability to create custom PII detection rulesets for GitLab Secret Detection by extending the default ruleset with custom TOML files. It details the steps to configure Secret Detection in CI/CD, create a custom ruleset file with regex patterns for PII (passport numbers, phone numbers, email addresses), and extend the default configuration. It also demonstrates how to test these custom rules with a sample data file and highlights the use of GitLab Duo Chat for generating regex patterns, with examples for Canadian Zip Codes. Best practices for PII detection and future enhancements like GitLab Duo Workflow are also mentioned.

More from the AI-Assisted Features in DevSecOps trail