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

Merge 4.7.1 into master #2477

Merged
merged 38 commits into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
6e44887
Added check to fix mkdir error in backup
davidcr01 Sep 5, 2023
836a7b7
Merge branch '4.5.3' of https://github.com/wazuh/wazuh-packages into …
DFolchA Sep 7, 2023
1be6e5e
Merge pull request #2426 from wazuh/merge-4.5.3-into-4.6.0
vikman90 Sep 7, 2023
00e6cb2
Merge branch '4.6.0' of https://github.com/wazuh/wazuh-packages into …
DFolchA Sep 7, 2023
7f1f1aa
Merge pull request #2427 from wazuh/merge-4.6.0-into-4.7.0
vikman90 Sep 7, 2023
2c3a872
Fixed wazuh-dashboad and wazuh-indexer service validation
c-bordon Sep 8, 2023
c668a28
Reverted --all options for cert-tools
c-bordon Sep 11, 2023
336fc0b
Merge pull request #2438 from wazuh/5611-failed-to-check-the-wazuh-da…
teddytpc1 Sep 11, 2023
e1bd705
Merge branch '4.6.0' of github.com:wazuh/wazuh-packages into 2441-cer…
c-bordon Sep 11, 2023
66bfeed
Merge pull request #2443 from wazuh/2441-cert-tool-issue-with-a-optio…
teddytpc1 Sep 12, 2023
a5e0af3
Merge pull request #2421 from wazuh/2414-incorrect-handling-of-the-wa…
teddytpc1 Sep 12, 2023
1b79792
This change avoids deleting the entire syscheckd folder when creating…
Nicogp Sep 13, 2023
8313d6e
Fixed dashboard port check
davidcr01 Sep 14, 2023
c5fc3e8
Merge pull request #2452 from wazuh/bug/18965-fix-wpk-build
TomasTurina Sep 14, 2023
390cc2a
Merge pull request #2453 from wazuh/bug/2451-dashboard-port-not-changing
teddytpc1 Sep 14, 2023
ec7fd74
adding Centos 7 to chromium installation exception
c-bordon Sep 14, 2023
6e316c2
Update internal_users.yml file when changing passwords
davidcr01 Sep 15, 2023
41cddbb
Merge pull request #2455 from wazuh/2446-warning-in-the-quickstart-in…
teddytpc1 Sep 15, 2023
c119aaa
Sign windows fimdb dll.
GabrielEValenzuela Sep 15, 2023
0d38fbf
Merge pull request #2456 from wazuh/bug/18952-sign-fimdb-dll
Dwordcito Sep 18, 2023
80090d8
Improved the update of the internal_users.yml file
davidcr01 Sep 18, 2023
62a6c97
fix: handle indexer base file missing
Deblintrake09 Sep 18, 2023
955e5ca
fix: handle dashboard base file missing
Deblintrake09 Sep 18, 2023
3a8a745
Merge pull request #2461 from wazuh/bug/2454-fix-installation-assista…
teddytpc1 Sep 18, 2023
cd22e1e
Fixed redirection to file
rauldpm Sep 18, 2023
50222ea
Merge pull request #2463 from wazuh/bug/2429-fix-indexer-gha-4.6.0
fcaffieri Sep 18, 2023
526b7d8
fix: handle version when using reference option
Deblintrake09 Sep 18, 2023
3a595c6
fix: remove unnecesary message
Deblintrake09 Sep 18, 2023
514aa3d
Merge pull request #2462 from wazuh/enhancement/2145-handle-stack-bas…
juliamagan Sep 19, 2023
20a8767
Bump version to 4.7.1
DFolchA Sep 20, 2023
03a91b8
Merge pull request #2468 from wazuh/bump-version-4.7.1
vikman90 Sep 20, 2023
4dd0d6b
Bump readme
rauldpm Sep 21, 2023
22d7888
Merge pull request #2471 from wazuh/enhancement/2387-bump-readme
TomasTurina Sep 21, 2023
798c0b3
Merge branch '4.5.3' into merge-4.5.3-into-4.6.0
vikman90 Sep 22, 2023
551ed82
Merge pull request #2474 from wazuh/merge-4.5.3-into-4.6.0
vikman90 Sep 22, 2023
e0f8e3f
Merge branch '4.6.0' of https://github.com/wazuh/wazuh-packages into …
DFolchA Sep 22, 2023
ffc3b85
Merge branch 'merge-4.6.0-into-4.7.0' of https://github.com/wazuh/waz…
DFolchA Sep 22, 2023
2eb7e7b
Merge branch 'merge-4.7.0-into-4.7.1' of https://github.com/wazuh/waz…
DFolchA Sep 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/upgrade-indexer/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function read_files() {

# Change only the old files
if [ "${2}" == "old" ]; then
echo "# Adding a new line to force changed checksum" >> ${f}
echo "# Adding a new line to force changed checksum" >> ${file}
echo "Changed file."
fi
checksum=`md5sum ${file} | cut -d " " -f1`
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.
## [4.8.0]

- https://github.com/wazuh/wazuh-packages/releases/tag/v4.8.0
## [4.7.1]

- https://github.com/wazuh/wazuh-packages/releases/tag/v4.7.1

## [v4.7.0]

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ The following table shows the references for the versions of each component.
|-----------------|-----------------------|
| 4.3.x | 1.2.0 |
| 4.4.0 | 2.4.1 |
| 4.4.1 - 4.5.2 | 2.6.0 |
| 4.6.0 - | 2.8.0 |
| 4.4.1 - 4.5.x | 2.6.0 |
| 4.6.0 - current | 2.8.0 |

### Wazuh indexer

| Wazuh indexer | Opensearch |
|-----------------|-----------------------|
| 4.3.x | 1.2.4 |
| 4.4.0 | 2.4.1 |
| 4.4.1 - 4.5.2 | 2.6.0 |
| 4.6.0 - | 2.8.0 |
| 4.4.1 - 4.5.x | 2.6.0 |
| 4.6.0 - current | 2.8.0 |

## Contribute

Expand Down
2 changes: 2 additions & 0 deletions aix/SPECS/wazuh-agent-aix.spec
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ rm -fr %{buildroot}
%changelog
* Fri Dec 15 2023 support <[email protected]> - 4.8.0
- More info: https://documentation.wazuh.com/current/release-notes/release-4-8-0.html
* Tue Nov 14 2023 support <[email protected]> - 4.7.1
- More info: https://documentation.wazuh.com/current/release-notes/release-4-7-1.html
* Sat Oct 28 2023 support <[email protected]> - 4.7.0
- More info: https://documentation.wazuh.com/current/release-notes/release-4-7-0.html
* Mon Sep 04 2023 support <[email protected]> - 4.6.0
Expand Down
5 changes: 5 additions & 0 deletions debs/SPECS/wazuh-agent/debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ wazuh-agent (4.8.0-RELEASE) stable; urgency=low
* More info: https://documentation.wazuh.com/current/release-notes/release-4-8-0.html

-- Wazuh, Inc <[email protected]> Fri, 15 Dec 2023 00:00:00 +0000
wazuh-agent (4.7.1-RELEASE) stable; urgency=low

* More info: https://documentation.wazuh.com/current/release-notes/release-4-7-1.html

-- Wazuh, Inc <[email protected]> Tue, 14 Nov 2023 00:00:00 +0000

wazuh-agent (4.7.0-RELEASE) stable; urgency=low

Expand Down
5 changes: 5 additions & 0 deletions debs/SPECS/wazuh-manager/debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ wazuh-manager (4.8.0-RELEASE) stable; urgency=low
* More info: https://documentation.wazuh.com/current/release-notes/release-4-8-0.html

-- Wazuh, Inc <[email protected]> Fri, 15 Dec 2023 00:00:00 +0000
wazuh-manager (4.7.1-RELEASE) stable; urgency=low

* More info: https://documentation.wazuh.com/current/release-notes/release-4-7-1.html

-- Wazuh, Inc <[email protected]> Tue, 14 Nov 2023 00:00:00 +0000

wazuh-manager (4.7.0-RELEASE) stable; urgency=low

Expand Down
2 changes: 1 addition & 1 deletion macos/specs/wazuh-agent-intel64.pkgproj
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@
<key>USE_HFS+_COMPRESSION</key>
<false/>
<key>VERSION</key>
<string>4.6.0-1</string>
<string>4.8.0-1</string>
</dict>
<key>TYPE</key>
<integer>0</integer>
Expand Down
2 changes: 2 additions & 0 deletions rpms/SPECS/wazuh-agent.spec
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,8 @@ rm -fr %{buildroot}
%changelog
* Fri Dec 15 2023 support <[email protected]> - 4.8.0
- More info: https://documentation.wazuh.com/current/release-notes/release-4-8-0.html
* Tue Nov 14 2023 support <[email protected]> - 4.7.1
- More info: https://documentation.wazuh.com/current/release-notes/release-4-7-1.html
* Tue Nov 07 2023 support <[email protected]> - 4.7.0
- More info: https://documentation.wazuh.com/current/release-notes/release-4-7-0.html
* Mon Oct 16 2023 support <[email protected]> - 4.6.0
Expand Down
2 changes: 2 additions & 0 deletions rpms/SPECS/wazuh-manager.spec
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,8 @@ rm -fr %{buildroot}
%changelog
* Fri Dec 15 2023 support <[email protected]> - 4.8.0
- More info: https://documentation.wazuh.com/current/release-notes/release-4-8-0.html
* Tue Nov 14 2023 support <[email protected]> - 4.7.1
- More info: https://documentation.wazuh.com/current/release-notes/release-4-7-1.html
* Tue Nov 07 2023 support <[email protected]> - 4.7.0
- More info: https://documentation.wazuh.com/current/release-notes/release-4-7-0.html
* Mon Oct 16 2023 support <[email protected]> - 4.6.0
Expand Down
11 changes: 11 additions & 0 deletions stack/dashboard/deb/build_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ build_deb() {
base_cmd+="--app-url ${url}"
fi
../base/generate_base.sh -s ${outdir} -r ${revision} ${base_cmd}
else
if [ "${reference}" ];then
version=$(curl -sL https://raw.githubusercontent.com/wazuh/wazuh-packages/${reference}/VERSION | cat)
else
version=$(cat ${current_path}/../../../VERSION)
fi
basefile="${outdir}/wazuh-dashboard-base-${version}-${revision}-linux-x64.tar.xz"
if ! test -f "${basefile}"; then
echo "Did not find expected Wazuh dashboard base file: ${basefile} in output path. Exiting..."
exit 1
fi
fi

# Build the Docker image
Expand Down
6 changes: 6 additions & 0 deletions stack/dashboard/deb/debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ wazuh-dashboard (4.8.0-RELEASE) stable; urgency=low

-- Wazuh, Inc <[email protected]> Fri, 15 Dec 2023 00:00:00 +0000

wazuh-dashboard (4.7.1-RELEASE) stable; urgency=low

* More info: https://documentation.wazuh.com/current/release-notes/release-4-7-1.html

-- Wazuh, Inc <[email protected]> Tue, 14 Nov 2023 00:00:00 +0000

wazuh-dashboard (4.7.0-RELEASE) stable; urgency=low

* More info: https://documentation.wazuh.com/current/release-notes/release-4-7-0.html
Expand Down
11 changes: 11 additions & 0 deletions stack/dashboard/rpm/build_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ build_rpm() {
base_cmd+="--app-url ${url}"
fi
../base/generate_base.sh -s ${outdir} -r ${revision} ${base_cmd}
else
if [ "${reference}" ];then
version=$(curl -sL https://raw.githubusercontent.com/wazuh/wazuh-packages/${reference}/VERSION | cat)
else
version=$(cat ${current_path}/../../../VERSION)
fi
basefile="${outdir}/wazuh-dashboard-base-${version}-${revision}-linux-x64.tar.xz"
if ! test -f "${basefile}"; then
echo "Did not find expected Wazuh dndexer base file: ${basefile} in output path. Exiting..."
exit 1
fi
fi

# Build the Docker image
Expand Down
2 changes: 2 additions & 0 deletions stack/dashboard/rpm/wazuh-dashboard.spec
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,8 @@ rm -fr %{buildroot}
%changelog
* Fri Dec 15 2023 support <[email protected]> - 4.8.0
- More info: https://documentation.wazuh.com/current/release-notes/release-4-8-0.html
* Tue Nov 14 2023 support <[email protected]> - 4.7.1
- More info: https://documentation.wazuh.com/current/release-notes/release-4-7-1.html
* Tue Nov 07 2023 support <[email protected]> - 4.7.0
- More info: https://documentation.wazuh.com/current/release-notes/release-4-7-0.html
* Mon Oct 16 2023 support <[email protected]> - 4.6.0
Expand Down
13 changes: 12 additions & 1 deletion stack/indexer/deb/build_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ build_deb() {

# Copy the necessary files
cp ${current_path}/builder.sh ${dockerfile_path}

if [ "${build_base}" == "yes" ];then
# Base generation
if [ "${future}" == "yes" ];then
Expand All @@ -50,6 +50,17 @@ build_deb() {
base_cmd+="--reference ${reference}"
fi
../base/generate_base.sh -s ${outdir} -r ${revision} ${base_cmd}
else
if [ "${reference}" ];then
version=$(curl -sL https://raw.githubusercontent.com/wazuh/wazuh-packages/${reference}/VERSION | cat)
else
version=$(cat ${current_path}/../../../VERSION)
fi
basefile="${outdir}/wazuh-indexer-base-${version}-${revision}-linux-x64.tar.xz"
if ! test -f "${basefile}"; then
echo "Did not find expected Wazuh indexer base file: ${basefile} in output path. Exiting..."
exit 1
fi
fi

# Build the Docker image
Expand Down
6 changes: 6 additions & 0 deletions stack/indexer/deb/debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ wazuh-indexer (4.8.0-RELEASE) stable; urgency=low

-- Wazuh, Inc <[email protected]> Fri, 15 Dec 2023 00:00:00 +0000

wazuh-indexer (4.7.1-RELEASE) stable; urgency=low

* More info: https://documentation.wazuh.com/current/release-notes/release-4-7-1.html

-- Wazuh, Inc <[email protected]> Tue, 14 Nov 2023 00:00:00 +0000

wazuh-indexer (4.7.0-RELEASE) stable; urgency=low

* More info: https://documentation.wazuh.com/current/release-notes/release-4-7-0.html
Expand Down
11 changes: 11 additions & 0 deletions stack/indexer/rpm/build_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ build_rpm() {
base_cmd+="--reference ${reference}"
fi
../base/generate_base.sh -s ${outdir} -r ${revision} ${base_cmd}
else
if ! [ "${reference}" ];then
version=$(curl -sL https://raw.githubusercontent.com/wazuh/wazuh-packages/${reference}/VERSION | cat)
else
version=$(cat ${current_path}/../../../VERSION)
fi
basefile="${outdir}/wazuh-indexer-base-${version}-${revision}-linux-x64.tar.xz"
if ! test -f "${basefile}"; then
echo "Did not find expected Wazuh indexer base file: ${basefile} in output path. Exiting..."
exit 1
fi
fi

# Build the Docker image
Expand Down
2 changes: 2 additions & 0 deletions stack/indexer/rpm/wazuh-indexer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,8 @@ rm -fr %{buildroot}
%changelog
* Fri Dec 15 2023 support <[email protected]> - 4.8.0
- More info: https://documentation.wazuh.com/current/release-notes/release-4-8-0.html
* Tue Nov 14 2023 support <[email protected]> - 4.7.1
- More info: https://documentation.wazuh.com/current/release-notes/release-4-7-1.html
* Tue Nov 07 2023 support <[email protected]> - 4.7.0
- More info: https://documentation.wazuh.com/current/release-notes/release-4-7-0.html
* Mon Oct 16 2023 support <[email protected]> - 4.6.0
Expand Down
4 changes: 2 additions & 2 deletions tests/unattended/install/test_unattended.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,11 @@ def test_check_filebeat_process():

@pytest.mark.indexer
def test_check_indexer_process():
assert check_call("ps -xa | grep \"/usr/share/wazuh-indexer/jdk/bin/java\" | grep -v grep | cut -d \" \" -f15", shell=True) != ""
assert check_call("ps -xa | grep wazuh-indexer | grep -v grep | cut -d \" \" -f15", shell=True) != ""

@pytest.mark.dashboard
def test_check_dashboard_process():
assert check_call("ps -xa | grep \"/usr/share/wazuh-dashboard/bin/../node/bin/node\" | grep -v grep", shell=True) != ""
assert check_call("ps -xa | grep wazuh-dashboard | grep -v grep", shell=True) != ""

@pytest.mark.indexer
def test_check_indexer_cluster_status_not_red():
Expand Down
35 changes: 15 additions & 20 deletions unattended_installer/cert_tool/certMain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function getHelp() {
echo -e " Creates the admin certificates, add root-ca.pem and root-ca.key."
echo -e ""
echo -e " -A, --all </path/to/root-ca.pem> </path/to/root-ca.key>"
echo -e " Creates Wazuh server, Wazuh indexer, Wazuh dashboard, and admin certificates. Add a root-ca.pem and root-ca.key or leave it empty so a new one will be created."
echo -e " Creates certificates specified in config.yml and admin certificates. Add a root-ca.pem and root-ca.key or leave it empty so a new one will be created."
echo -e ""
echo -e " -ca, --root-ca-certificates"
echo -e " Creates the root-ca certificates."
Expand Down Expand Up @@ -186,26 +186,21 @@ function main() {
fi

if [[ -n "${all}" ]]; then
if [[ ${#indexer_node_names[@]} -gt 0 ]] && [[ ${#server_node_names[@]} -gt 0 ]] && [[ ${#dashboard_node_names[@]} -gt 0 ]]; then
cert_checkRootCA
cert_generateAdmincertificate
common_logger "Admin certificates created."
if cert_generateIndexercertificates; then
common_logger "Wazuh indexer certificates created."
fi
if cert_generateFilebeatcertificates; then
common_logger "Wazuh server certificates created."
fi
if cert_generateDashboardcertificates; then
common_logger "Wazuh dashboard certificates created."
fi
cert_cleanFiles
cert_setpermisions
eval "mv ${cert_tmp_path} ${base_path}/wazuh-certificates ${debug}"
else
common_logger -e "You must specify at least one indexer, one server and one dashboard node."
exit 1
cert_checkRootCA
cert_generateAdmincertificate
common_logger "Admin certificates created."
if cert_generateIndexercertificates; then
common_logger "Wazuh indexer certificates created."
fi
if cert_generateFilebeatcertificates; then
common_logger "Wazuh server certificates created."
fi
if cert_generateDashboardcertificates; then
common_logger "Wazuh dashboard certificates created."
fi
cert_cleanFiles
cert_setpermisions
eval "mv ${cert_tmp_path} ${base_path}/wazuh-certificates ${debug}"
fi

if [[ -n "${ca}" ]]; then
Expand Down
2 changes: 2 additions & 0 deletions unattended_installer/install_functions/dashboard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ function dashboard_changePort() {

chosen_port="$1"
http_port="${chosen_port}"
wazuh_dashboard_ports=( "${http_port}" )
wazuh_aio_ports=(9200 9300 1514 1515 1516 55000 "${http_port}")

sed -i 's/server\.port: [0-9]\+$/server.port: '"${chosen_port}"'/' "$0"
common_logger "Wazuh web interface port will be ${chosen_port}."
Expand Down
2 changes: 2 additions & 0 deletions unattended_installer/install_functions/installCommon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ function installCommon_checkChromium() {
if (! yum list installed 2>/dev/null | grep -q -E ^"google-chrome-stable"\\.) && (! yum list installed 2>/dev/null | grep -q -E ^"chromium"\\.); then
if [ "${DIST_NAME}" == "amzn" ]; then
installCommon_installChrome
elif [[ "${DIST_NAME}" == "centos" ]] && [[ "${DIST_VER}" == "7" ]]; then
installCommon_installChrome
else
dashboard_dependencies=(chromium)
fi
Expand Down
4 changes: 2 additions & 2 deletions unattended_installer/install_functions/installVariables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ adminUser="wazuh"
adminPassword="wazuh"

http_port=443
readonly wazuh_aio_ports=( 9200 9300 1514 1515 1516 55000 "${http_port}")
wazuh_aio_ports=( 9200 9300 1514 1515 1516 55000 "${http_port}")
readonly wazuh_indexer_ports=( 9200 9300 )
readonly wazuh_manager_ports=( 1514 1515 1516 55000 )
readonly wazuh_dashboard_port="${http_port}"
wazuh_dashboard_port="${http_port}"
5 changes: 4 additions & 1 deletion unattended_installer/passwords_tool/passwordsFunctions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ function passwords_createBackUp() {
fi

common_logger -d "Creating password backup."
eval "mkdir /etc/wazuh-indexer/backup ${debug}"
if [ ! -d "/etc/wazuh-indexer/backup" ]; then
eval "mkdir /etc/wazuh-indexer/backup ${debug}"
fi
eval "JAVA_HOME=/usr/share/wazuh-indexer/jdk/ OPENSEARCH_CONF_DIR=/etc/wazuh-indexer /usr/share/wazuh-indexer/plugins/opensearch-security/tools/securityadmin.sh -backup /etc/wazuh-indexer/backup -icl -p 9200 -nhnv -cacert ${capem} -cert ${adminpem} -key ${adminkey} -h ${IP} ${debug}"
if [ "${PIPESTATUS[0]}" != 0 ]; then
common_logger -e "The backup could not be created"
Expand Down Expand Up @@ -579,6 +581,7 @@ function passwords_runSecurityAdmin() {
common_logger -e "Could not load the changes."
exit 1;
fi
eval "cp /etc/wazuh-indexer/backup/internal_users.yml /etc/wazuh-indexer/opensearch-security/internal_users.yml"
eval "rm -rf /etc/wazuh-indexer/backup/ ${debug}"

if [[ -n "${nuser}" ]] && [[ -n ${autopass} ]]; then
Expand Down
1 change: 1 addition & 0 deletions windows/generate_wazuh_msi.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ function BuildWazuhMsi(){
& $SIGNTOOL_EXE sign /a /tr http://timestamp.digicert.com /fd SHA256 /td SHA256 "..\shared_modules\dbsync\build\bin\dbsync.dll"
& $SIGNTOOL_EXE sign /a /tr http://timestamp.digicert.com /fd SHA256 /td SHA256 "..\shared_modules\rsync\build\bin\rsync.dll"
& $SIGNTOOL_EXE sign /a /tr http://timestamp.digicert.com /fd SHA256 /td SHA256 "..\wazuh_modules\syscollector\build\bin\syscollector.dll"
& $SIGNTOOL_EXE sign /a /tr http://timestamp.digicert.com /fd SHA256 /td SHA256 "..\syscheckd\build\bin\libfimdb.dll"
}

Write-Host "Building MSI installer..."
Expand Down
6 changes: 5 additions & 1 deletion wpk/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,11 @@ clean() {
rm -rf src/{addagent,analysisd,client-agent,config,error_messages,external/*}
rm -rf src/{headers,logcollector,monitord,os_auth,os_crypto,os_csyslogd}
rm -rf src/{os_dbd,os_execd,os_integrator,os_maild,os_net,os_regex,os_xml,os_zlib}
rm -rf src/{remoted,reportd,shared,syscheckd,unit_tests,wazuh_db}
rm -rf src/{remoted,reportd,shared,unit_tests,wazuh_db}

# Clean syscheckd folder
find src/syscheckd -type f -not -name "wazuh-syscheckd" -not -name "libfimdb.dylib" -not -name "libfimdb.so" -delete


if [[ "${BUILD_TARGET}" != "winagent" ]]; then
rm -rf src/win32
Expand Down
Loading