Skip to content

Add ability to monitor validity period for CAs in bundle #588

@vinny-sabatini

Description

@vinny-sabatini

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions