wazuh / wazuh-agent

Wazuh agent, the Wazuh agent for endpoints.
GNU Affero General Public License v3.0
2 stars 1 forks source link

Design and development of the communicator module for the new agent #25

Open TomasTurina opened 3 days ago

TomasTurina commented 3 days ago

Description

As part of the development of the new agent MVP, it is necessary to develop a new communicator module.

Take into account the following:

For more considerations (including API endpoints), see the spike issue.

aritosteles commented 2 days ago

Working branch: https://github.com/wazuh/wazuh-agent/tree/enhancement/25-communicator-module-mvp

sdvendramini commented 20 hours ago

The branch test/25-server-mock was added to work with communicator module.

The server mock acepts:

/authentication


## `/agents`

- Request

curl -X POST
http://localhost:8080/agents -H "Content-Type: application/json" -H "Accept: application/json" -H "Accept-Charset: utf-8" -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJzb21lLWF1dGgtc2VydmVyIiwic2FtcGxlIjoidGVzdCJ9.E6b_onD9_9-1rFwBVZN1I62yoy14iHXGmYKJ_RXJ-bM" -d '{"uuid":"agent_uuid","name":"agent_name"}'


- Response (json not yet defined)

agent_key