Updating OpenSearch and OpenSearch Dashboards password

You can roll back HCL Compass to the previous release using the helm rollback command.

About this task

The default OpenSearch and OpenSearch Dashboards password is set to admin. You can update the default password by using the following steps:

Procedure

  1. 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
  2. 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
  3. You can stop and remove the ccm-opensearch container after you generate the password hash.
      $ docker stop ccm-opensearch
      $ docker rm ccm-opensearch
  4. 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]
    ```
  5. Add -f opensearch-user.yaml to the helm install command.