ERROR: failed to verify issuer credentials for 'identity.linkerd.cluster.local' with trust anchors: x509: certificate has expired or is not yet valid #11783
Replies: 2 comments 7 replies
-
@bhavyaravilla you will need to help us debug this a bit. One thing that sticks out to me is that the core error message "current time 2023-12-13T13:40:50Z is after 2023-12-13T13:40:08Z" -- the :08 timestamp there falls outside of the bounds reported later in the message. When you see this happening, can you provide some details about the certificates (e.g. the validity dates as expressed by |
Beta Was this translation helpful? Give feedback.
-
@wmorgan Thank you. Would there be anything in the future to add this feature? |
Beta Was this translation helpful? Give feedback.
-
We have deployed Linkerd using the helm charts.
For certificates, we are using cert-manager for auto-renewal of certificates. The certificate itself would be valid for 48h but we have set the renewal for 24h. Randomly, in about a month or two there is an warning that comes up saying
{"log":"time=\"2023-12-13T13:40:50Z\" level=warning msg=\"Skipping issuer update as certs could not be read from disk: failed to verify issuer credentials for 'identity.linkerd.cluster.local' with trust anchors: x509: certificate has expired or is not yet valid: current time 2023-12-13T13:40:50Z is after 2023-12-13T13:40:08Z - Current Time : 2023-12-13 13:40:50.279788145 +0000 UTC m=+5023800.297985164 - Invalid before 2023-12-13 13:40:13 +0000 UTC - Invalid After 2023-12-15 13:40:13 +0000 UTC\"","logtag":"F"}
And after this none of the linkerd proxy certificate were renewed. All of them failed with the below error
{"log":"time=\"2023-12-13T13:51:06Z\" level=error msg=\"could not process CSR because of CA cert validation failure: x509: certificate has expired or is not yet valid: current time 2023-12-13T13:51:06Z is after 2023-12-13T13:40:08Z - Current Time : 2023-12-13 13:51:06.01223291 +0000 UTC m=+5024416.030429929 - Invalid before 2023-12-12 13:40:13 +0000 UTC - Invalid After 2023-12-14 13:40:13 +0000 UTC - CSR Identity : audit-service.serviceaccount.identity.linkerd.cluster.local\"","logtag":"F"}
And on the proxy containers
{"log":"[5081495.311735s] ERROR ThreadId(02) identity: linkerd_proxy_identity_client::certify: Failed to obtain identity error=status: Unknown, message: \"x509: certificate has expired or is not yet valid: current time 2023-12-13T13:51:06Z is after 2023-12-13T13:40:08Z - Current Time : 2023-12-13 13:51:06.01223291 +0000 UTC m=+5024416.030429929 - Invalid before 2023-12-12 13:40:13 +0000 UTC - Invalid After 2023-12-14 13:40:13 +0000 UTC\", details: [], metadata: MetadataMap { headers: {\"content-type\": \"application/grpc\", \"date\": \"Wed, 13 Dec 2023 13:51:06 GMT\"} }","logtag":"F"}
The only thing that we can do to resolve this is to restart the control plane. But, meanwhile all our applications are down. This happens only on Prod.
Is there any solution for this please.
Beta Was this translation helpful? Give feedback.
All reactions