-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Deprecate osquery
wodle
#31049
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
base: enhancement/30435-agent-clean-up
Are you sure you want to change the base?
Deprecate osquery
wodle
#31049
Conversation
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.
LGTM!
Although I attempted to test this with the .deb package, its changelog was found to be corrupted. This issue is not considered significant, as a fix will be implemented on the base branch. :
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up wazuh-agent-build-deps (1.0) ...
parsechangelog/debian: warning: debian/changelog(l3): badly formatted heading line
LINE: * More info: https://documentation.wazuh.com/current/release-notes/release-5-0-0.html
parsechangelog/debian: warning: debian/changelog(l5): badly formatted heading line
LINE: -- Wazuh, Inc <[email protected]> Thu, 18 Dec 2025 00:00:00 +0000
parsechangelog/debian: warning: debian/changelog(l7): found start of entry where expected start of change data
LINE: wazuh-agent (4.14.0-0) stable; urgency=low
parsechangelog/debian: warning: debian/changelog(l7): found eof where expected start of change data
dpkg-buildpackage -rsudo -D -us -uc -b -nc
dpkg-buildpackage: warning: using a gain-root-command while being root
parsechangelog/debian: warning: debian/changelog(l3): badly formatted heading line
LINE: * More info: https://documentation.wazuh.com/current/release-notes/release-5-0-0.html
parsechangelog/debian: warning: debian/changelog(l5): badly formatted heading line
LINE: -- Wazuh, Inc <[email protected]> Thu, 18 Dec 2025 00:00:00 +0000
parsechangelog/debian: warning: debian/changelog(l7): found start of entry where expected start of change data
LINE: wazuh-agent (4.14.0-0) stable; urgency=low
parsechangelog/debian: warning: debian/changelog(l7): found eof where expected start of change data
dpkg-buildpackage: error: unable to determine source changed by
dpkg-buildpackage: source package wazuh-agent
dpkg-buildpackage: source version 5.0.0-0
debuild: fatal error at line 1357:
dpkg-buildpackage -rsudo -D -us -uc -b -nc failed
So, I ended up testing on:
[root@9e9c4c65a086 ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
# When testing the `osquery` block (add/remove), I received:
[root@9e9c4c65a086 ~]# cat /var/ossec/logs/ossec.log |grep osquery
2025/07/23 22:19:33 wazuh-modulesd: WARNING: Module name 'osquery' is deprecated.
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.
LGTM!
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.
LGTM
Description
Hi team,
This PR removes all related code to the
osquery
wodle. With this PR, if the wodle is tried to be used, a warning will be logged, letting the user know that the mentioned wodle is no longer available.Tests
Additionally, a testing installation have been carried on:
Created a DEB server package with the following command:
sudo ./packages/generate_package.sh --verbose -a amd64 -t manager -j 20 --system deb
Created a RPM agent package with the following command:
sudo ./packages/generate_package.sh --verbose -a amd64 -t agent -j 20 --system rpm
Installed server:
Installed RPM agent:
🟢 The agents are properly running and enrolled in the server.
🟢 Server Warning Test
If the server does not have the osquery wodle enabled, no warning appears:
If the following configuration block is added, when the server is started the following logs appear:
Server start-up logs:
🟢 Agent Warning Test
If the agent does not have the osquery wodle enabled, no warning appears:
If the following configuration block is added, when the agent is started the following logs appear:
Agent start-up logs: