wazuh / wazuh-docker

Wazuh - Docker containers
https://wazuh.com
Other
678 stars 392 forks source link

PSA: Do not use & in admin password with docker #1347

Closed Racle closed 4 months ago

Racle commented 4 months ago

Using latest docker release (4.7.4) and single-node.

If you use & in admin password, it will break /etc/filebeat/filebeat.yml file on wazuh boot.

You will get error in wazuh.manager

Exiting: error loading config file: yaml: line 17: did not find expected key 

and password value is broken (whole line is multiplied at every reboot).

davidcr01 commented 4 months ago

Hello.

Yes, you are right. Some special characters are not supported when changing the Wazuh users. These characters are & and $, as they can create conflicts with Docker Compose and the sed tool. We have created the following issue in order to add a note in the documentation: https://github.com/wazuh/wazuh-documentation/issues/7319

Please, when changing the passwords of the Wazuh users, do not specify such characters in order to avoid errors. Sorry about the inconvenience.

Hope it helps.