Skip to content

Commit 63ef66f

Browse files
authored
Merge pull request #1442 from stackhpc/wazuh-secrets
Fix dangerous wazuh secrets templating
2 parents d397cbd + 195e3e3 commit 63ef66f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

etc/kayobe/ansible/templates/wazuh-secrets.yml.j2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
# Store these securely and use lookups here
44
secrets_wazuh:
55
# Wazuh agent authd pass
6-
authd_pass: "{{ secrets_wazuh.authd_pass | default(lookup('password', '/dev/null'), true) }}"
6+
authd_pass: '{{ secrets_wazuh.authd_pass | default(lookup("password", "/dev/null"), true) }}'
77
# Strengthen default wazuh api user pass
88
wazuh_api_users:
99
- username: "wazuh"
10-
password: "{{ secrets_wazuh.wazuh_api_users[0].password | default(lookup('community.general.random_string', min_lower=1, min_upper=1, min_special=1, min_numeric=1, length=30, override_special=override_special_characters)) }}"
10+
password: '{{ secrets_wazuh.wazuh_api_users[0].password | default(lookup("community.general.random_string", min_lower=1, min_upper=1, min_special=1, min_numeric=1, length=30, override_special=override_special_characters)) }}'
1111
# OpenSearch 'admin' user pass
12-
opendistro_admin_password: "{{ secrets_wazuh.opendistro_admin_password | default(lookup('password', '/dev/null'), true) }}"
12+
opendistro_admin_password: '{{ secrets_wazuh.opendistro_admin_password | default(lookup("password", "/dev/null"), true) }}'
1313
# OpenSearch 'kibanaserver' user pass
14-
opendistro_kibana_password: "{{ secrets_wazuh.opendistro_kibana_password | default(lookup('password', '/dev/null'), true) }}"
14+
opendistro_kibana_password: '{{ secrets_wazuh.opendistro_kibana_password | default(lookup("password", "/dev/null"), true) }}'

0 commit comments

Comments
 (0)