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

Agent centralized configuration: validate and apply downloaded files #263

Open
Nicogp opened this issue Oct 30, 2024 · 1 comment · May be fixed by #274
Open

Agent centralized configuration: validate and apply downloaded files #263

Nicogp opened this issue Oct 30, 2024 · 1 comment · May be fixed by #274
Assignees
Labels

Comments

@Nicogp
Copy link
Member

Nicogp commented Oct 30, 2024

Parent issue:

Description

As part of the development of #32 it is necessary for the module to validate the files received and if they are correct apply the configuration received or restart the agent as needed.

File Reading and Validation:

  • The agent must read the configuration files in the specified order.
  • The agent must validate each configuration file to ensure it is error-free.

Configuration Application:

  • If validation is successful, the agent must apply the new configuration to all relevant modules.
  • If required, the agent must be able to restart to apply the new configuration fully.

Other considerations:

  • Remove duplicated code.
  • Include some useful logs (ie. when the command is not recognized).
  • Validate functions pointers (m_setGroupIdFunction, m_getGroupIdFunction, m_downloadGroupFilesFunction).
@Nicogp
Copy link
Member Author

Nicogp commented Nov 6, 2024

Work update

2024/11/05

2024/11/12

  • I have taken up the issue
  • I added the changes for CentralizedConfiguration to perform the verification of the downloaded files
  • I have corrected the creation of the download path for the file
  • I have added log messages in case of any failure.

@wazuhci wazuhci moved this from On hold to In progress in Release 5.0.0 Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In progress
1 participant