Closed vikman90 closed 2 weeks ago
Working on new definition (new message structure). The structure of the registration request is still missing.
Endpoint: /security/user/authenticate
Method: POST
Headers:
base64(user:pass)
Example: WazuhXDR/5.0.0 (Endpoint; x86_64; Linux)
Endpoint: /agents
Method: POST
Headers:
token
Example: WazuhXDR/5.0.0 (Endpoint; x86_64; Linux)
Example:
{
"agent": {
"groups": [],
"host": {
"architecture": "aarch64",
"hostname": "tomas",
"ip": "172.20.0.1",
"os": {
"name": "Ubuntu",
"platform": "Linux"
}
},
"id": "sldkfjoqwvnskdsoif",
"key": "oiefsakjndwreoguiweo",
"type": "Endpoint",
"version": "5.0.0"
}
}
Endpoint: /api/v1/authentication
Method: POST
Headers:
Example: WazuhXDR/5.0.0 (Endpoint; x86_64; Linux)
Example:
{
"uuid": "UUID",
"key": "7b8276c3bf96aff5709346d368f04fed"
}
Endpoint: /api/v1/events/stateful
/api/v1/events/stateless
Method: POST
Headers:
token
Example: WazuhXDR/5.0.0 (Endpoint; x86_64; Linux)
Example:
{
"agent": {
"groups": [],
"host": {
"architecture": "aarch64",
"hostname": "tomas",
"ip": "172.20.0.1",
"os": {
"name": "Ubuntu",
"platform": "Linux"
}
},
"id": "sldkfjoqwvnskdsoif",
"type": "Endpoint",
"version": "5.0.0"
}
}
PR ready for review. Pending some tests.
Parent Issue: https://github.com/wazuh/wazuh-agent/issues/241
When the agent registers, it must send information about itself to the server:
This information must also be attached to the metadata headers in stateful and stateless messages.