Skip to content

Commit

Permalink
Merge pull request #416 from SgtCoDFish/allow-all-signers
Browse files Browse the repository at this point in the history
Default to allowing all signers for approval
  • Loading branch information
cert-manager-prow[bot] authored Apr 18, 2024
2 parents 1877d65 + 8cd1aa7 commit 8b591a5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
6 changes: 2 additions & 4 deletions deploy/charts/approver-policy/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion deploy/charts/approver-policy/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ rules:
- apiGroups: ["cert-manager.io"]
resources: ["signers"]
verbs: ["approve"]
{{- with .Values.app.approveSignerNames }}
resourceNames:
{{- range .Values.app.approveSignerNames }}
{{- range . }}
- "{{ . }}"
{{- end }}
{{- end }}

- apiGroups: ["rbac.authorization.k8s.io"]
resources: ["roles", "clusterroles", "rolebindings", "clusterrolebindings"]
Expand Down
7 changes: 2 additions & 5 deletions deploy/charts/approver-policy/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,8 @@
"type": "object"
},
"helm-values.app.approveSignerNames": {
"default": [
"issuers.cert-manager.io/*",
"clusterissuers.cert-manager.io/*"
],
"description": "List of signer names that approver-policy will be given permission to approve and deny. CertificateRequests referencing these signer names can be processed by approver-policy.\n\nref: https://cert-manager.io/docs/concepts/certificaterequest/#approval",
"default": [],
"description": "List of signer names that approver-policy will be given permission to approve and deny. CertificateRequests referencing these signer names can be processed by approver-policy. Defaults to an empty array, allowing approval for all signers.\nref: https://cert-manager.io/docs/concepts/certificaterequest/#approval",
"items": {},
"type": "array"
},
Expand Down
8 changes: 3 additions & 5 deletions deploy/charts/approver-policy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,11 @@ app:

# List of signer names that approver-policy will be given permission to
# approve and deny. CertificateRequests referencing these signer names can be
# processed by approver-policy.
#
# processed by approver-policy. Defaults to an empty array, allowing approval
# for all signers.
# ref: https://cert-manager.io/docs/concepts/certificaterequest/#approval
# +docs:property
approveSignerNames:
- "issuers.cert-manager.io/*"
- "clusterissuers.cert-manager.io/*"
approveSignerNames: []

metrics:
# Port for exposing Prometheus metrics on 0.0.0.0 on path '/metrics'.
Expand Down

0 comments on commit 8b591a5

Please sign in to comment.