-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
ASC_EnableRBAC_KubernetesService_Audit.json
57 lines (57 loc) · 1.62 KB
/
ASC_EnableRBAC_KubernetesService_Audit.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"properties": {
"displayName": "Azure Role-Based Access Control (RBAC) should be used on Kubernetes Services",
"policyType": "BuiltIn",
"mode": "All",
"description": "To provide granular filtering on the actions that users can perform, use Azure Role-Based Access Control (RBAC) to manage permissions in Kubernetes Service Clusters and configure relevant authorization policies.",
"metadata": {
"version": "1.0.3",
"category": "Security Center"
},
"version": "1.0.3",
"parameters": {
"effect": {
"type": "string",
"defaultValue": "Audit",
"allowedValues": [
"Audit",
"Disabled"
],
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.ContainerService/managedClusters"
},
{
"anyOf": [
{
"field": "Microsoft.ContainerService/managedClusters/enableRBAC",
"exists": "false"
},
{
"field": "Microsoft.ContainerService/managedClusters/enableRBAC",
"equals": "false"
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.0.3"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/ac4a19c2-fa67-49b4-8ae5-0b2e78c49457",
"name": "ac4a19c2-fa67-49b4-8ae5-0b2e78c49457"
}