Skip to content

Commit c35a1d2

Browse files
authored
Merge pull request #1227 from stackhpc/wazuh_password_gen_fix
Fixing wazuh password generation
2 parents d76ba77 + 2f7f5f9 commit c35a1d2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ secrets_wazuh:
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)) }}"
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
1212
opendistro_admin_password: "{{ secrets_wazuh.opendistro_admin_password | default(lookup('password', '/dev/null'), true) }}"
1313
# OpenSearch 'kibanaserver' user pass

etc/kayobe/ansible/wazuh-secrets.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
gather_facts: false
44
vars:
55
wazuh_secrets_path: "{{ kayobe_env_config_path }}/wazuh-secrets.yml"
6+
override_special_characters: '"#$%&()*+,-./:;<=>?@[\]^_{|}~'
67
tasks:
78
- name: install passlib[bcrypt]
89
pip:

0 commit comments

Comments
 (0)