This project provides a solution to ensure the connection between Hashicorp Vault and External Secrets after the reboot of OpenShift or even instabilities.
When OpenShift is restarted, two things happen that can cause connection problems:
- Hashicorp Vault becomes unavailable and to reactivate it, it is necessary to unseal all pods.
- External Secrets loses its connection with Vault and to reestablish it, it is necessary to add an annotation to all resources related to External Secrets, as this forces a reload of them.
The solution to maintain the connection between Hashicorp Vault and External Secrets is a Helm Chart that contains a CronJob that runs every 5 minutes. The CronJob performs two actions:
- Unseals the Vault pods if they are unready.
- Adds an annotation to all resources related to External Secrets.