stackabletech / operator-rs

A simple wrapper/framework around kube-rs to make implementing Operators/Controllers easier
Apache License 2.0
116 stars 12 forks source link

Enable usage of dynamic leaf certificates using a certificate resolver #745

Open Techassi opened 6 months ago

Techassi commented 6 months ago

Currently to use TLS with webhooks, you have to manually mount a volume with the CA.

This PR: https://github.com/stackabletech/operator-rs/pull/736 adds a module to the framework that supports creating CAs and leaf certificates. Here we could just call the code to generate the certs and call the server, but then there is no way for them to be swapped out if they expire.

This ticket is about writing code to - instead of mounting a single cert - resolve a cert dynamically, allowing us to swap out expired certs while the Webhook server is running.

This resolver will be used by the stackable-webhook crate.

Follow up of #736.

Acceptance criteria