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
Currently, the action.args fields of commands is an array, which fits good enough the existing use cases for the MVP phase. However, this data structure has proven to be insufficient / limited for more complex commands. For this reason, we are changing the action.args to object. The fields of this object are to be defined ad-hoc for each kind of command. The definition of these commands needs to be depicted by the @wazuh/devel-agent team. For now, we'll not validate or fix the fields under this object, so the commands index needs to be temporarily set to dynamic in order to accept any nested fields. The remaining fields are unchanged.
This change needs to be applied on agent, server and indexer.
AlexRuiz7
changed the title
Improve interopreability of commands by changing process.args to object
Improve interopreability of commands by changing action.args to objectDec 23, 2024
AlexRuiz7
changed the title
Improve interopreability of commands by changing action.args to object
Improve interoperability of commands by changing action.args to objectDec 27, 2024
Description
Related issue: #349
Currently, the
action.args
fields of commands is an array, which fits good enough the existing use cases for the MVP phase. However, this data structure has proven to be insufficient / limited for more complex commands. For this reason, we are changing theaction.args
to object. The fields of this object are to be defined ad-hoc for each kind of command. The definition of these commands needs to be depicted by the @wazuh/devel-agent team. For now, we'll not validate or fix the fields under this object, so the commands index needs to be temporarily set to dynamic in order to accept any nested fields. The remaining fields are unchanged.This change needs to be applied on agent, server and indexer.
Functional requirements
commands.action.args
field is an object.commands.action.args
are dynamic (any nested field is accepted).Implementation restrictions
Plan
The text was updated successfully, but these errors were encountered: