For package installations (DEB,RPM), we are generating a random strong password for the elastic user on installation time so that we can show it to the user. We subsequently hash and store this password in the elasticsearch.keystore so that the node can pick it up on the first run and use it to populate the relevant document for the elastic user in the security index. This change implements a class that can be called from the package installation scripts (postinst) to - Generate a strong password - Hash it with the configured(default) password hashing algo - Store it in the elasticsearch.keystore - Print it in stdout so that it the bash script can capture it. |
||
---|---|---|
.. | ||
src/test/java/org/elasticsearch/xpack/security | ||
build.gradle |