Create a Column Name Regex Identifier
In previous documentation, identifier is referred to as classifier. The language is being updated to identifier to be more accurate and not conflate meaning with the Immuta data classification and frameworks feature.
Use case: Custom column name regex identifier
Scenario: You've listed Immuta's built-in identifiers for sensitive data discovery, but you discover there is no identifier that can automatically detect and tag columns that contain account numbers in your database.
A custom column name regular expression (regex) identifier allows you to create your own detectors that enable Immuta's sensitive data discovery to find column name matches based on a regex pattern. For example, if your database contains tables with social security numbers, you could define a regex pattern to match against the names of the column instead of the values within the column. The tutorial below uses this scenario to illustrate creating this identifier.
Attributes of the custom column name regex identifier
Attributes of all custom identifiers are provided on the Sensitive data discovery API page. However, attributes specific to the custom column name regex identifier are outlined in the table below.
Attribute | Description | Required |
---|---|---|
name |
| Yes |
displayName |
| Yes |
description |
| Yes |
type |
| Yes |
config |
| Yes |
tags* |
| Yes |
columnNameRegex* |
| Yes |
Create a custom column name regex identifier
Generate your API key on the API Keys tab on your profile page and save the API key somewhere secure. You will include this API key in the authorization header when you make a request to the Immuta API or use it to configure your instance with the Immuta CLI.
Save the custom column name regex identifier payload in a .json file. The regex
^ssn|social ?security$
looks for column names that matchssn
,socialsecurity
, orsocial security
.Create the identifier using one of these methods:
Immuta CLI
If the request is successful, you will receive a response that contains details about the identifier.
What's Next
Continue to one of the following tutorials:
Run sensitive data discovery on data sources: Trigger SDD to run on specified data sources.
Create a template: Although only data governors can create identifiers, data owners can add identifiers to templates, which they then apply to their data sources to override
minConfidence
or tags for identifiers within the template.
Last updated