Update certificate configuration to use separate IP and DNS fields for proper certificate generation

This commit is contained in:
Jesus Garcia
2026-03-17 09:04:47 -05:00
parent d63219473c
commit dc0ea4d8f9
4 changed files with 23 additions and 22 deletions
+11 -11
View File
@@ -133,18 +133,18 @@ jobs:
# Wazuh indexer server nodes # Wazuh indexer server nodes
indexer: indexer:
- name: wazuh.indexer - name: wazuh.indexer
ip: wazuh.indexer dns: "wazuh.indexer"
# Wazuh manager nodes # Wazuh manager nodes
# Use node_type only with more than one Wazuh manager # Use node_type only with more than one Wazuh manager
manager: manager:
- name: wazuh.manager - name: wazuh.manager
ip: wazuh.manager dns: "wazuh.manager"
# Wazuh dashboard node # Wazuh dashboard node
dashboard: dashboard:
- name: wazuh.dashboard - name: wazuh.dashboard
ip: wazuh.dashboard dns: "wazuh.dashboard"
EOF EOF
cat config.yml cat config.yml
bash ./wazuh-certs-tool.sh -A bash ./wazuh-certs-tool.sh -A
@@ -253,7 +253,7 @@ jobs:
run: | run: |
for i in {1..20}; do for i in {1..20}; do
echo "Checking Wazuh dashboard (Attempt $i/20)" echo "Checking Wazuh dashboard (Attempt $i/20)"
STATUS=$(curl -k -s -o /dev/null -w "%{http_code}" -u ${{ env.INDEXER_USERNAME }}:${{ env.INDEXER_PASSWORD }} "https://127.0.0.1:443/app/status") STATUS=$(curl -k -s -o /dev/null -w "%{http_code}" -u ${{ env.INDEXER_USERNAME }}:${{ env.INDEXER_PASSWORD }} "https://127.0.0.1:443/app/status" || true)
echo "Current status: $STATUS" echo "Current status: $STATUS"
if [[ "$STATUS" == "200" ]]; then if [[ "$STATUS" == "200" ]]; then
echo "Wazuh dashboard is UP" echo "Wazuh dashboard is UP"
@@ -406,26 +406,26 @@ jobs:
# Wazuh indexer server nodes # Wazuh indexer server nodes
indexer: indexer:
- name: wazuh1.indexer - name: wazuh1.indexer
ip: wazuh1.indexer dns: "wazuh1.indexer"
- name: wazuh2.indexer - name: wazuh2.indexer
ip: wazuh2.indexer dns: "wazuh2.indexer"
- name: wazuh3.indexer - name: wazuh3.indexer
ip: wazuh3.indexer dns: "wazuh3.indexer"
# Wazuh manager nodes # Wazuh manager nodes
# Use node_type only with more than one Wazuh manager # Use node_type only with more than one Wazuh manager
manager: manager:
- name: wazuh.master - name: wazuh.master
ip: wazuh.master dns: "wazuh.master"
node_type: master node_type: master
- name: wazuh.worker - name: wazuh.worker
ip: wazuh.worker dns: "wazuh.worker"
node_type: worker node_type: worker
# Wazuh dashboard node # Wazuh dashboard node
dashboard: dashboard:
- name: wazuh.dashboard - name: wazuh.dashboard
ip: wazuh.dashboard dns: "wazuh.dashboard"
EOF EOF
cat config.yml cat config.yml
bash ./wazuh-certs-tool.sh -A bash ./wazuh-certs-tool.sh -A
@@ -542,7 +542,7 @@ jobs:
run: | run: |
for i in {1..20}; do for i in {1..20}; do
echo "Checking Wazuh dashboard (Attempt $i/20)" echo "Checking Wazuh dashboard (Attempt $i/20)"
STATUS=$(curl -k -s -o /dev/null -w "%{http_code}" -u ${{ env.INDEXER_USERNAME }}:${{ env.INDEXER_PASSWORD }} "https://127.0.0.1:443/app/status") STATUS=$(curl -k -s -o /dev/null -w "%{http_code}" -u ${{ env.INDEXER_USERNAME }}:${{ env.INDEXER_PASSWORD }} "https://127.0.0.1:443/app/status" || true)
echo "Current status: $STATUS" echo "Current status: $STATUS"
if [[ "$STATUS" == "200" ]]; then if [[ "$STATUS" == "200" ]]; then
echo "Wazuh dashboard is UP" echo "Wazuh dashboard is UP"
+1
View File
@@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file.
### Changed ### Changed
- Update certificate configuration to use separate IP and DNS fields ([#2253](https://github.com/wazuh/wazuh-docker/pull/2253))
- Modify Healthchecks ([#2252](https://github.com/wazuh/wazuh-docker/pull/2252)) - Modify Healthchecks ([#2252](https://github.com/wazuh/wazuh-docker/pull/2252))
- Add deployment healthchecks ([#2251](https://github.com/wazuh/wazuh-docker/pull/2251)) - Add deployment healthchecks ([#2251](https://github.com/wazuh/wazuh-docker/pull/2251))
- Update artifact generation jobs to use wz-linux dedicated runner group ([#2242](https://github.com/wazuh/wazuh-docker/pull/2242)) - Update artifact generation jobs to use wz-linux dedicated runner group ([#2242](https://github.com/wazuh/wazuh-docker/pull/2242))
@@ -27,31 +27,31 @@ This deployment utilizes the `multi-node/docker-compose.yml` file, which defines
4. Edit the `config.yml` file with the configuration of the Wazuh components to be deployed 4. Edit the `config.yml` file with the configuration of the Wazuh components to be deployed
```bash ```yaml
nodes: nodes:
# Wazuh indexer server nodes # Wazuh indexer server nodes
indexer: indexer:
- name: wazuh1.indexer - name: wazuh1.indexer
ip: wazuh1.indexer dns: "wazuh1.indexer"
- name: wazuh2.indexer - name: wazuh2.indexer
ip: wazuh2.indexer dns: "wazuh2.indexer"
- name: wazuh3.indexer - name: wazuh3.indexer
ip: wazuh3.indexer dns: "wazuh3.indexer"
# Wazuh manager nodes # Wazuh manager nodes
# Use node_type only with more than one Wazuh manager # Use node_type only with more than one Wazuh manager
manager: manager:
- name: wazuh.master - name: wazuh.master
ip: wazuh.master dns: "wazuh.master"
node_type: master node_type: master
- name: wazuh.worker - name: wazuh.worker
ip: wazuh.worker dns: "wazuh.worker"
node_type: worker node_type: worker
# Wazuh dashboard node # Wazuh dashboard node
dashboard: dashboard:
- name: wazuh.dashboard - name: wazuh.dashboard
ip: wazuh.dashboard dns: "wazuh.dashboard"
``` ```
5. Run the certificate creation script: 5. Run the certificate creation script:
@@ -27,23 +27,23 @@ This deployment uses the `single-node/docker-compose.yml` file, which defines a
4. Edit the config.yml file with the configuration of the Wazuh components to be deployed 4. Edit the config.yml file with the configuration of the Wazuh components to be deployed
```bash ```yaml
nodes: nodes:
# Wazuh indexer server nodes # Wazuh indexer server nodes
indexer: indexer:
- name: wazuh.indexer - name: wazuh.indexer
ip: wazuh.indexer dns: "wazuh.indexer"
# Wazuh manager nodes # Wazuh manager nodes
# Use node_type only with more than one Wazuh manager # Use node_type only with more than one Wazuh manager
manager: manager:
- name: wazuh.manager - name: wazuh.manager
ip: wazuh.manager dns: "wazuh.manager"
# Wazuh dashboard node # Wazuh dashboard node
dashboard: dashboard:
- name: wazuh.dashboard - name: wazuh.dashboard
ip: wazuh.dashboard dns: "wazuh.dashboard"
``` ```
5. Run the certificate creation script: 5. Run the certificate creation script: