File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed
deploy/charts/cert-manager Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,9 @@ spec:
137
137
{{- with .Values.dns01RecursiveNameservers }}
138
138
- --dns01-recursive-nameservers={{ . }}
139
139
{{- end }}
140
+ {{- if .Values.disableAutoApproval }}
141
+ - --controllers=-certificaterequests-approver
142
+ {{- end }}
140
143
ports :
141
144
- containerPort : 9402
142
145
name : http-metrics
Original file line number Diff line number Diff line change @@ -474,6 +474,8 @@ rules:
474
474
475
475
---
476
476
477
+ {{- if not .Values.disableAutoApproval -}}
478
+
477
479
# Permission to approve CertificateRequests referencing cert-manager.io Issuers and ClusterIssuers
478
480
apiVersion : rbac.authorization.k8s.io/v1
479
481
kind : ClusterRole
@@ -489,7 +491,12 @@ rules:
489
491
- apiGroups : ["cert-manager.io"]
490
492
resources : ["signers"]
491
493
verbs : ["approve"]
492
- resourceNames : ["issuers.cert-manager.io/*", "clusterissuers.cert-manager.io/*"]
494
+ {{- with .Values.approveSignerNames }}
495
+ resourceNames :
496
+ {{- range . }}
497
+ - {{ . | quote }}
498
+ {{- end }}
499
+ {{- end }}
493
500
494
501
---
495
502
@@ -514,6 +521,8 @@ subjects:
514
521
515
522
---
516
523
524
+ {{- end -}}
525
+
517
526
# Permission to:
518
527
# - Update and sign CertificatSigningeRequests referencing cert-manager.io Issuers and ClusterIssuers
519
528
# - Perform SubjectAccessReviews to test whether users are able to reference Namespaced Issuers
Original file line number Diff line number Diff line change @@ -241,6 +241,23 @@ dns01RecursiveNameservers: ""
241
241
# Enabling this option could cause the DNS01 self check to take longer owing to caching performed by the recursive nameservers.
242
242
dns01RecursiveNameserversOnly : false
243
243
244
+ # Option to disable cert-manager's build-in auto-approver. The auto-approver
245
+ # approves all CertificateRequests that reference issuers matching the 'approveSignerNames'
246
+ # option. This 'disableAutoApproval' option is useful when you want to make all approval decisions
247
+ # using a different approver (like approver-policy - https://github.com/cert-manager/approver-policy).
248
+ disableAutoApproval : false
249
+
250
+ # List of signer names that cert-manager will approve by default. CertificateRequests
251
+ # referencing these signer names will be auto-approved by cert-manager. Defaults to just
252
+ # approving the cert-manager.io Issuer and ClusterIssuer issuers. When set to an empty
253
+ # array, ALL issuers will be auto-approved by cert-manager. To disable the auto-approval,
254
+ # because eg. you are using approver-policy, you can enable 'disableAutoApproval'.
255
+ # ref: https://cert-manager.io/docs/concepts/certificaterequest/#approval
256
+ # +docs:property
257
+ approveSignerNames :
258
+ - issuers.cert-manager.io/*
259
+ - clusterissuers.cert-manager.io/*
260
+
244
261
# Additional command line flags to pass to cert-manager controller binary.
245
262
# To see all available flags run `docker run quay.io/jetstack/cert-manager-controller:<version> --help`.
246
263
#
You can’t perform that action at this time.
0 commit comments