-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
SqlServer_EnsureServerTDEisEncryptedWithYourOwnKey_Deny.json
82 lines (82 loc) · 2.41 KB
/
SqlServer_EnsureServerTDEisEncryptedWithYourOwnKey_Deny.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"properties": {
"displayName": "SQL servers should use customer-managed keys to encrypt data at rest",
"description": "Implementing Transparent Data Encryption (TDE) with your own key provides increased transparency and control over the TDE Protector, increased security with an HSM-backed external service, and promotion of separation of duties. This recommendation applies to organizations with a related compliance requirement.",
"policyType": "BuiltIn",
"mode": "All",
"metadata": {
"version": "2.0.1",
"category": "SQL"
},
"version": "2.0.1",
"parameters": {
"effect": {
"type": "String",
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
},
"allowedValues": [
"Audit",
"Deny",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"anyOf": [
{
"allOf": [
{
"field": "type",
"equals": "Microsoft.Sql/servers"
},
{
"value": "[resourcegroup().managedBy]",
"notContains": "/providers/Microsoft.Synapse/"
},
{
"anyOf": [
{
"field": "Microsoft.Sql/servers/keyid",
"exists": false
},
{
"field": "Microsoft.Sql/servers/keyid",
"equals": ""
}
]
}
]
},
{
"allOf": [
{
"field": "type",
"equals": "Microsoft.Sql/servers/encryptionProtector"
},
{
"value": "[resourcegroup().managedBy]",
"notContains": "/providers/Microsoft.Synapse/"
},
{
"field": "Microsoft.Sql/servers/encryptionProtector/serverKeyType",
"notequals": "AzureKeyVault"
}
]
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"2.0.1"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/0a370ff3-6cab-4e85-8995-295fd854c5b8",
"name": "0a370ff3-6cab-4e85-8995-295fd854c5b8"
}