From 016a91963a5ef6e313ff04d0dcc718bd4a759de5 Mon Sep 17 00:00:00 2001 From: Victor Carlos Erenu Date: Tue, 7 Apr 2026 23:40:08 +0700 Subject: [PATCH] Restore API variables on test and delete docs references --- .github/workflows/5_pr_check.yml | 4 ++++ docs/ref/configuration/environment-variables.md | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/5_pr_check.yml b/.github/workflows/5_pr_check.yml index 557241c2..4e51ca06 100644 --- a/.github/workflows/5_pr_check.yml +++ b/.github/workflows/5_pr_check.yml @@ -96,6 +96,8 @@ jobs: INDEXER_USERNAME: admin INDEXER_PASSWORD: admin MANAGER_NODES: "manager" + API_USERNAME: wazuh-wui + API_PASSWORD: wazuh-wui steps: - name: Check out code @@ -367,6 +369,8 @@ jobs: INDEXER_USERNAME: admin INDEXER_PASSWORD: admin MANAGER_NODES: "master,worker01" + API_USERNAME: wazuh-wui + API_PASSWORD: wazuh-wui steps: - name: Check out code diff --git a/docs/ref/configuration/environment-variables.md b/docs/ref/configuration/environment-variables.md index 1e5001af..ec5f0e50 100644 --- a/docs/ref/configuration/environment-variables.md +++ b/docs/ref/configuration/environment-variables.md @@ -33,7 +33,6 @@ environment: - `INDEXER_USERNAME` / `INDEXER_PASSWORD`: Credentials for accessing the Wazuh Indexer with `admin` user or a user with the same permissions. - `WAZUH_API_URL`: URL of the Wazuh API, used by other services for communication. - `DASHBOARD_USERNAME` / `DASHBOARD_PASSWORD`: Credentials for the Wazuh Dashboard to authenticate with the Indexer. -- `API_USERNAME` / `API_PASSWORD`: Credentials for the Wazuh API user, utilized by the Dashboard for API interactions. --- @@ -83,11 +82,8 @@ The Wazuh Agent container uses the following environment variables to dynamicall ```yaml environment: - WAZUH_MANAGER_SERVER=wazuh.manager - - WAZUH_MANAGER_PORT=1514 - WAZUH_REGISTRATION_SERVER=wazuh.manager - - WAZUH_REGISTRATION_PORT=1515 - WAZUH_AGENT_NAME=my-agent - - WAZUH_REGISTRATION_PASSWORD=StrongPassword ``` These variables are used by the `set_manager_conn()` function in the entrypoint script to replace placeholder values in `ossec.conf` and set the enrollment password.