You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We already have a solid definition for the first set of commands that will be accepted by Wazuh Agents.
Currently, the Command Manager plugins does not validate per command type, and does a generic validation instead. For the commands of type set-group and fetch-config, the Command Manager needs to do a proper validation of the fields so they match the given definition model, specially these under the command.action.args object.
The set-group command is used to update the group of agents that the agent belongs too. This command accepts an array of strings within action.args, comprising the complete list of groups for this agent.
The fetch-config command is used to order an agent to download and apply the centralized configuration for the groups it belongs too. This command accepts no arguments.
Functional requirements
In case of a mismatch on a set-group command, the request is rejected.
In case of a mismatch on a fetch-config command, mismatching values are ignored, and the request is accepted.
For any other command type, the request is accepted under the generic parser.
Implementation restrictions
Unit tests required as PR acceptance criteria.
Plan
Create a dedicated parser (or model) for set-group commands.
Create a dedicated parser (or model) for fetch-config commands.
The text was updated successfully, but these errors were encountered:
Description
We already have a solid definition for the first set of commands that will be accepted by Wazuh Agents.
Currently, the Command Manager plugins does not validate per command type, and does a generic validation instead. For the commands of type
set-group
andfetch-config
, the Command Manager needs to do a proper validation of the fields so they match the given definition model, specially these under thecommand.action.args
object.The
set-group
command is used to update the group of agents that the agent belongs too. This command accepts an array of strings withinaction.args
, comprising the complete list of groups for this agent.The
fetch-config
command is used to order an agent to download and apply the centralized configuration for the groups it belongs too. This command accepts no arguments.Functional requirements
set-group
command, the request is rejected.fetch-config
command, mismatching values are ignored, and the request is accepted.Implementation restrictions
Plan
set-group
commands.fetch-config
commands.The text was updated successfully, but these errors were encountered: