我正在尝试从安全角度缩小监控数据的最佳角色。我的需求略有不同,所以我不想使用安全读者角色(主要是因为安全读者只能访问安全中心项目和基本资源和资源组查询)。因此,在阅读更多内容后,我偶然发现了监控读者角色和只是读者角色。我通过了 JSON 中提到的权限。但是我不确定 JSON 中是否涵盖了所有差异。
例如,当我们谈论“监控阅读器”时
{
"assignableScopes": [
"/"
],
"description": "Can read all monitoring data.",
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/roleDefinitions/43d0d8ad-25c7-4714-9337-8ba259a9fe05",
"name": "43d0d8ad-25c7-4714-9337-8ba259a9fe05",
"permissions": [
{
"actions": [
"*/read",
"Microsoft.OperationalInsights/workspaces/search/action",
"Microsoft.Support/*"
],
"notActions": [],
"dataActions": [],
"notDataActions": []
}
],
"roleName": "Monitoring Reader",
"roleType": "BuiltInRole",
"type": "Microsoft.Authorization/roleDefinitions"
}
权限基本相同,希望我可以查询日志。与 Reader 角色相比
{
"assignableScopes": [
"/"
],
"description": "Lets you view everything, but not make any changes.",
"id": "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7",
"name": "acdd72a7-3385-48ef-bd42-f606fba81ae7",
"permissions": [
{
"actions": [
"*/read"
],
"notActions": [],
"dataActions": [],
"notDataActions": []
}
],
"roleName": "Reader",
"roleType": "BuiltInRole",
"type": "Microsoft.Authorization/roleDefinitions"
}
现在从逻辑的角度来看,如果两个用户都能够执行*/read
Reader 角色是否自动有资格查询日志?如果不是,它有什么不同?还有哪个角色在访问可读数据方面更胜一筹?
参考:https ://docs.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#reader
PS:我确实知道自定义角色,但想更好地了解内置角色。