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

Updating the values in the KV Secrets Engine #214

Open
Ruchira-R opened this issue May 22, 2023 · 1 comment
Open

Updating the values in the KV Secrets Engine #214

Ruchira-R opened this issue May 22, 2023 · 1 comment

Comments

@Ruchira-R
Copy link

Hiya, I wanted to know how the SecretsProviderClass will work with the Pod to update the values.

Currently, I'm using Secrets stored as ENV variables and wanted to understand how changes made to the value in Vault (In the KV Secrets Engine) will affect these ENV variables set.
How will they (The ENV Vars) get updated? Will they be updated as soon as a change is made in the Pod which is running OR Will the pod need to terminated with a new pod being spun up in place, which will use the new Secret with the value being updated?

@tomhjp
Copy link
Contributor

tomhjp commented May 22, 2023

Good question: firstly you need to make sure you're using the CSI driver's auto rotation feature if you want any updates: https://secrets-store-csi-driver.sigs.k8s.io/topics/secret-auto-rotation.html. However, that only works for files and synced Kubernetes secrets. If you're reading the secret value as an environment variable, the pod needs to be restarted to see the change.

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

No branches or pull requests

2 participants