-
Notifications
You must be signed in to change notification settings - Fork 185
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
Agent registration password includes \n
#6906
Comments
The
Depending on the In some test with macOS of @chantal-kelm and @yenienserrano, the Testing on Linux Manjaro, the behavior of console:~$ echo "WAZUH_MANAGER='186.0.141.122' && WAZUH_REGISTRATION_PASSWORD='mypass'\n" > /tmp/wazuh_envs
console:~$ cat /tmp/wazuh_envs
WAZUH_MANAGER='186.0.141.122' && WAZUH_REGISTRATION_PASSWORD='mypass'\n
console:~$ . /tmp/wazuh_envs
console:~$ echo $WAZUH_REGISTRATION_PASSWORD
mypassn
echo -e "WAZUH_MANAGER='186.0.141.122' && WAZUH_REGISTRATION_PASSWORD='mypass'\n" > /tmp/wazuh_envs
console:~$ cat /tmp/wazuh_envs
WAZUH_MANAGER='186.0.141.122' && WAZUH_REGISTRATION_PASSWORD='mypass'
console:~$ wc -l /tmp/wazuh_envs In my case, I need the usage of It is not clear to me the problem, but I assume the issue is that the value for the password could contain a @JuanGarriuz found the documentation has no the new line character: https://documentation.wazuh.com/4.8/user-manual/agent/deployment-variables/deployment-variables-macos.html So, we will remove the newline character for consistency with the command provided by documentation.
|
Description
If Wazuh agent enrollment password is enabled the registration script renders a
\n
in a macOS password.Preconditions
Steps to reproduce
Expected Result
\n
characterActual Result
\n
at the end of the passwordAdditional context
Registration command service:
https://github.com/wazuh/wazuh-dashboard-plugins/blob/4.9.0/plugins/main/public/components/endpoints-summary/register-agent/services/register-agent-os-commands-services.tsx#L152
Screenshots
The text was updated successfully, but these errors were encountered: