You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Chart values**certificate:
useCertManager: falseservingCertificate: vault-secret-webhook-tls # To set Certificate entitygenerate: falseserver:
tls:
crt: ""key: ""ca:
crt: ""
### Logs
_No response_
### Additional Information
1. We have a CA storage in Vault and create a Root CA in it, which is the root for all Kubernetes clusters
2. There is a mechanism that creates a Custom Resource ClusterIssuer and connects to the Vault pki RootCA with the appropriate CertManager setting
3. A Custom Resource Certificate is created in each cluster, which forms an Intermediate CA for the cluster
4. After that, ClusterIssuer is created for all applications with a link to intermediateCA
5. Next, a kind Certificate is formed based on the Cluster Issuer from point 4
6. In the end, we need to deploy the Vault Secrets Webhook with servingCertificate from point5
**Proposed Solution:**
I suggest replace the line (number 1) in the `templates/webhook-cert-manager.yaml` template:
{{- if .Values.certificate.useCertManager }}
**replace with**
{{- if and (.Values.certificate.useCertManager) (not .Values.certificate.servingCertificate) }}
**and delete lines 57 and 58:**
{{- end }}
{{- if or .Values.certificate.useCertManager .Values.certificate.servingCertificate }}
This way, helm will correctly form templates during deployment.
The text was updated successfully, but these errors were encountered:
Preflight Checklist
Vault Secrets Webhook Version
1.21.1
Installation Type
Official Helm chart
Bank-Vaults Version
No response
Kubernetes Version
1.29.2
Kubernetes Distribution/Provisioner
Vanilla Kubernetes
Expected Behavior
with the following values:
the Certificate resource should not be created in this case because an external source is already being used
Actual Behavior
when the vault-secret-webhook is deployed, a Certificate resource is created
Steps To Reproduce
No response
Configuration
{{- if .Values.certificate.useCertManager }}
{{- if and (.Values.certificate.useCertManager) (not .Values.certificate.servingCertificate) }}
{{- end }}
{{- if or .Values.certificate.useCertManager .Values.certificate.servingCertificate }}
The text was updated successfully, but these errors were encountered: