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
Hi all,
I am using istio-csr with cert-manager where vault is used as the CA on my istio mesh. I am running into the below issue.
When I try to deploy a workload pod on the istio mesh, I see errors in the events of the namespace
Error creating: Internal error occurred: failed calling webhook "namespace.sidecar-injector.istio.io": Post "https://istiod.istio-system.svc:443/inject?timeout=10s": x509: certificate has expired or is not yet valid: current time 2022-03-04T09:11:29Z is after 2022-03-04T02:12:13Z
Looking further at the details of the certificate deployed by istio-csr in istio-system namespace, I see that the last transition happened around 1:42:13 lastTransitionTime: "2022-03-04T01:42:13Z" message: Renewing certificate as renewal was scheduled at 2022-03-04 01:42:13
What this shows is that there was an attempt to renew the cert istiod at the stipulated time and it doesn't tell us if this activity failed or not.
So, further I looked at the logs on the istio-csr pod running in cert-manager namespace and see the errors logs around the same time which said that the vault server was not available.
"msg"="failed to sign incoming client certificate signing request" "error"="failed to wait for CertificateRequest istio-system/istio-csr-d22hp to be signed: created CertificateRequest has failed: [{Approved True 2022-03-04 01:49:51 +0000 UTC cert-manager.io Certificate request has been approved by cert-manager.io} {Ready False 2022-03-04 01:49:55 +0000 UTC Failed Vault failed to sign certificate: failed to sign certificate by vault: Post no such host
I know that vault was brought down at that time for maintenance which was eventually brought back up. What I noticed is that even though vault was up after some time, none of the new pods were created successfully and all the pod creations complain about the certificate being expired.
I want to know why istio-csr did not try to renew certificates once vault was back up. Is there a workaround for this problem ?
Thanks
The text was updated successfully, but these errors were encountered:
Hi all,
I am using istio-csr with cert-manager where vault is used as the CA on my istio mesh. I am running into the below issue.
When I try to deploy a workload pod on the istio mesh, I see errors in the events of the namespace
Error creating: Internal error occurred: failed calling webhook "namespace.sidecar-injector.istio.io": Post "https://istiod.istio-system.svc:443/inject?timeout=10s": x509: certificate has expired or is not yet valid: current time 2022-03-04T09:11:29Z is after 2022-03-04T02:12:13Z
Looking further at the details of the certificate deployed by
istio-csr
inistio-system
namespace, I see that the last transition happened around1:42:13
lastTransitionTime: "2022-03-04T01:42:13Z" message: Renewing certificate as renewal was scheduled at 2022-03-04 01:42:13
What this shows is that there was an attempt to renew the cert
istiod
at the stipulated time and it doesn't tell us if this activity failed or not.So, further I looked at the logs on the
istio-csr
pod running in cert-manager namespace and see the errors logs around the same time which said that the vault server was not available."msg"="failed to sign incoming client certificate signing request" "error"="failed to wait for CertificateRequest istio-system/istio-csr-d22hp to be signed: created CertificateRequest has failed: [{Approved True 2022-03-04 01:49:51 +0000 UTC cert-manager.io Certificate request has been approved by cert-manager.io} {Ready False 2022-03-04 01:49:55 +0000 UTC Failed Vault failed to sign certificate: failed to sign certificate by vault: Post no such host
I know that vault was brought down at that time for maintenance which was eventually brought back up. What I noticed is that even though vault was up after some time, none of the new pods were created successfully and all the pod creations complain about the certificate being expired.
I want to know why istio-csr did not try to renew certificates once vault was back up. Is there a workaround for this problem ?
Thanks
The text was updated successfully, but these errors were encountered: