-
Notifications
You must be signed in to change notification settings - Fork 10
Question: purpose of the elasticsearch_bootstrap_pw variable #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The main reason is to have a local user with a known password if things go really wrong. Please refer to https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-users.html#bootstrap-elastic-passwords for details. In the past setting the bootstrap password helped with logging into broken clusters where user information was broken and no passwort worked anymore. |
Just to be clear: In our tests it turned out that the after the setup was complete the "elastic" user had a different password than the one given as ansible variable. Is this correct? |
Mostly. In my experience it can also be used when (re-)building the cluster fails and a node stands on it's on. So you can "break in" to change the password of the Since current versions have https://www.elastic.co/guide/en/elasticsearch/reference/current/reset-password.html it seems like you don't have to rely on the bootstrap password anymore. To be honest, I haven't tried logging in via bootstrap password with any version of 7 or higher and I suppose it's really useless after the first setup, like the documentation said. |
Hello,
we did some tests with the collection and we expected that when we install a new cluster and the elasticsearch_bootstrap_pw variable is set, this password would be the future password of the elastic user.
But this seems not to be the case, the password of the user elastic after the installation is different.
So our question is now: What is the exact purpose of this variable?
The text was updated successfully, but these errors were encountered: