Skip to content

Commit

Permalink
Merge pull request #1227 from stackhpc/wazuh_password_gen_fix
Browse files Browse the repository at this point in the history
Fixing wazuh password generation
  • Loading branch information
markgoddard committed Aug 16, 2024
2 parents d76ba77 + 2f7f5f9 commit c35a1d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion etc/kayobe/ansible/templates/wazuh-secrets.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ secrets_wazuh:
# Strengthen default wazuh api user pass
wazuh_api_users:
- username: "wazuh"
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)) }}"
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)) }}"
# OpenSearch 'admin' user pass
opendistro_admin_password: "{{ secrets_wazuh.opendistro_admin_password | default(lookup('password', '/dev/null'), true) }}"
# OpenSearch 'kibanaserver' user pass
Expand Down
1 change: 1 addition & 0 deletions etc/kayobe/ansible/wazuh-secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
gather_facts: false
vars:
wazuh_secrets_path: "{{ kayobe_env_config_path }}/wazuh-secrets.yml"
override_special_characters: '"#$%&()*+,-./:;<=>?@[\]^_{|}~'
tasks:
- name: install passlib[bcrypt]
pip:
Expand Down

0 comments on commit c35a1d2

Please sign in to comment.