Open jansobczak opened 6 months ago
When using cert-manager as CA provider for webhook in line https://github.com/bank-vaults/vault-secrets-webhook/blob/5c5715ab5c44f92136ebade5bb6118063b009275/main.go#L175 this CA is read but when CA rotates this require a rollout of the webhook deployment
Use the WatchConfig() in viper library to detect change in the file and reload vault-secrets-webhook
No response
Thanks for raising this @jansobczak! If you have some time to assist on this, would be quite helpful. Let us know so we can plan ahead.
Preflight Checklist
Problem Description
When using cert-manager as CA provider for webhook in line https://github.com/bank-vaults/vault-secrets-webhook/blob/5c5715ab5c44f92136ebade5bb6118063b009275/main.go#L175 this CA is read but when CA rotates this require a rollout of the webhook deployment
Proposed Solution
Use the WatchConfig() in viper library to detect change in the file and reload vault-secrets-webhook
Alternatives Considered
No response
Additional Information
No response