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

Implement HTTP client logic #89

Open
Tracked by #349
AlexRuiz7 opened this issue Oct 2, 2024 · 0 comments · May be fixed by #93
Open
Tracked by #349

Implement HTTP client logic #89

AlexRuiz7 opened this issue Oct 2, 2024 · 0 comments · May be fixed by #93
Assignees
Labels
level/task Task issue type/enhancement Enhancement issue

Comments

@AlexRuiz7
Copy link
Member

AlexRuiz7 commented Oct 2, 2024

Description

As part of the Command Manager plugin development and in continuation of #73, we are going to implement an HTTP client service to communicate with the Wazuh Server Management API.

This HTTP client service will implement and expose a method to perform async POST requests, taking commands as payload.

httpService.post(order);

Functional requirements

  • The HTTP Client service implements a method to perform async POST requests to the Wazuh Server Management API.
  • The HTTP Client service POST method takes a command as in its index model as parameter. This will be sent as payload.
  • The HTTP Client service returns information about the request's completion or failure.
  • The HTTP Client service uses appropriate logging.
  • The HTTP Client service handles connections errors.

Implementation restrictions

  • The HTTP client service will use Apache HTTP Client under the hood.
  • The Wazuh Server Management API details are to be read from the configuration.
@AlexRuiz7 AlexRuiz7 added level/task Task issue type/enhancement Enhancement issue labels Oct 2, 2024
@AlexRuiz7 AlexRuiz7 changed the title Implement HTTP client logic Implement HTTP client logic Oct 2, 2024
@f-galland f-galland self-assigned this Oct 2, 2024
@f-galland f-galland linked a pull request Oct 4, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/enhancement Enhancement issue
Projects
Status: In progress
Development

Successfully merging a pull request may close this issue.

2 participants