Data classification allows you to classify columns and apply masking to those columns via the Global Masking Rule. This allows you to manage masking policy for many columns by controlling only a small number of classifications.
In the above example, column first_name
and last_name
will be applied Default Partial Masking
, because:
first_name
and last_name
are classified as Contact Info
.Contact Info
corresponds to security level 2
.Security level 2
applies semantic type Default Partial Masking
.You upload a JSON file containing the classification definition. The definition contains 2 sections:
This is a simple classification showing the structure:
A comprehensive data classification (English, Chinese) for the financial industry. It contains:
From the Global Masking Policy, you can define the masking level for each classification level.
If you turn off Sync classification from comment
, then you can manually set the classification for each column.
Go to the column definition and set the classification.
If you turn on Sync classification from comment
(by default it’s on), then the column classification is derived from the comment.
If the column format follows {classification id}-{comment}
such as 1-4-2-blabla
, then Bytebase will extract
1-4-2
as the classification id and assigns the column classification accordingly.
Check API.
Data classification allows you to classify columns and apply masking to those columns via the Global Masking Rule. This allows you to manage masking policy for many columns by controlling only a small number of classifications.
In the above example, column first_name
and last_name
will be applied Default Partial Masking
, because:
first_name
and last_name
are classified as Contact Info
.Contact Info
corresponds to security level 2
.Security level 2
applies semantic type Default Partial Masking
.You upload a JSON file containing the classification definition. The definition contains 2 sections:
This is a simple classification showing the structure:
A comprehensive data classification (English, Chinese) for the financial industry. It contains:
From the Global Masking Policy, you can define the masking level for each classification level.
If you turn off Sync classification from comment
, then you can manually set the classification for each column.
Go to the column definition and set the classification.
If you turn on Sync classification from comment
(by default it’s on), then the column classification is derived from the comment.
If the column format follows {classification id}-{comment}
such as 1-4-2-blabla
, then Bytebase will extract
1-4-2
as the classification id and assigns the column classification accordingly.
Check API.