*: add column-level masking policy feature document#21454
Conversation
|
@tiancaiamao Please involve a tech reviewer for this PR. Thanks. |
|
Please address the comments~ |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Co-authored-by: Grace Cai <qqzczy@126.com>
| | `INSERT_INTO_SELECT` | 阻止通过 `INSERT ... SELECT` 将脱敏数据插入另一个表 | | ||
| | `UPDATE_SELECT` | 阻止通过 `UPDATE ... SET = (SELECT ...)` 使用脱敏数据进行更新 | | ||
| | `DELETE_SELECT` | 阻止通过 `DELETE ... WHERE ... IN (SELECT ...)` 基于脱敏数据进行删除 | | ||
| | `CTAS` | 阻止使用脱敏数据进行 Create Table As Select | |
There was a problem hiding this comment.
@qiancai 这里是否特殊说明一下,CTAS 其实是没有实现的,或者叫保留给将来使用
原因不是 column masking 这边没做实现
而是说,由于我们的 DDL 那边本身是没有支持 create table as select 这样的用法
必须分成两步做,create table like + insert into select
由于没有 create table as select 的实现,column masking 也就没有实际 去实现 CTAS
Co-authored-by: Grace Cai <qqzczy@126.com>
|
@tiancaiamao: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
address comment, PTAL @qiancai |
First-time contributors' checklist
What is changed, added or deleted? (Required)
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions (in Chinese).
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?