Skip to content

Commit 5260d49

Browse files
maelvlsjakexks
andcommitted
add the v1.3 cert-manager Approval API roles
Since cert-manager is the one approving (we do not use an external approver), it needs to be able to approve the CRs for the ca-issuer as well as for the cert-manager internal issuers. Signed-off-by: Maël Valais <[email protected]> Co-authored-by: Jake Sanders <[email protected]>
1 parent efca03b commit 5260d49

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

schema.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,18 +212,35 @@ properties:
212212
- apiGroups: ["cert-manager.io"]
213213
resources: ["certificates", "certificaterequests", "issuers", "clusterissuers"]
214214
verbs: ["get", "list", "watch"]
215+
# To be removed when this gets merged: https://github.com/jetstack/cert-manager/issues/3726
215216
- apiGroups: ["extensions"]
216217
resources: ["ingresses"]
217218
verbs: ["get", "list", "watch"]
219+
# To be removed when this gets merged: https://github.com/jetstack/cert-manager/issues/3726
218220
- apiGroups: ["extensions"]
219221
resources: ["ingresses/finalizers"]
220222
verbs: ["update"]
223+
- apiGroups: ["networking.k8s.io"]
224+
resources: ["ingresses/finalizers"]
225+
verbs: ["update"]
226+
- apiGroups: ["networking.k8s.io"]
227+
resources: ["ingresses"]
228+
verbs: ["get", "list", "watch"]
221229
- apiGroups: [""]
222230
resources: ["events"]
223231
verbs: ["create", "patch"]
224232
- apiGroups: [""]
225233
resources: ["configmaps"]
226234
verbs: ["get", "create", "update", "patch"]
235+
- apiGroups: ["cert-manager.io"]
236+
resources: ["signers"]
237+
verbs: ["approve"]
238+
resourceNames:
239+
- "issuers.cert-manager.io/*"
240+
- "clusterissuers.cert-manager.io/*"
241+
# Approval API, see https://github.com/jetstack/google-cas-issuer/pull/34/files#diff-80390a
242+
- googlecasclusterissuers.cas-issuer.jetstack.io/*
243+
- googlecasissuers.cas-issuer.jetstack.io/*
227244

228245
cert-manager.webhook.serviceAccount.name:
229246
type: string
@@ -239,6 +256,12 @@ properties:
239256
- apiGroups: [""]
240257
resources: [secrets]
241258
verbs: [get, list, watch, update, patch, create]
259+
- type: ClusterRole
260+
rulesType: CUSTOM
261+
rules:
262+
- apiGroups: ["authorization.k8s.io"]
263+
resources: ["subjectaccessreviews"]
264+
verbs: ["create"]
242265

243266
cert-manager.cainjector.serviceAccount.name:
244267
type: string

0 commit comments

Comments
 (0)