可以将雪花掩盖政策分配给标签吗?

发布于 2025-01-22 02:16:18 字数 199 浏览 2 评论 0 原文

我知道可以将掩盖策略分配给列,例如:

alter table if exists user_info modify column email set masking policy email_mask;

但是我们可以将一个掩盖策略分配给标签吗?因此,可以自动为一个表格中的所有标签列分配屏蔽策略吗?

谢谢。

I know that masking policies can be assigned to columns, for example:

alter table if exists user_info modify column email set masking policy email_mask;

But can we assign one masking policy to a tag? So that all the columns with the tag in one table can automatically be assigned the masking policy?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

情绪少女 2025-01-29 02:16:18

简单的答案是否。掩盖策略只能附加在表和视图列上。

如果您想自动为标记的列分配屏蔽策略,则可以执行以下操作:

  1. 加入视图和视图生成一个Alter语句,将屏蔽策略设置为未分配给他们的没有掩盖策略的标记列,
  2. 这将其放在存储过程

The simple answer is No. Masking policies can only be attached on columns of Tables and Views.

If you are looking to automatically assign Masking Policies to tagged columns, you can do the following:

  1. Join the COLUMNS View and TAG_REFERENCES View to generate an ALTER Statement that sets the masking policy to tagged columns that doesn't have masking policies assigned to them
  2. Put it in a Stored Procedure
  3. Schedule a Task to run the Stored Procedure regularly
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文