Apply classification
, which will apply the classification to the database via API. All the classifications should be defined in one file in the root directory as masking/classification.json
. The code it calls Bytebase API is as follows:
masking/data-classification.json
, creating a PR and merging, you can apply the classification. Go to Bytebase console, click Data Access > Data Classification, you can see the classification is applied.
Here in the github workflow, we also apply global masking rule and column masking with classification with files masking/global-masking-rule-classification.json
and masking/databases/test-sample-instance/hr_test/database-catalog-classification.json
.