Search before asking
Description
Support data masking access control at the user/role level, that is, specific users/roles can only access masking data. Similar to Ranger column masking in offline data warehouse Hive.
Use case
- Take the two rows of data in the order table
orders as an example, the sample data is as follows

- Set data masking policy,the administrator configures users, tables, columns, and data masking conditions, such as the configuration below.

- User access data
When a user queries data in the orders table on Flink, SQL will be regenerated at the bottom layer based on the user's data masking conditions, that is, the data masking will take effect. When user A and user B execute the same SQL below, they will see different result data.
3.1 The result data viewed by user A is as follows, and the data in the customer_name field is completely masked.

3.2 The result data viewed by user B is as follows. The data in the customer_name field will only display the first 4 digits, and the rest will be replaced by x.

Related issues
no
Are you willing to submit a PR?
Code of Conduct
Search before asking
Description
Support data masking access control at the user/role level, that is, specific users/roles can only access masking data. Similar to Ranger column masking in offline data warehouse Hive.
Use case
ordersas an example, the sample data is as followsWhen a user queries data in the
orderstable on Flink, SQL will be regenerated at the bottom layer based on the user's data masking conditions, that is, the data masking will take effect. When user A and user B execute the same SQL below, they will see different result data.3.1 The result data viewed by user A is as follows, and the data in the

customer_namefield is completely masked.3.2 The result data viewed by user B is as follows. The data in the

customer_namefield will only display the first 4 digits, and the rest will be replaced byx.Related issues
no
Are you willing to submit a PR?
Code of Conduct