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

Make the HttpClient class a common library #145

Open
4 tasks
TomasTurina opened this issue Sep 11, 2024 · 0 comments
Open
4 tasks

Make the HttpClient class a common library #145

TomasTurina opened this issue Sep 11, 2024 · 0 comments
Labels
level/task Task issue module/agent type/change Change performed in a resource or Wazuh Cloud environment

Comments

@TomasTurina
Copy link
Member

Description

As part of the development of the new communicator, an HttpClient class was created to encapsulate HTTP calls to the Server Management and Agent Comms APIs.

Currently, this class is only available and adapted for use by the communicator component, but we will need to make it available to all modules as well. For this, we need to consider migrating the code of this wrapper to a common library and making it more generic, if necessary.

Also, as part of these changes, we also need to consider whether the communicator should be considered a module instead of a component, given all the tasks and responsibilities it has.

The following tasks should be performed:

  • Separate the HTTPClient wrapper class into a common library.
  • Share the wrapper with all modules so they can use it as well.
    • Multiple instances of the class can exist at once and work in parallel if possible.
  • Analyze whether the communicator can be converted into a module and migrate its code to the src/modules folder if so decided.
    • It will be the responsibility of the ModuleManager to start it.
  • Present a diagram of the agent (components and modules) after these changes.
    • Consider using the c4 model for this task.
@TomasTurina TomasTurina added level/task Task issue type/change Change performed in a resource or Wazuh Cloud environment module/agent phase/feature complete labels Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue module/agent type/change Change performed in a resource or Wazuh Cloud environment
Projects
None yet
Development

No branches or pull requests

2 participants