Change admin user password without running hash.sh

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

Opensearch Operator : 2.4.0
Opensearch : 2.15.0

Describe the issue:

I’m currently using opensearch 2.4.0 and trying to update the default admin password

This upgrade currently performed in test environment.

Configuration:

3 - data nodes, 3 - cluster_manager role, 1 - dashboard

Issue : Kubernetes environment setup has policy set which prohibits from exec shell inside a pod. So, I cannot generate hashkey of new password using hash.sh
If I update the adminCredentialsSecret in the cluster.yaml then master node is not coming up throwing error : “Authentication finally failed for null from [:IP]”

Also, another question is wheather the adminCredentialsSecret must be updated or is it just the hash password update that would work?

Can you please help me on how to go forward and update admin password.

@Ghata In the Kubernetes deployment you must change the password in two places.

  1. Secret
  2. Security plugin using securityadmin.sh script

If you’d like to use hash.sh script, you can download OpenSearch binary and run the script outside the OpenSearch pod.

@pablo , I do wish you had been a little more specific and said how to do those things.

@fbicknel Take a look at OpenSearch Operator documentation