Passwords in opensearch keystore

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

Describe the issue:

I would like to know if I could use the opensearch keystore to store the bind password for a domain user instead of using environment variables.

I tried these commands using the opensearch-keystore command, it does not translate the variables to the actual values stored in the keystore.

export OPENSEARCH_JAVA_OPTS="--enable-native-access=ALL-UNNAMED"
/usr/share/opensearch/bin/opensearch-keystore add LDAP_USWIN_BIND_PASSWORD

config.yml.

password: "${keystore.LDAP_USWIN_BIND_PASSWORD}"

With environment variables, the variable gets translated to values. That’s not the case with keystore, it remains the same.

Thanks

Murali

@muraliv Currently, OpenSearch security plugin supports environmental variables as an alternative to clear-text passwords in the config.yml. The security plugin can’t read opensearch. keystore.
There is a feature request in the OpenSearch GitHub that already covers this scenario.