diff --git a/.github/workflows/5_pr_check.yml b/.github/workflows/5_pr_check.yml index 37a41a82..045434b3 100644 --- a/.github/workflows/5_pr_check.yml +++ b/.github/workflows/5_pr_check.yml @@ -124,7 +124,7 @@ jobs: - name: Add environment variables into GITHUB_ENV run: | # Export variables to the environment - awk -F':' '!/^#/ && NF>1 {name=$1; val=substr($0,length(name)+3); gsub(/[-.]/,"_",name); print name "=" val}' ${{ env.ARTIFACT_URL_FILE_NAME }} >> "$GITHUB_ENV" + awk -F':' '!/^#/ && NF>1 {name=$1; val=substr($0,length(name)+3); gsub(/[-.]/,"_",name); print name "=" val}' ${{ vars.ARTIFACT_URL_FILE_NAME }} >> "$GITHUB_ENV" working-directory: ./single-node/ - name: Create single node certficates @@ -397,7 +397,7 @@ jobs: - name: Add environment variables into GITHUB_ENV run: | # Export variables to the environment - awk -F':' '!/^#/ && NF>1 {name=$1; val=substr($0,length(name)+3); gsub(/[-.]/,"_",name); print name "=" val}' ${{ env.ARTIFACT_URL_FILE_NAME }} >> "$GITHUB_ENV" + awk -F':' '!/^#/ && NF>1 {name=$1; val=substr($0,length(name)+3); gsub(/[-.]/,"_",name); print name "=" val}' ${{ vars.ARTIFACT_URL_FILE_NAME }} >> "$GITHUB_ENV" working-directory: ./multi-node/ - name: Create multi node certficates diff --git a/CHANGELOG.md b/CHANGELOG.md index 92cb0a22..4ae02ff4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -42,6 +42,7 @@ All notable changes to this project will be documented in this file. ### Fixed +- Change Wazuh manager Healthcheck. ([#2272](https://github.com/wazuh/wazuh-docker/pull/2272)) - Delete WAZUH_AGENT_GROUP variable. ([#2263](https://github.com/wazuh/wazuh-docker/pull/2263)) - Delete etc/lists references ([#2129](https://github.com/wazuh/wazuh-docker/pull/2129)) diff --git a/multi-node/docker-compose.yml b/multi-node/docker-compose.yml index 33773b07..65dec154 100644 --- a/multi-node/docker-compose.yml +++ b/multi-node/docker-compose.yml @@ -9,7 +9,7 @@ services: wazuh1.indexer: condition: service_healthy healthcheck: - test: [ "CMD-SHELL", "curl -s -k -f -I -u $$API_USERNAME:$$API_PASSWORD https://localhost:55000/security/user/authenticate > /dev/null || exit 1" ] + test: [ "CMD-SHELL", "curl -u $$API_USERNAME:$$API_PASSWORD -k -s -f -X POST https://localhost:55000/security/user/authenticate?raw=true -o /dev/null || exit 1" ] interval: 15s timeout: 5s retries: 5 diff --git a/single-node/docker-compose.yml b/single-node/docker-compose.yml index 02dbbb7e..52e400f8 100644 --- a/single-node/docker-compose.yml +++ b/single-node/docker-compose.yml @@ -9,7 +9,7 @@ services: wazuh.indexer: condition: service_healthy healthcheck: - test: [ "CMD-SHELL", "curl -s -k -f -I -u $$API_USERNAME:$$API_PASSWORD https://localhost:55000/security/user/authenticate > /dev/null || exit 1" ] + test: [ "CMD-SHELL", "curl -u $$API_USERNAME:$$API_PASSWORD -k -s -f -X POST https://localhost:55000/security/user/authenticate?raw=true -o /dev/null || exit 1" ] interval: 15s timeout: 5s retries: 5