-
Notifications
You must be signed in to change notification settings - Fork 54
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
Race condition when adding multiple agents quickly #26
Comments
Hi @rossengeorgiev, This is a known issue commented in wazuh/wazuh#176. The reason why this is happening is because the API call to add agents without using When Best regards, |
Hi, |
Hi @rossengeorgiev , we will fix the race condition in the API, but for now, we recommend to use authd. If you enable authd, each request to the API related to register/remove agent will be "forwarded" to authd. Does it work for you?.
What is your use case?. Thanks. |
Hi @jesuslinares, thanks for clarifying. I didn't realize |
Enabling |
@jesuslinares any chance there could be conf switch to force the use of |
You are totally right. We are going to include that option in the next version. For now, you can change the code.
Thanks so much. |
Hello @rossengeorgiev, As you suggested, a new parameter has been added in API configuration to force the use of authd (see #43 and wazuh/wazuh#305). This will be added in Wazuh 3.1. We're not closing this issue since the original bug is not yet fixed. Best regards, |
Hello again, This bug has been fixed in wazuh/wazuh#306. Best regards, |
Trying to add multiple agents at the same time often return the same
agent id
for multiple requests. Generate multiple entries inclients.keys
with the sameagent id
. Also, some of the shared secret will have a matching end half.This presents a problem when attempting to automate key management with tools like salt, puppet, etc.
Steps to reproduce
wazuh-manager
andwazuh-api
with no auth/ssl configured onubuntu 16.04
Version
The text was updated successfully, but these errors were encountered: