wazuh-packages icon indicating copy to clipboard operation
wazuh-packages copied to clipboard

Change FIM database management using DBSync and RSync

Open FrancoRivero opened this issue 3 years ago • 1 comments

Related issue Component
https://github.com/wazuh/wazuh/issues/9103 FIM

Description

This pull request adds the following changes related to the FIM rework to support DBSync, and RSync.

  • RPM specs have been updated to include the new library for FIM libfimdb.so
  • Solaris specs have been updated to include the new library
  • The script to generate the package for HP-UX has been updated to:
    • Download and deploy the needed compiler GCC 9.4 and CMake 3.22.2
    • GCC is no longer downloaded from the depothelper
    • Standard libraries needed to run the agent are added to the installation directory

After the need to include two new libraries in the agent installation, the footprint of the package grows.

  • libstdc++.so: 27MB
  • libgcc_s.so: 0.4MB
  • Agent package: 55MB

Tests

  • Build the package in any supported platform
    • [x] Linux
    • [x] Windows
    • [x] macOS
    • [x] Solaris
    • [x] AIX
    • [x] HP-UX
  • [x] Package installation
  • [ ] Package upgrade
  • [ ] Package downgrade
  • [x] Package remove
  • [x] Package install/remove/install
  • [x] Change added to CHANGELOG.md
  • Tests for Linux RPM
    • [ ] Build the package for x86_64
    • [ ] Build the package for i386
    • [ ] Build the package for armhf
    • [ ] Build the package for aarch64
    • [ ] %files section is correctly updated if necessary
  • Tests for Linux deb
    • [ ] Build the package for x86_64
    • [ ] Build the package for i386
    • [ ] Build the package for armhf
    • [ ] Build the package for aarch64
    • [ ] Package install/remove/install
    • [ ] Package install/purge/install
    • [ ] Check file permissions after installing the package
  • Tests for macOS
    • [ ] Test the package from macOS Sierra to Mojave
  • Tests for Solaris
    • [ ] Test the package on Solaris 10
    • [ ] Test the package on Solaris 11
    • [ ] Check file permissions on Solaris 11 template
  • Tests for IBM AIX
    • [ ] %files section is correctly updated if necessary
    • [ ] Check the changes from IBM AIX 5 to 7

FrancoRivero avatar Feb 25 '22 12:02 FrancoRivero

I have removed the following lines, as it seems that the changelog format has been changed in the latest version

- Add new shared library `libfimdb` for FIM in SPECS [#1275](https://github.com/wazuh/wazuh-packages/pull/1275)
- Update HP-UX generation script to compile C++ modules of Wazuh [#1275](https://github.com/wazuh/wazuh-packages/pull/1275)

antoniomanuelfr avatar Aug 09 '22 12:08 antoniomanuelfr

At the moment we have created the following Tasks definition with the changes proposed in this PR so that they can carry out tests:

  • Packages_deb_amd64_gcc9_9103
  • Packages_deb_arm64_gcc9_9103
  • Packages_rpm_x86_64_gcc9_9103
  • Packages_rpm_aarch64_gcc9_9103

c-bordon avatar Nov 17 '22 20:11 c-bordon

I was working on the construction of the missing images and on the task definitions since I found some errors, the creation of several of the requested packages has already passed, the ones for i386 remain, I continue working on them.

The following images were created:

  • 966237403726.dkr.ecr.us-east-1.amazonaws.com/package-generation:rpm_builder_i386_gcc9_9103
  • 966237403726.dkr.ecr.us-east-1.amazonaws.com/package-generation:deb_builder_i386_gcc9_9103
  • 966237403726.dkr.ecr.us-east-1.amazonaws.com/package-generation:rpm_builder_armv7hl_gcc9_9103
  • 966237403726.dkr.ecr.us-east-1.amazonaws.com/package-generation:deb_builder_armhf_gcc9_9103

Their respective task definitions were also created, and some errors were found in the log streams, which were solved by changing the configuration of the task definitions.

https://ci.wazuh.info/job/Packages_builder/122929/console

c-bordon avatar Nov 29 '22 19:11 c-bordon

Created rpm and i386 deb images and released missing packages, checks for this PR passed successfully

c-bordon avatar Nov 30 '22 19:11 c-bordon