wazuh-dashboard-plugins icon indicating copy to clipboard operation
wazuh-dashboard-plugins copied to clipboard

Update Cluster configuration with the haproxy helper settings

Open yenienserrano opened this issue 9 months ago • 0 comments

Description

Update Cluster configuration with the haproxy helper settings

Issues Resolved

  • https://github.com/wazuh/wazuh-dashboard/issues/175

Evidence

image

Test

You can try the imposter or a manager of this branch: epic-20887-migrate-haproxy-helper

If you use a manager on that branch you will have to run this so that the manager doesn't hang. And then restart wazuh /var/ossec/framework/python/bin/pip3 install httpx

Tests:

Always in Server Management/Settings/Cluster

Legend: :black_circle:: none :green_circle:: pass :yellow_circle:: warning :red_circle:: fail :white_circle:: not applicable

UI

Test Chrome Firefox Safari
Without the haproxy_handler configuration, only the main settings should be rendered. :black_circle: :black_circle: :black_circle:
With the basic haproxy_handler configuration, everything should render with the default values :black_circle: :black_circle: :black_circle:
By adding the other settings, the changed settings should render. :black_circle: :black_circle: :black_circle:

Details

:black_circle: Without the `haproxy_handler` configuration, only the main settings should be rendered.

Chrome - :black_circle:

Firefox - :black_circle:

Safari - :black_circle:

:black_circle: With the basic `haproxy_handler` configuration, everything should render with the default values

Chrome - :black_circle:

Firefox - :black_circle:

Safari - :black_circle:

:black_circle: By adding the other settings, the changed settings should render.

Chrome - :black_circle:

Firefox - :black_circle:

Safari - :black_circle:

These configurations go inside <cluster></cluster>

Basic settings:

    <haproxy_helper>
        <haproxy_disabled>yes</haproxy_disabled>
        <haproxy_address>wazuh-proxy</haproxy_address>
        <haproxy_user>haproxy</haproxy_user>
        <haproxy_password>haproxy</haproxy_password>
    </haproxy_helper>

All settings:

   <haproxy_helper>
        <haproxy_disabled>no</haproxy_disabled>
        <haproxy_address>wazuh-proxy</haproxy_address>
        <haproxy_user>haproxy</haproxy_user>
        <haproxy_password>haproxy</haproxy_password>
        <haproxy_port>5555</haproxy_port>
        <haproxy_protocol>http</haproxy_protocol>
        <haproxy_backend>wazuh_cluster</haproxy_backend>
        <frequency>60</frequency>
        <agent_chunk_size>10</agent_chunk_size>
        <agent_reconnection_time>10</agent_reconnection_time>
        <agent_reconnection_stability_time>60</agent_reconnection_stability_time>
        <imbalance_tolerance>0.1</imbalance_tolerance>
        <remove_disconnected_node_after>1</remove_disconnected_node_after>
    </haproxy_helper>

Check List

  • [ ] All tests pass
    • [ ] yarn test:jest
  • [ ] New functionality includes testing.
  • [ ] New functionality has been documented.
  • [ ] Update CHANGELOG.md
  • [x] Commits are signed per the DCO using --signoff

yenienserrano avatar May 08 '24 16:05 yenienserrano