elasticsearch/x-pack/qa/security-tools-tests
Ioannis Kakavas 4c149e8183
Generate and store password hash for elastic user (#76276)
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.
2021-08-20 16:56:28 +03:00
..
src/test/java/org/elasticsearch/xpack/security Generate and store password hash for elastic user (#76276) 2021-08-20 16:56:28 +03:00
build.gradle