您如何动态掩盖通过Azure保存为JSON的数据?
我正在尝试通过Azure SQL数据库掩盖敏感数据。 数据作为正常文本保存,一列作为XML保存,另一列作为JSON保存。 我已经尝试在数据库中添加规则,但是当我打开SSM并运行一个选择语句时,它不适用于列中的任何数据(正常文本,XML或JSON保存数据)
,没有任何用户排除使用未掩盖的数据。 只想了解当我在SSM上执行选择时,为什么没有掩盖数据。
我的规则看起来如下:
XML规则
json规则:
文本规则:
我的sql Statment:
从database_name中选择top(1000) *
I'm trying to mask sensitive data via an Azure SQL database.
The data is saved as normal text and one column as XML and another saved as json.
I've tried adding rules to the database but when I open SSMS and run a select statement it does not apply to any of the data in the columns (normal text, xml or json saved data)
There's no user excluded to see unmasked data.
Just want to understand why the data is not masked when I perform a select on SSMS.
My rules look like the below:
XML Rule
JSON Rule:
Text Rule:
My SQL statment:
SELECT TOP (1000) * from database_Name
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如 Microsoft文档它说,
也许您将数据访问
SQL Admin
或Azure AD用户
,因此您可以看到敏感数据。通过在数据库的多层中隐藏不需要的用户的重要信息,您可以防止访问和获得控制。您可以向用户授予或删除UNMASK许可。
从 Microsoft-documentation 它说,
请允许用户
用户下文中的数据
在授予用户许可之后 数据下撤销
数据
从用户
从:
使用Azure门户掩盖
授予和撤销许可
As mentioned in Microsoft Document it says,
Maybe you are accessing data as
SQL admin
orAzure AD user
because of that you can see sensitive data.By hiding important information from unwanted users at multiple layers of the database, you may prevent access and gain control. You may give or remove UNMASK permission to a user.
The code taken from Microsoft-documentation it says,
Give UNMASK permission to user
To Query the data under the context of user
To revoke UNMASK permissions
Data after granting permission to user
Data after removing permission from user
Taken Reference from:
SQL Database dynamic data masking with the Azure portal
Granting and Revoking the Permission