Open MysticalMount opened 4 months ago
I think whats happening here is the secret is being refreshed, but no event is generated if the secret already exists. Deletion of the target secret resource, post Vault's status becoming available again (i.e. successful connection and unsealed) - does seem to happen automatically.
However Ive only tested this post a connection error, whereupon I realised this, versus a 503/Vault is sealed but likely the behaviour is the same.
I've also hit this bug during a seal/unseal event.
Restarting VSO didn't help. Deleting either the target Secret or the VaultStaticSecret will make the VaultStaticSecret start syncing successfully again.
Environment:
Image: hashicorp/vault-secrets-operator:0.8.1
Kubernetes: 1.27.13
Describe the bug VaultSaticSecret doesnt resume syncing post a Vault being sealed, and then unsealed. Vault instance is external to the cluster and was successfully unsealed.
Expected VaultSaticSecret to resume syncing post unseal.
To Reproduce
Application deployment:
Vault operator was restarted. No errors in the controller/operator logs pre or post the restart. Problem persisted for all VaultStaticSecrets.
Expected behavior Expected VaultStaticSecret to resume post Vault becoming re-available, it seemed to stop after roughly 10 minutes but this is a best guess.
Environment
Additional context Add any other context about the problem here.