GitHunt
GI

giantswarm/cert-exporter

The cert-exporter walks a directory path it has gotten as input and emits all NotAfter timestamps as metrics for TLS certificates and Vault tokens. It also emits NotAfter timestamps as metrics for TLS certificates stored in Kubernetes secrets.

CircleCI

cert-exporter

Exposes three metrics to Prometheus regarding certificates/tokens:

cert_exporter_not_after

Timestamp after which the cert is invalid (for certificate files mounted from the host filesystem).

cert_exporter_secret_not_after

Timestamp after which the cert is invalid (for certificates stored in Kubernetes secrets).

cert_exporter_token_not_after

Timestamp after which the Vault token is expired.

Deployment

Installing the Chart

To install the chart locally:

$ git clone https://github.com/giantswarm/cert-exporter.git
$ cd cert-exporter
$ helm install helm/cert-exporter

Provide a custom values.yaml:

$ helm install cert-exporter -f values.yaml

Release Process

  • Ensure CHANGELOG.md is up to date.
  • Create a new GitHub release with the version e.g. v0.1.0 and link the
    changelog entry.
  • This will push a new git tag and trigger a new tarball to be pushed to the
    default-catalog.
  • Update cluster-operator with the new version.

Languages

Go54.0%Python25.6%Makefile15.3%Go Template4.6%Dockerfile0.4%
Apache License 2.0
Created November 24, 2017
Updated March 19, 2026