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
This objective is a continuation of the command manager issue: wazuh/wazuh-indexer#349.
The goal is to expand the available commands and complete any pending tasks that were left unfinished in the previously mentioned objective.
From now on, what was call command manager, will now be referred as task manager. The task manager will accept task request and will output commands.
We will create a new module named command manager in the indexer that will process commands aimed at the indexer. After processing them all of this commands will generate a new commands aimed at server or/and agents.
The reason for this naming is that the current commands are too granular from the user’s perspective, and they need to be grouped or abstracted under parent tasks.
List of commands and their purpose:
Command
Description
Trigger
Target
Requires Expansion
Group assignment change
Changes the groups an agent belongs to
Group assignment change or group deletion
Indexer
Yes
Group configuration change
Updates the configuration of a specific group
Configuration change in the associated group
Indexer
Yes
Agent remote upgrade
On-demand upgrade request for an agent
Upgrade request
Agent
Yes
New agent package
Server downloads agent packages
New agent package
Server
No
Agent name change
Renames the agent
Name change request
Indexer
No
SCA policy change
Modifies or deletes a specific policy for a group of agents
Policy update or removal triggered by content manager or user
Indexer
Yes
SCA content update
Indexer updates its local sca database
SCA content update
Agent
Yes
Vulnerability DB rescan
Forces the agent to re-scan its vulnerabilities
CVE content update
Agent
Yes
CVE content update
Server updates its local vulnerability database
CVE content update
Server
No
Active response configuration
Modifies or deletes a specific active response for a group of agents
Active response update or removal via content manager or user
Indexer
Yes
Active response execution
Executes an active response command
Detection rule triggers active response
Indexer
Yes
Ruleset update
Server updates its local ruleset
Ruleset content update
Indexer
No
Server configuration change
Server receives a configuration change
Configuration update via dashboard/API
Server
No
Agent deletion
Agent notifies the system to stop connecting
Agent deletion from API or dashboard
Indexer
No
Management API RBAC changes
Server refreshes its RBAC cache
RBAC updates via Management API or dashboard
Server
No
Functional requirements
Generic
The agent must request the group configuration when executing the group assignment change command.
The agent must hot-apply the configuration after receiving it.
The server must provide a new endpoint for requesting the configuration of a specific group.
All existing implementation related to the agent reboot command must be removed.
A configuration change that implies disabling specific content (e.g., SCA, Active response) must cause the agent to remove such content.
Group assignment change
The group content is attached to the command sent to the agent to prevent a unnecessary flows.
flowchart LR
subgraph Backend["Server"]
direction TB
ManagementAPI("Management API")
Server("Server")
CommsAPI("Comms API")
ManagementAPI --> Server
end
Agent("Agent")
subgraph IndexSystem["Indexer"]
direction TB
TaskManager("Task manager")
CommandsStream("Commands stream")
CommandManager("Command manager")
AgentsIndex("Agents index")
end
Dashboard("Dashboard")
Dashboard -- "1-Generate task" --> TaskManager
ManagementAPI -- "1- Generate task" --> TaskManager
TaskManager -- "2- Write command" --> CommandsStream
CommandManager -- "3- Pull command" --> CommandsStream
CommandManager -- "4- Change group in agent index" --> AgentsIndex
CommandManager -- "5- Write child command \n & update first status command" --> CommandsStream
Server -- "6- Command pulling" --> CommandsStream
Server -- "7- Redirect command" --> CommsAPI
CommsAPI -- "8- Propagate command" --> Agent
Agent -- "9- Command result" --> CommsAPI
CommsAPI -- "10- Command result" --> CommandsStream
Loading
Group configuration change
The group content is attached to the command sent to the agent to prevent a unnecessary flows.
Uh oh!
There was an error while loading. Please reload this page.
Description
This objective is a continuation of the command manager issue: wazuh/wazuh-indexer#349.
The goal is to expand the available commands and complete any pending tasks that were left unfinished in the previously mentioned objective.
From now on, what was call command manager, will now be referred as task manager. The task manager will accept task request and will output commands.
We will create a new module named command manager in the indexer that will process commands aimed at the indexer. After processing them all of this commands will generate a new commands aimed at server or/and agents.
The reason for this naming is that the current commands are too granular from the user’s perspective, and they need to be grouped or abstracted under parent tasks.
List of commands and their purpose:
Functional requirements
Generic
Group assignment change
Group configuration change
Agent remote upgrade
New agent package
Agent name change
SCA Policy change
SCA Content update
Vulnerability DB rescan
CVE content update
Active response configuration
Active response execution
Ruleset update
Ruleset update
Server configuration
Implementation restrictions
Plan
Spike
Development
Requirements Traceability Matrix
Notes
The text was updated successfully, but these errors were encountered: