Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotate TLS certificates #819

Closed
Tracked by #7
fabriziosestito opened this issue Jul 22, 2024 · 0 comments · Fixed by #829
Closed
Tracked by #7

Rotate TLS certificates #819

fabriziosestito opened this issue Jul 22, 2024 · 0 comments · Fixed by #829

Comments

@fabriziosestito
Copy link
Contributor

fabriziosestito commented Jul 22, 2024

Create a runnable CertController that periodically checks if it's time to rotate the TLS certificates.
A look-ahead interval must be used so that certificates are always propagated enough time before the expiration.

We need to check:

  • webhook controller TLS certificate
  • policy servers TLS certificates

Since the certificates are stored in secrets, which are mounted on the controller and policy server pods, we are sure the changes will be eventually propagated due to respectively the certwatcher and the hot-reload mechanisms.

We assume the lookahead time is enough for the watchers to pick up the updates.

The runnable should only run on the leader.
The renewed certificates should use the same bit-size and settings as the ones generated by the helm genSignedCert function.

This repository could act as a reference: https://github.com/open-policy-agent/cert-controller/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants