-
Notifications
You must be signed in to change notification settings - Fork 95
Description
I would like a way to monitor the validity period of CA's that are distributed managed by trust-manager Bundles. This would help provide visibility if there are CAs in the bundle that are close to expiring that may need to be updated, or removed from the bundle.
My initial thought is this could be achieved via custom Prometheus metrics that provides the Not Before and Not After dates for each CA in the bundle. If we choose this route, @erikgb recommended using metrics similar to cert_not_before and cert_not_after (inspired by https://github.com/ribbybibby/ssl_exporter).
Another option could be to have trust-manager update the .status block of each Bundle CR with the dates for the CA , and then users could use that metadata however they need to in their environments. For example, they could pull that into Prometheus using kube-state-metrics using Custom Resource State Metrics.
/kind feature