venafi: Process custom fields annotations on Issuer
When processing custom fields on CSR take into consideration annotation on Issuer and use them as base, whith override/append on CSR level.
Pull Request Motivation
We have 200+ clusters with more that 4000 applications. With Venafi custom field enforcement, it would be nice to have and ability to define "global" custom fields on Issuer level with override/append on CSR level.
Kind
/kind feature
Release Note
For Venafi provider, read `venafi.cert-manager.io/custom-fields` annotation on Issuer/ClusterIssuer and use it as base with override/append capabilities on Certificate level.
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign joshvanl for approval. For more information see the Code Review Process.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
Hi @k0da. Thanks for your PR.
I'm waiting for a cert-manager member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.
/ok-to-test
/test pull-cert-manager-master-e2e-v1-34-issuers-venafi-cloud /test pull-cert-manager-master-e2e-v1-34-issuers-venafi-tpp
/test pull-cert-manager-master-e2e-v1-34-issuers-venafi-cloud /test pull-cert-manager-master-e2e-v1-34-issuers-venafi-tpp
@wallrj-cyberark I share the same sentiment about Issuer property. Although as you said Annotation on Ingress/Certificate is kind of stable mechanism and well know to users. Keeping a consistency would play a big benefit here.
While CR property is more cleaner approach. I don't a problem supporting both with property being higher priority in override chain.
I'd go as is for now. And follow CR change proposal in a separate PR.