Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command Manager client prototype #239

Open
AlexRuiz7 opened this issue Jan 21, 2025 · 0 comments
Open

Command Manager client prototype #239

AlexRuiz7 opened this issue Jan 21, 2025 · 0 comments
Labels
level/task Task issue type/research Research issue

Comments

@AlexRuiz7
Copy link
Member

AlexRuiz7 commented Jan 21, 2025

Description

On new content, the Content Manager generates a command via the Command Manager to notify the Engine to pull the new content.

The POST /commands endpoint exposed by the Command Manager is used to generate the command.

---
title: Content Manager - HTTP clients
---
classDiagram
    HTTPclient <|-- CTIclient
    HTTPclient <|-- CommandManagerClient

    class HTTPclient{
        <<abstract>>
        +request(method, payload, callback)
    }
    class CTIclient{
        -int apiUrl
        +getConsumerInfo()
        +getContextChanges()
    }
    class CommandManagerClient{
        -int apiUrl
        +postCommand()
    }
Loading

Functional requirements

  • The Content Manager is able to generate a new command that ends up in the commands stream index.
  • The Content Manager generates a new command whenever new content is available (this is, when it fetches new content from the CTI API and the content has been correctly patched in the index).

Implementation restrictions

  • Use the POST /commands endpoint exposed by the Command Manager is used to generate the command.
  • Implementation of units tests.
  • Implementation of error handling.

Plan

  • Command definition.
  • Command Manager client implementation.
@AlexRuiz7 AlexRuiz7 added level/task Task issue type/research Research issue labels Jan 21, 2025
@wazuhci wazuhci moved this to Backlog in XDR+SIEM/Release 5.0.0 Jan 21, 2025
@AlexRuiz7 AlexRuiz7 assigned AlexRuiz7 and unassigned AlexRuiz7 Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/research Research issue
Projects
Status: Backlog
Development

No branches or pull requests

1 participant