-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add agent files from wazuh/wazuh #23
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: Marcel Kemp Muñoz <[email protected]>
… with new repository
In order to succesfuly downgrade to earlier versions of Wazuh, we need to restore ownership of files to the ossec group and user. RPM may also backup the client.keys file, making it impossible for the agent to reconnect, for this reason we try to restore this backup of the client.keys if none is found.
The removal of a previous installed pacakge can result in the ossec group and user being deleted, leaving files orphaned. Some of these files are needed to be owned by Wazuh to guarantee the agent connection.
In soeme cases the service lingers and doesn't respond to more graceful attempts. We then try kill the process if previous attempts didn't work.
This works fine with newer versions of Wazuh that follow the same paths structure. Older versions (ones with ossec group and user) require that we restore that expected paths and ownership.
Code to rename folders has been moved to postrm.
The motivation behind this addition of messages is to have more information if a installation using pkg packages fails.
… need to reflect this on wazuh packages as well to find the correct script.
All WPKs are now built using OS specific packages instead of sources, hence there is no longer need to compile the Linux sources.
The packing of the wpk file is not architecture dependent, it depends solely on the type of package (rpm, deb, msi, pkg, etc...)
WPKs will now only support packages, dropping compilation from sources.
These are no longer necessary since the removal of the compilation from sources in WPKs.
No compilation is made now for WPKs, rendering those dockerfiles unnecessary.
Fix haproxy health check
…place-on-translations Implementing version regex in translations
Add wodles utils unit tests
…rollment Corrections on conf and replacing timeout like agentd enrollment test
…ceback Added basic filter for CLI logging.
Merge 4.8.1 into 4.9.0
Merge 4.9.0 into master
Migrated Virustotal API from v2 to v3
…w-os-check-issues Update os check issue template
…ations_algorithm Improve translations performance with filter
TomasTurina
force-pushed
the
7-add-agent-files
branch
from
July 3, 2024 00:52
42b65f2
to
58f3d1e
Compare
vikman90
requested changes
Jul 8, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @TomasTurina! We just need to do a few changes:
- Convention: all files/directories with
_
instead of-
. - Move common/c-utils/* to common.
- Move all .h and .hpp files into an include folder.
- Move all .cpp and .c files into a src folder.
- Avoid all tests that are failing.
TomasTurina
force-pushed
the
7-add-agent-files
branch
from
July 8, 2024 20:39
494be92
to
3e4fd4a
Compare
LGTM! |
vikman90
approved these changes
Jul 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR migrates all agents files from
wazuh/wazuh
repository.Besides, the new structure is applied to every module and common library.