wazuh-dashboard-plugins
wazuh-dashboard-plugins copied to clipboard
App settings: Values of `wazuh.monitoring.enabled` not correctly managed
Wazuh | Elastic | Rev | Security |
---|---|---|---|
4.x | 7.x | 4xxx | Basic, ODFE, Xpack |
Description
The wazuh.monitoring.enabled
app setting according to the documentation can take three controlled values: true
, false
, worker
. For the worker
case the Evolution
visualization should be visible and the monitoring
job should be disabled, but in the source code for the visualization only is checking the value for the setting is truthy (evaluation to true
.
Moreover, the setting can't be configurated to the worker
value because its control is a switch of 2 possible values
Tasks
- [ ] Evaluate how we want to manage this setting if we want to keep the 3 values or only 2 (to control if the job is running or not)
- [ ] Apply the required fixes
Acceptance criteria
- Define the strategy to apply and modify the app according to the decision
Note This issue could be affected by https://github.com/wazuh/wazuh-kibana-app/issues/3623
The wazuh.monitoring.enabled
should have 2 possible values, conceptually. So, we could think to create a new setting to get the same case of when the value is worker
. For example, the new setting could control if the visualization should be rendered or not. This could be useful for environments with heavy Elasticsearch load.