Updating OpenSearch and OpenSearch Dashboards password
You can roll back HCL Compass to the previous release using the helm rollback command.
About this task
Procedure
-
Create a new password has for OpenSearch.
$ docker run -d --name ccm-opensearch --env "discovery.type=single-node" hclcr.io/ccm/opensearch:2.0.0 $ docker exec -it ccm-opensearch /bin/bash -c /usr/share/opensearch/plugins/opensearch-security/tools/hash.sh
-
You will be prompted for the new password. Enter the new password. The password hash
will be generated. For example:
[Password:] myNewPassword $2y$12$3UScOsDk1bCjHk4Jd/p9vuCzgVqrU05h1w4F5VFZCCFhgoF1/vwvO
-
You can stop and remove the
ccm-opensearch
container after you generate the password hash.$ docker stop ccm-opensearch $ docker rm ccm-opensearch
-
Create a file named opensearch-user.yaml. Set the new OpenSearch
Dashboards password and new OpenSearch password hash.
```yaml dashboards: password: [NEW_OPENSEARCH_DASHBOARDS_PASSWORD] opensearch: hash: [NEW_OPENSEARCH_HASH_PASSWORD] ```
-
Add
-f opensearch-user.yaml
to thehelm install
command.