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

Dynamic user creation - race condition #76

Open
vkrishnamoorthy-sift opened this issue Mar 25, 2024 · 1 comment
Open

Dynamic user creation - race condition #76

vkrishnamoorthy-sift opened this issue Mar 25, 2024 · 1 comment

Comments

@vkrishnamoorthy-sift
Copy link

Hello:

I recently ran into a race condition that I am requesting a fix for. Describing the use case:

Our java client uses temp credentials (dynamic user) generated via the vault-atlas plugin for db authentication - (it is a short term lease for 1d). We are facing an issue where the user creation takes a few seconds but then the temp credentials are already returned back by the client. So when our code tries to authenticate -- the user is not there in atlas and we get an Auth Exception. Whereas if we put a sleep time, and allow for the user to be created, then we can authenticate fine.

We expect the plugin to wait until user is created before it returns the credentials - we dont run into this race condition.

@fairclothjm
Copy link
Contributor

Hello, I am sorry you are having trouble. Please see the discussion here related to this issue:

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