vault-secrets-operator icon indicating copy to clipboard operation
vault-secrets-operator copied to clipboard

Artificial delay for eventually consistent secrets

Open adrianmoisey opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe. Some secrets (ie, AWS IAM) are eventually consistent and require a delay before they can be used.

Describe the solution you'd like A method to introduce a delay before VSO writes secrets to Kubernetes

Describe alternatives you've considered It may be possible to get the pods that consume VSO secrets to have a delay before attempting to use their secrets, but then logic needs to be build into each application. It may make sense for VSO to handle this delay, as it a central service/tool.

Additional context To quote: https://developer.hashicorp.com/vault/docs/secrets/aws#usage

Unfortunately, IAM credentials are eventually consistent with respect to other Amazon services. If you are planning on using these credential in a pipeline, you may need to add a delay of 5-10 seconds (or more) after fetching credentials before they can be used successfully.

adrianmoisey avatar Jun 19 '23 14:06 adrianmoisey

This bug is still hurting us. Is there any way it can be prioritised? I made a PR but it hasn't been looked at.

adrianmoisey avatar May 20 '24 13:05 adrianmoisey

Hey @benashz Sorry for the ping!

Would it be possible for someone to take a look at this issue? I did make a PR to handle it, but that went unreviewed. I'm happy to fix up that PR if needed.

Thanks.

adrianmoisey avatar Jun 19 '24 12:06 adrianmoisey

Pinging this again. We still suffer from this issue. I'm happy to update my PR to get this sorted.

adrianmoisey avatar Oct 23 '24 09:10 adrianmoisey