From 0b96d80bc1262ad210f631d6a720e00383fdb4a0 Mon Sep 17 00:00:00 2001 From: Jesus Garcia Date: Tue, 20 May 2025 10:24:40 -0500 Subject: [PATCH 1/2] Remove root-ca.key from the list of certificates copied to Wazuh indexer nodes --- CHANGELOG.md | 2 +- roles/wazuh/wazuh-indexer/tasks/security_actions.yml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe2d7e87..94e6e9f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,7 @@ All notable changes to this project will be documented in this file. ### Deleted -- None +- Remove root-ca.key from the list of certificates copied to indexer nodes ([#1653](https://github.com/wazuh/wazuh-ansible/pull/1653)) ## [4.12.1] diff --git a/roles/wazuh/wazuh-indexer/tasks/security_actions.yml b/roles/wazuh/wazuh-indexer/tasks/security_actions.yml index f87a3f75..6df4de92 100644 --- a/roles/wazuh/wazuh-indexer/tasks/security_actions.yml +++ b/roles/wazuh/wazuh-indexer/tasks/security_actions.yml @@ -27,7 +27,6 @@ mode: 0400 with_items: - root-ca.pem - - root-ca.key - "{{ indexer_node_name }}-key.pem" - "{{ indexer_node_name }}.pem" - admin-key.pem From 70eb2b2a3f116c1da1163dfa0819d7e809479e68 Mon Sep 17 00:00:00 2001 From: Jesus Garcia Date: Wed, 21 May 2025 13:43:52 -0500 Subject: [PATCH 2/2] Fix invalid active response ca_store setting --- CHANGELOG.md | 2 +- .../templates/var-ossec-etc-ossec-agent.conf.j2 | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe2d7e87..d9cab6ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ All notable changes to this project will be documented in this file. ### Fixed -- None +- Fix invalid active response ca_store setting ([#1655](https://github.com/wazuh/wazuh-ansible/pull/1655)) ### Deleted diff --git a/roles/wazuh/ansible-wazuh-agent/templates/var-ossec-etc-ossec-agent.conf.j2 b/roles/wazuh/ansible-wazuh-agent/templates/var-ossec-etc-ossec-agent.conf.j2 index 99fd93f9..7fe83cb8 100644 --- a/roles/wazuh/ansible-wazuh-agent/templates/var-ossec-etc-ossec-agent.conf.j2 +++ b/roles/wazuh/ansible-wazuh-agent/templates/var-ossec-etc-ossec-agent.conf.j2 @@ -481,15 +481,7 @@ {{ wazuh_agent_config.active_response.ar_disabled|default('no') }} - - {% if ansible_os_family == "Windows" %}{{ wazuh_agent_config.active_response.ca_store_win }} - {% else %} - {% if ansible_system == "Darwin" %}{{ wazuh_agent_config.active_response.ca_store_macos }} - {% else %} - {{ wazuh_agent_config.active_response.ca_store }} - {% endif %} - {% endif %} - + {% if ansible_os_family == "Windows" %}{{ wazuh_agent_config.active_response.ca_store_win }}{% elif ansible_system == "Darwin" %}{{ wazuh_agent_config.active_response.ca_store_macos }}{% else %}{{ wazuh_agent_config.active_response.ca_store }}{% endif %} {{ wazuh_agent_config.active_response.ca_verification }}