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
I basically followed this installation guide: https://aureq.github.io/cert-manager-webhook-ovh/ . After adjusting the values.yaml file accordingly I installed the Helm chart with helm upgrade --install --namespace cert-manager -f values.yaml cm-webhook-ovh cert-manager-webhook-ovh-charts/cert-manager-webhook-ovh
After the pod/container got launched the log of cm-webhook-ovh-cert-manager-webhook-ovh pod/container looks like this:
I0218 20:40:32.721479 1 main.go:28] "Webhook starting..." logger="cert-manager"
I0218 20:40:34.914357 1 handler.go:286] Adding GroupVersion somedomain.net v1alpha1 to ResourceManager
I0218 20:40:34.942942 1 secure_serving.go:213] Serving securely on [::]:8443
I0218 20:40:34.943048 1 requestheader_controller.go:172] Starting RequestHeaderAuthRequestController
I0218 20:40:34.943068 1 shared_informer.go:313] Waiting for caches to sync for RequestHeaderAuthRequestController
I0218 20:40:34.943119 1 dynamic_serving_content.go:135] "Starting controller" name="serving-cert::/tls/tls.crt::/tls/tls.key"
I0218 20:40:34.943252 1 tlsconfig.go:243] "Starting DynamicServingCertificateController"
I0218 20:40:34.945372 1 configmap_cafile_content.go:205] "Starting controller" name="client-ca::kube-system::extension-apiserver-authentication::client-ca-file"
I0218 20:40:34.945389 1 shared_informer.go:313] Waiting for caches to sync for client-ca::kube-system::extension-apiserver-authentication::client-ca-file
I0218 20:40:34.945443 1 configmap_cafile_content.go:205] "Starting controller" name="client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file"
I0218 20:40:34.945462 1 shared_informer.go:313] Waiting for caches to sync for client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file
I0218 20:40:35.043287 1 shared_informer.go:320] Caches are synced for RequestHeaderAuthRequestController
I0218 20:40:35.045811 1 shared_informer.go:320] Caches are synced for client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file
I0218 20:40:35.045844 1 shared_informer.go:320] Caches are synced for client-ca::kube-system::extension-apiserver-authentication::client-ca-file
E0218 20:40:35.045947 1 configmap_cafile_content.go:246] "Unhandled Error" err="kube-system/extension-apiserver-authentication failed with : missing content for CA bundle \"client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file\"" logger="UnhandledError"
E0218 20:40:35.047217 1 configmap_cafile_content.go:246] "Unhandled Error" err="key failed with : missing content for CA bundle \"client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file\"" logger="UnhandledError"
E0218 20:40:35.052759 1 configmap_cafile_content.go:246] "Unhandled Error" err="kube-system/extension-apiserver-authentication failed with : missing content for CA bundle \"client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file\"" logger="UnhandledError"
...
I'm using cert-manager since years on that cluster but with HTTP01 challenge only so far which works fine in general. But using DNS01 would have some real advantages. So I wanted to give this webhook a try.
As you can see in the log above some errors get issued (last three lines). This sounds a bit like it tries to load the ca.crt file mounted into the container but I'm not sure about that. I entered the container and all files /tls/tls.crt, /tls/tls.key and /tls/ca.crt are available there. The last three lines continuously get repeated every few seconds. Also trying to generate a certificate using the issuer created doesn't work (which is expected because of the error messages).
Expected Behavior
Errors below should not appear in the log and certificate should get issued:
E0218 20:40:35.045947 1 configmap_cafile_content.go:246] "Unhandled Error" err="kube-system/extension-apiserver-authentication failed with : missing content for CA bundle \"client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file\"" logger="UnhandledError"
E0218 20:40:35.047217 1 configmap_cafile_content.go:246] "Unhandled Error" err="key failed with : missing content for CA bundle \"client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file\"" logger="UnhandledError"
E0218 20:40:35.052759 1 configmap_cafile_content.go:246] "Unhandled Error" err="kube-system/extension-apiserver-authentication failed with : missing content for CA bundle \"client-ca::kube-system::extension-apiserver-authentication::requestheader-client-ca-file\"" logger="UnhandledError"
The K8s secret with the OVH keys is the same as the example described here: https://aureq.github.io/cert-manager-webhook-ovh/#secret-vs-secret-references (of course with different values and base64 encoded). Using kubectl to fetch the K8s secret and base64 decode the three values works fine. So the secrets should work as expected.
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered:
What happened?
First: Thanks for providing this webhook! 😺
I basically followed this installation guide: https://aureq.github.io/cert-manager-webhook-ovh/ . After adjusting the
values.yaml
file accordingly I installed the Helm chart withhelm upgrade --install --namespace cert-manager -f values.yaml cm-webhook-ovh cert-manager-webhook-ovh-charts/cert-manager-webhook-ovh
After the pod/container got launched the log of
cm-webhook-ovh-cert-manager-webhook-ovh
pod/container looks like this:I'm using cert-manager since years on that cluster but with HTTP01 challenge only so far which works fine in general. But using DNS01 would have some real advantages. So I wanted to give this webhook a try.
As you can see in the log above some errors get issued (last three lines). This sounds a bit like it tries to load the
ca.crt
file mounted into the container but I'm not sure about that. I entered the container and all files/tls/tls.crt
,/tls/tls.key
and/tls/ca.crt
are available there. The last three lines continuously get repeated every few seconds. Also trying to generate a certificate using the issuer created doesn't work (which is expected because of the error messages).Expected Behavior
Errors below should not appear in the log and certificate should get issued:
Steps to reproduce
Prepare everything as described in: https://aureq.github.io/cert-manager-webhook-ovh/
Prepare
values.yaml
(I've only a few values changed, most of them are default):The K8s secret with the OVH keys is the same as the example described here: https://aureq.github.io/cert-manager-webhook-ovh/#secret-vs-secret-references (of course with different values and base64 encoded). Using kubectl to fetch the K8s secret and base64 decode the three values works fine. So the secrets should work as expected.
Install Helm chart with
helm upgrade --install --namespace cert-manager -f values.yaml cm-webhook-ovh cert-manager-webhook-ovh-charts/cert-manager-webhook-ovh
Versions in use
Chart: 0.7.3
cert-manager: 1.16
Kubernetes: 1.31
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: