Elastic xpack security

Hi All,

Am trying to enable the xpack security in my elastic stack machine, but iam unable to do so
initially i tried to generate the auto password
using bin/x-pack/setup-passwords auto
i received some default passwords and when i tried to curl

like curl http://localhost:9200 -u elastic and then I entered the password
and it was giving me security exception error even though I tried the generated password.

Later I tried to use interactive

bin/x-pack/setup-passwords interactive

Failed to authenticate user 'elastic' against http://127.0.0.1:9200/_xpack/security/_authenticate?pretty
Possible causes include:

  • The password for the 'elastic' user has already been changed on this cluster
  • Your elasticsearch node is running against a different keystore
    This tool used the keystore at /etc/elasticsearch/elasticsearch.keystore

ERROR: Failed to verify bootstrap password

I dont know how to proceed further please do help me

Thanks in advance ,
Raj

Hi Raj,

setup-passwords uses the bootstrap password in order to set the password for the users. After you set a password for the elastic user, the bootstrap password is no longer active and this is why you get the second error

ERROR: Failed to verify bootstrap password.

Were you able to login with either kibana or logstash_system users and their auto-generated passwords ?

Now, if you don't remember the original password for elastic that setup-passwords created, or if you in any case need to reset it to something new, you can follow the instructions that @TimV has shared in this answer

3 Likes

Thank you so much for the reply

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.