wazuh / wazuh-kubernetes

Wazuh - Wazuh Kubernetes
https://wazuh.com/
GNU General Public License v2.0
237 stars 147 forks source link

shared ossec.conf for both master and worker nodes #638

Open dracon80 opened 3 months ago

dracon80 commented 3 months ago

I've searched the previous issues and can't see anything in relation to this. At present there is a master.conf and a worker.conf and each statefulset references one or the other. Is there a reason that something similar to "to_be_replaced_by_hostname" hasn't been implemented to allow an environment variable to be set and update the value for role? I was thinking of a token "to_be_replaced_by_role" and have the script replace the value based on an environment variable. This would then allow the use of a single shared ossec.conf file and remove the need to keep them in sync.

Is this a bad idea or something to be avoided. Happy to look at put in a pull request if it would be considered.