-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Hello team,
This issue is based on #5387.
Description
With the refactor and changes to the upgrade process, the new Wazuh upgrade module will be in charge to handle upgrade requests with agents and update the appropriate task status. Until now, the framework was in charge of the complete upgrade process, validating the input, downloading the wpk, etc. We should refactor the framework module for agents so the petition is sent to the new upgrade module directly through the provided socket.
Design
Remove all deprecated framework code in favor of the new upgrade module. The framework function should only receive an upgrade request from the API or the CLI, apply RBAC access permissions and send the petition to the new upgrade module socket, await for the response and send it back.
Testing
We should update unit tests for agent framework modules accordingly to the proposed changes. Remove or update deprecated tests and new ones if necessary.
Tasks
- Update agent.py framework SDK and core modules
- Update/add and run new unit tests