-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Certificates_EC_AllowedCurveNames.json
79 lines (79 loc) · 2.23 KB
/
Certificates_EC_AllowedCurveNames.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
{
"properties": {
"displayName": "Certificates using elliptic curve cryptography should have allowed curve names",
"policyType": "BuiltIn",
"mode": "Microsoft.KeyVault.Data",
"description": "Manage the allowed elliptic curve names for ECC Certificates stored in key vault. More information can be found at https://aka.ms/akvpolicy.",
"metadata": {
"version": "2.1.0",
"category": "Key Vault"
},
"version": "2.1.0",
"parameters": {
"allowedECNames": {
"type": "Array",
"metadata": {
"displayName": "Allowed elliptic curve names",
"description": "The list of allowed curve names for elliptic curve cryptography certificates."
},
"allowedValues": [
"P-256",
"P-256K",
"P-384",
"P-521"
],
"defaultValue": [
"P-256",
"P-256K",
"P-384",
"P-521"
]
},
"effect": {
"type": "string",
"metadata": {
"displayName": "Effect",
"description": "'Audit' allows a non-compliant resource to be created, but flags it as non-compliant. 'Deny' blocks the resource creation. 'Disable' turns off the policy."
},
"allowedValues": [
"audit",
"Audit",
"deny",
"Deny",
"disabled",
"Disabled"
],
"defaultValue": "Audit"
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.KeyVault.Data/vaults/certificates"
},
{
"field": "Microsoft.KeyVault.Data/vaults/certificates/keyProperties.keyType",
"in": [
"EC",
"EC-HSM"
]
},
{
"field": "Microsoft.KeyVault.Data/vaults/certificates/keyProperties.ellipticCurveName",
"notIn": "[parameters('allowedECNames')]"
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"2.1.0"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/bd78111f-4953-4367-9fd5-7e08808b54bf",
"name": "bd78111f-4953-4367-9fd5-7e08808b54bf"
}