Skip to content

Commit

Permalink
add option to recreate keystore in entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
vcerenu committed Jul 1, 2022
1 parent f933733 commit afaef7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 0 additions & 5 deletions build-docker-images/wazuh-dashboard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ COPY config/config.sh .
COPY config/config.yml /
RUN bash config.sh

# Create and configure Wazuh dashboard keystore
RUN $INSTALL_DIR/bin/opensearch-dashboards-keystore create --allow-root && \
echo kibanaserver | $INSTALL_DIR/bin/opensearch-dashboards-keystore add opensearch.username --stdin --allow-root && \
echo kibanaserver | $INSTALL_DIR/bin/opensearch-dashboards-keystore add opensearch.password --stdin --allow-root

COPY config/install_wazuh_app.sh /
RUN chmod 775 /install_wazuh_app.sh
RUN bash /install_wazuh_app.sh
Expand Down
2 changes: 1 addition & 1 deletion multi-node/config/wazuh_indexer/internal_users.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ admin:
description: "Demo admin user"

kibanaserver:
hash: "$2a$12$4AcgAt3xwOWadA5s5blL6ev39OXDNhmOesEoo33eZtrq2N0YrU3H."
hash: "$2y$12$TqmcGOi4c9otJO6OXECvcuaxnuzZMN2aBDy9wZDZJYsA9V2WsKfo."
reserved: true
description: "Demo kibanaserver user"

Expand Down
2 changes: 2 additions & 0 deletions multi-node/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ services:
- WAZUH_API_URL="https://wazuh.master"
- API_USERNAME=wazuh-wui
- API_PASSWORD=MyS3cr37P450r.*-
- DASHBOARD_USERNAME=kibanaserver
- DASHBOARD_PASSWORD=CustomPass0
volumes:
- ./config/wazuh_indexer_ssl_certs/wazuh.dashboard.pem:/usr/share/wazuh-dashboard/certs/wazuh-dashboard.pem
- ./config/wazuh_indexer_ssl_certs/wazuh.dashboard-key.pem:/usr/share/wazuh-dashboard/certs/wazuh-dashboard-key.pem
Expand Down

0 comments on commit afaef7a

Please sign in to comment.