wazuh-dashboard-plugins
wazuh-dashboard-plugins copied to clipboard
Select package type to upgrade
Description
When upgrade an individual agent, in case that the OS is Linux
and the platform is not one of these:
-
debian
-
ubuntu
-
amzn
-
centos
-
fedora
-
ol
-
opensuse
-
opensuse-leap
-
opensuse-tumbleweed
-
rhel
-
sles
-
suse
The confirm modal asks for the package type (RPM or DEB).
[!NOTE]
The multiple upgrade action was not modified
Issues Resolved
https://github.com/wazuh/internal-devel-requests/issues/1102
Evidence
Ubuntu platform
The request was made without package_type
and force
parameters
Alpine platform
The request was made with package_type
and force
parameters
Test
Legend: :black_circle:: none :green_circle:: pass :yellow_circle:: warning :red_circle:: fail :white_circle:: not applicable
UI
[!IMPORTANT]
Test with a real manager from this branch: https://github.com/wazuh/wazuh/tree/migration/21755-wazuh-packages-redesign. Here are the API changes with the newpackage_type
parameter.Create an out of date agent with Ubuntu (or other supported Linux platform)
docker run --name os-dev-2130-agent-$(date +%s) --network os-dev-2.13.0 --label com.docker.compose.project=os-dev-2130 --env WAZUH_AGENT_VERSION=4.6.0 -d centos/8 bash -c ' apt update -y apt install -y curl lsb-release curl -so \wazuh-agent-${WAZUH_AGENT_VERSION}.deb \ https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/wazuh-agent_${WAZUH_AGENT_VERSION}-1_amd64.deb \ && WAZUH_MANAGER='wazuh.manager' WAZUH_AGENT_GROUP='default' dpkg -i ./wazuh-agent-${WAZUH_AGENT_VERSION}.deb /etc/init.d/wazuh-agent start tail -f /var/ossec/logs/ossec.log '
Create an out of date agent with Alpine (or other unsupported Linux platform) Vagrantfile
Vagrant.configure("2") do |config| config.vm.box = "generic/alpine312" end
Guide to install the agent in Alpine: https://documentation.wazuh.com/current/installation-guide/wazuh-agent/wazuh-agent-package-linux.html (APK tab)
The upgrade tasks fail because the manager 4.9.0 cannot find the 4.9.0 package to upgrade the agents.
Go to Server management -> Endpoint Summary
Ubuntu agent
Test | Chrome | Firefox | Safari |
---|---|---|---|
Click the All actions (... ) button in the agent row and click Upgrade . A modal should open should only display the Agent ID, Agent name, Agent version and OS fields. |
:black_circle: | :black_circle: | :black_circle: |
Inside the modal, click Upgrade . The API request should only use the agents_list and wait_for_complete parameters. |
:black_circle: | :black_circle: | :black_circle: |
Details
:black_circle: Click the `All actions` (`...`) button in the agent row and click `Upgrade`. A modal should open should only display the Agent ID, Agent name, Agent version and OS fields.
Chrome - :black_circle:
Firefox - :black_circle:
Safari - :black_circle:
:black_circle: Inside the modal, click `Upgrade`. The API request should only use the `agents_list` and `wait_for_complete` parameters.
Chrome - :black_circle:
Firefox - :black_circle:
Safari - :black_circle:
Alpine agent
Test | Chrome | Firefox | Safari |
---|---|---|---|
Click the All actions (... ) button in the agent row and click Upgrade . A modal should open should display the Agent ID, Agent name, Agent version and OS fields, and the package type input. |
:black_circle: | :black_circle: | :black_circle: |
Inside the modal, select the package type and click Upgrade . The API request should use the agents_list , wait_for_complete , force and package_type parameters. |
:black_circle: | :black_circle: | :black_circle: |
Details
:black_circle: Click the `All actions` (`...`) button in the agent row and click `Upgrade`. A modal should open should display the Agent ID, Agent name, Agent version and OS fields, and the package type input.
Chrome - :black_circle:
Firefox - :black_circle:
Safari - :black_circle:
:black_circle: Inside the modal, select the package type and click `Upgrade`. The API request should use the `agents_list`, `wait_for_complete`, `force` and `package_type` parameters.
Chrome - :black_circle:
Firefox - :black_circle:
Safari - :black_circle:
Check List
- [x] All tests pass
- [x]
yarn test:jest
- [x]
- [ ] New functionality includes testing.
- [ ] New functionality has been documented.
- [x] Update CHANGELOG.md
- [x] Commits are signed per the DCO using --signoff