From 56636c0dd72e2561c02b9c23ac382d2a879c1344 Mon Sep 17 00:00:00 2001 From: Victor Carlos Erenu Date: Tue, 3 Feb 2026 02:35:52 +0700 Subject: [PATCH] Add Wazuh version and revision into wazuh-certs-tool and config file --- .github/workflows/5_pr_check.yml | 6 +++--- .github/workflows/Procedure_push_docker_images.yml | 3 ++- .gitignore | 8 ++++---- docs/ref/getting-started/deployment/multi-node.md | 4 ++-- docs/ref/getting-started/deployment/single-node.md | 4 ++-- docs/ref/getting-started/requirements.md | 2 +- 6 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/5_pr_check.yml b/.github/workflows/5_pr_check.yml index f54a8164..1a5c0860 100644 --- a/.github/workflows/5_pr_check.yml +++ b/.github/workflows/5_pr_check.yml @@ -40,7 +40,7 @@ jobs: image_tag: ${{ needs.prepare-variables.outputs.WAZUH_IMAGE_VERSION }} docker_reference: ${{ github.head_ref }} revision: ${{ needs.prepare-variables.outputs.WAZUH_TAG_REVISION }} - reference: "latest" + commit_list: '["latest", "latest", "latest", "latest"]' id: ${{ github.run_id }} dev: true @@ -111,7 +111,7 @@ jobs: - name: Create single node certficates run: | - wazuh_certs_tool_url=$(aws s3 presign s3://${{ vars.AWS_S3_BUCKET_DEV }}/development/wazuh/5.x/secondary/installation-assistant/${{ env.WAZUH_IMAGE_VERSION }}/wazuh-certs-tool.sh --expires-in 3600 --region us-west-1) + wazuh_certs_tool_url=$(aws s3 presign s3://${{ vars.AWS_S3_BUCKET_DEV }}/development/wazuh/5.x/secondary/installation-assistant/${{ env.WAZUH_IMAGE_VERSION }}/wazuh-certs-tool-${{ env.WAZUH_IMAGE_VERSION }}-latest.sh --expires-in 3600 --region us-west-1) curl -sL "$wazuh_certs_tool_url" -o ./wazuh-certs-tool.sh cat > config.yml < config.yml <> "$OUTPUT_FILE" diff --git a/.gitignore b/.gitignore index 302fbb6d..79dfd348 100644 --- a/.gitignore +++ b/.gitignore @@ -4,10 +4,10 @@ build-docker-images/artifacts_env.txt single-node/wazuh-certificates single-node/wazuh-certificates/* single-node/wazuh-certificates-tool.log -single-node/wazuh-certs-tool.sh -single-node/config.yml +single-node/wazuh-certs-tool*.sh +single-node/config*.yml multi-node/wazuh-certificates multi-node/wazuh-certificates/* multi-node/wazuh-certificates-tool.log -multi-node/wazuh-certs-tool.sh -multi-node/config.yml +multi-node/wazuh-certs-tool*.sh +multi-node/config*.yml diff --git a/docs/ref/getting-started/deployment/multi-node.md b/docs/ref/getting-started/deployment/multi-node.md index 6ee10934..066627c7 100644 --- a/docs/ref/getting-started/deployment/multi-node.md +++ b/docs/ref/getting-started/deployment/multi-node.md @@ -21,8 +21,8 @@ This deployment utilizes the `multi-node/docker-compose.yml` file, which defines 3. Download the certificate creation script and config.yml file: ```bash - curl -sO https://packages.wazuh.com/5.0/wazuh-certs-tool.sh - curl -sO https://packages.wazuh.com/5.0/config.yml + curl -o wazuh-certs-tool.sh https://packages.wazuh.com/5.0/wazuh-certs-tool-5.0.0-1.sh + curl -o config.yml https://packages.wazuh.com/5.0/config-5.0.0-1.yml ``` 4. Edit the `config.yml` file with the configuration of the Wazuh components to be deployed diff --git a/docs/ref/getting-started/deployment/single-node.md b/docs/ref/getting-started/deployment/single-node.md index f058fe3b..42c9fcef 100644 --- a/docs/ref/getting-started/deployment/single-node.md +++ b/docs/ref/getting-started/deployment/single-node.md @@ -21,8 +21,8 @@ This deployment uses the `single-node/docker-compose.yml` file, which defines a 3. Download the certificate creation script and `config.yml` file: ```bash - curl -sO https://packages.wazuh.com/5.0/wazuh-certs-tool.sh - curl -sO https://packages.wazuh.com/5.0/config.yml + curl -o wazuh-certs-tool.sh https://packages.wazuh.com/5.0/wazuh-certs-tool-5.0.0-1.sh + curl -o config.yml https://packages.wazuh.com/5.0/config-5.0.0-1.yml ``` 4. Edit the config.yml file with the configuration of the Wazuh components to be deployed diff --git a/docs/ref/getting-started/requirements.md b/docs/ref/getting-started/requirements.md index 48cb1c40..937c285e 100644 --- a/docs/ref/getting-started/requirements.md +++ b/docs/ref/getting-started/requirements.md @@ -53,7 +53,7 @@ These are general recommendations. Actual needs may vary based on the number of * **Docker Desktop** * Install Docker Desktop by following the official instructions: [Install Docker Desktop](https://docs.docker.com/desktop/setup/install/windows-install/). * **WSL Linux distribution** - * Install Ubuntu or other compatible Linux distribution (bash in Alpine is not comptible with wazuh-certs-tool.sh): [Install Ubuntu on WSL](https://documentation.ubuntu.com/wsl/stable/howto/install-ubuntu-wsl2/) + * Install Ubuntu or other compatible Linux distribution (bash in Alpine is not compatible with wazuh-certs-tool-5.0.0-1.sh): [Install Ubuntu on WSL](https://documentation.ubuntu.com/wsl/stable/howto/install-ubuntu-wsl2/) * **Git Client**: * Required for cloning the `wazuh-docker` repository. * **Web Browser**: