Describe the bug:
PR #7286 (commit 0a5bab898) added an Issuer/ClusterIssuer ownerReference with blockOwnerDeletion: true to Challenge resources created by the orders controller.
On clusters with OwnerReferencesPermissionEnforcement (default on OpenShift/OKD), this requires update permission on issuers/finalizers and clusterissuers/finalizers. The Helm chart RBAC does not include these, so Challenge creation fails:
cannot set blockOwnerDeletion if an ownerReference refers to a resource
you can't set finalizers on: , <nil>
Same class of issue as #2305, fixed in #2325 for certificaterequests/finalizers.
Expected behaviour:
Challenge creation should succeed on clusters with OwnerReferencesPermissionEnforcement enabled.
Steps to reproduce the bug:
- Install cert-manager v1.20.0 via Helm on OpenShift/OKD
- Create a Certificate using a ClusterIssuer
- Orders controller fails to create Challenges
Anything else we need to know?:
Fix: add to the controller-orders ClusterRole in deploy/charts/cert-manager/templates/rbac.yaml:
- apiGroups: ["cert-manager.io"]
resources: ["issuers/finalizers", "clusterissuers/finalizers"]
verbs: ["update"]
Environment details:
- Kubernetes version: v1.34.5 (OKD)
- Cloud-provider/provisioner: OKD (bare metal)
- cert-manager version: v1.20.0
- Install method: Helm
/kind bug
Describe the bug:
PR #7286 (commit
0a5bab898) added an Issuer/ClusterIssuer ownerReference withblockOwnerDeletion: trueto Challenge resources created by the orders controller.On clusters with
OwnerReferencesPermissionEnforcement(default on OpenShift/OKD), this requiresupdatepermission onissuers/finalizersandclusterissuers/finalizers. The Helm chart RBAC does not include these, so Challenge creation fails:Same class of issue as #2305, fixed in #2325 for
certificaterequests/finalizers.Expected behaviour:
Challenge creation should succeed on clusters with
OwnerReferencesPermissionEnforcementenabled.Steps to reproduce the bug:
Anything else we need to know?:
Fix: add to the
controller-ordersClusterRole indeploy/charts/cert-manager/templates/rbac.yaml:Environment details:
/kind bug