Repository navigation
Expand file tree
/
Copy pathexample-cert-manager-role.json
More file actions
44 lines (44 loc) · 1.93 KB
/
Copy pathexample-cert-manager-role.json
File metadata and controls
44 lines (44 loc) · 1.93 KB
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
{
"_comment": [
"setup-pipeline.ps1 CREATES this role itself (as AKSManagerCertManager) when it",
"does not exist, and assigns it to the certificate job's identity on each",
"PUBLIC zone in hosted-zones.json. This file is the same definition, for",
"reference or for creating it yourself:",
"",
" az role definition create --role-definition @example-cert-manager-role.json",
"",
"after replacing SUBSCRIPTION_ID in AssignableScopes with every subscription",
"that holds one of your public zones, and deleting this _comment key (az",
"rejects unknown keys). An existing definition's permissions are never",
"changed by setup, so a narrower one of your own is kept.",
"",
"To use a different role instead (e.g. the built-in DNS Zone Contributor,",
"which allows every record type in the zone), set CERT_DNS_ROLE before",
"running setup; nothing is then created.",
"",
"Assigned at ZONE scope, never record-set scope: lego deletes the",
"_acme-challenge record after validating, which would delete a record-set",
"assignment with it.",
"",
"This is the tightest role in the system: TXT records in one zone, and",
"nothing else. It cannot create or change A or CNAME records, so it could not",
"be used to repoint a hostname. It is one step wider than the AWS equivalent,",
"which is also limited to names beginning _acme-challenge -- Azure RBAC has no",
"condition on DNS record names."
],
"Name": "AKSManagerCertManager",
"IsCustom": true,
"Description": "Write TXT records in a public DNS zone for Let's Encrypt DNS-01 validation. Nothing else.",
"Actions": [
"Microsoft.Network/dnsZones/read",
"Microsoft.Network/dnsZones/TXT/read",
"Microsoft.Network/dnsZones/TXT/write",
"Microsoft.Network/dnsZones/TXT/delete"
],
"NotActions": [],
"DataActions": [],
"NotDataActions": [],
"AssignableScopes": [
"/subscriptions/SUBSCRIPTION_ID"
]
}