Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Opensearch 2.13.0 (Helm chart 2.19.0)
Describe the issue:
I am using opensearch in k8s clsuter.
I installed opensearch cluster with chart version 2.19.0 - same version opensearch 2.13.0
I tried to set environment variable with helm value extraEnvs
to set default admin user password, I met this error.
Enabling OpenSearch Security Plugin
Enabling execution of install_demo_configuration.sh for OpenSearch Security Plugin
OpenSearch 2.12.0 onwards, the OpenSearch Security Plugin a change that requires an initial password for 'admin' user.
Please define an environment variable 'OPENSEARCH_INITIAL_ADMIN_PASSWORD' with a strong password string.
If a password is not provided, the setup will quit.
For more details, please visit: https://opensearch.org/docs/latest/install-and-configure/install-opensearch/docker/
### OpenSearch Security Demo Installer
### ** Warning: Do not use on production or public reachable systems **
OpenSearch install type: rpm/deb on Linux 5.10.210-201.852.amzn2.x86_64 amd64
OpenSearch config dir: /usr/share/opensearch/config/
OpenSearch config file: /usr/share/opensearch/config/opensearch.yml
OpenSearch bin dir: /usr/share/opensearch/bin/
OpenSearch plugins dir: /usr/share/opensearch/plugins/
OpenSearch lib dir: /usr/share/opensearch/lib/
Detected OpenSearch Version: 2.13.0
Detected OpenSearch Security Version: 2.13.0.0
Exception updating the admin password : Unable to update the internal users file with the hashed password.
Stream closed EOF for dev/test-master-1 (opensearchmaster)
Can anyone give me a guide for setting or skipping to set this default password?
or compatible method with hashed password for initialization?
- I don’t want to disable securityConfig because I touched internal_user.yml and security_config.yml to set SAML authentication.
Configuration:
- Statefulset configuration (master, data node same)
env:
- name: OPENSEARCH_INITIAL_ADMIN_PASSWORD
value: vfcc77*ViAYt7FGFdzz2
Relevant Logs or Screenshots: