Popular PostgreSQL masking tool pg_anon misses non-English PII columns by default
A developer testing TantorLabs' pg_anon tool on a Chilean PostgreSQL database found that it correctly identified only 1 of 8 personal data columns — the email field — because its built-in detection rules are written for English-language schemas. Columns with Spanish names such as nombre, apellido, telefono, and rut passed through unmasked, with no error or warning from the tool. The tool works by matching column names against English regex patterns, then scanning data values for recognisable formats, but it has no rules for non-English national ID formats like Chile's RUT, Brazil's CPF, or India's Aadhaar. The developer resolved the issue by writing a custom meta-dictionary with Spanish column-name rules and a RUT-specific regex, raising detection from 1 of 8 to 8 of 8 with no false positives. The custom Spanish rules have been published in a public repository called pg-anon-rules-es so other developers working with non-English schemas can avoid starting from scratch.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in