package
0.0.0-20251003131124-f838eb5c6019
Repository: https://github.com/openshift/library-go.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
You usually want to start with NewSimpleClientCertificateController.
This package provides a control loop which takes as input
- target secret name
- cert common name
- desired validity (recall that the signing cert can sign for less)
The flow goes like this.
- if secret contains a valid client cert good for at least five days or 50% of validity, do nothing. If not...
- create new cert/key pair in memory
- create CSR in the API.
- watch CSR in the API until it is approved or denied
- if denied, write degraded status and return
- if approved, update the secret
The secrets have annotations which match our other cert rotation secrets.