/
AuditClusterProtectionLevel_Audit.json
62 lines (62 loc) · 1.94 KB
/
AuditClusterProtectionLevel_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
58
59
60
61
62
{
"properties": {
"displayName": "Service Fabric clusters should have the ClusterProtectionLevel property set to EncryptAndSign",
"policyType": "BuiltIn",
"mode": "Indexed",
"description": "Service Fabric provides three levels of protection (None, Sign and EncryptAndSign) for node-to-node communication using a primary cluster certificate. Set the protection level to ensure that all node-to-node messages are encrypted and digitally signed",
"metadata": {
"version": "1.1.0",
"category": "Service Fabric"
},
"version": "1.1.0",
"parameters": {
"effect": {
"type": "string",
"defaultValue": "Audit",
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"metadata": {
"displayName": "Effect",
"description": "The effect determines what happens when the policy rule is evaluated to match"
}
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.ServiceFabric/clusters"
},
{
"anyOf": [
{
"field": "Microsoft.ServiceFabric/clusters/fabricSettings[*].name",
"notEquals": "Security"
},
{
"field": "Microsoft.ServiceFabric/clusters/fabricSettings[*].parameters[*].name",
"notEquals": "ClusterProtectionLevel"
},
{
"field": "Microsoft.ServiceFabric/clusters/fabricSettings[*].parameters[*].value",
"notEquals": "EncryptAndSign"
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.1.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/617c02be-7f02-4efd-8836-3180d47b6c68",
"name": "617c02be-7f02-4efd-8836-3180d47b6c68"
}