Description
We've received a few cases on mTLS identity cert renewing this year and there is not an OOTB way to track the expiration of current effective identity cert in the data plane. To do so, people either need to aggregate & combine metrics at control plane side, or they need to programmatically retrieve the identify cert info from the data plane XDS admin API.
If an identity cert is not renewed in time as expected, the traffic from/to the data plane will fail immediately. So people want to discover this risk earlier. Sometimes, they can solve the issue manually by restarting the workload or control plane as a workaround.
To make this process easier, it's helpful to expose a metric to tell how long the mTLS identity cert is going to expire so that one can make an alert based on it.