I have a task to upgrade Wazuh from version 4.10.3 to 4.14.1, and I am referring to the official upgrade documentation below:
https://documentation.wazuh.com/current/upgrade-guide/upgrading-central-components.html
In this document, I came across the following step:
Backup the existing Wazuh indexer security configuration files:
/usr/share/wazuh-indexer/bin/indexer-security-init.sh --options "-backup /etc/wazuh-indexer/opensearch-security -icl -nhnv"
Later, in the post-upgrade steps, the document mentions:
Run the indexer-security-init.sh script to apply the security configuration files from backup into the new Wazuh indexer:
/usr/share/wazuh-indexer/bin/indexer-security-init.sh"
I would like to understand the impact of performing these steps during the upgrade process.
In my environment, there are more than 20 internal users, roles, custom role mappings configured. I would like to know whether executing these steps could modify, overwrite, or affect any existing internal users, roles, role mappings, or other custom configurations.
If there is any potential impact, please advise on the precautions or best practices that should be followed to ensure that the existing configurations remain intact during and after the upgrade.