Auto PII Tagging
Auto PII tagging for Sensitive/NonSensitive at the column level is performed based on the two approaches described below.Tagging logic
- Column Name Scanner: We validate the column names of the table against a set of regex rules that help us identify common English patterns to identify email addresses, SSN, bank accounts, etc.
- Entity Recognition: The workflow samples rows directly from the source and validates them against an Entity
Recognition engine that identifies sensitive information from a list of supported entities.
The
confidenceparameter lets you tune the minimum score required to tag a column asPII.Sensitive. Enabling Store Sample Data saves those rows in OpenMetadata, but is not required for classification to run.
PII, we will ignore its execution.
Auto-classification vs Governance Automations
Both can apply tags to columns, but they work differently:
Use Governance Automations when:
- The source cannot be reached or sampled during the profiler run
- Sampled values are masked, anonymized, or don’t match the expected pattern
- You want to tag all columns matching a name pattern (for example, all columns named
person_idoremail)
Troubleshooting
Recognizer ran but tag was not applied
If the auto-classification logs show a recognizer attempted to classify a column but no tag appears:- Sampled values are masked or anonymized — the content recognizer found no match above the confidence threshold. Switch the recognizer
Targetto Column Name to tag based on the column name alone, regardless of data content. - Confidence score too low — the recognizer ran but scored below the threshold. Lower the confidence threshold or add context to boost the score.
- Column already tagged as PII — columns with an existing
PIItag are skipped. Check the column’s existing tags.
SSL: CERTIFICATE_VERIFY_FAILED
If you see an error similar to:Collate-ingestion image to have this command run there by default.