As mentioned here you can set a fixed default password by setting the APP_SEARCH_DEFAULT_PASSWORD environment variable.
Setting the default password only works on the initial boot so if you want to reset it afterwards you should run bin/app-search --reset-auth or in the case with Docker Compose you would do docker-compose run app-search --reset-auth.
Oh and to answer "how to find default password", the default password will be logged to the console but only on the initial boot, so if you didn't notice it, it might be hard to retrieve it now.
I am running ElasticSearch and Kibana in Docker containers on Kubernetes, and AppSearch is running in Docker on Kubernetes too. Unfortunately I have missed the initial boot.... I have tried bin/app-search --reset-auth but it does not work. It shows new password however when I go to http://localhost:3002/login and try to login I am getting exactly the same massage: "Authentication has failed Invalid credentials". I have also tried to set env variable APP_SEARCH_DEFAULT_PASSWORD but exactly the same effect: "Authentication has failed Invalid credentials".
Do you know if the password for app_search user is saved in AppSearch container or it saved in some index on ElasticSearch? If it is in AppSearch how can I reset in Docker on Kubernetes?
POST /_security/user/app_search/_password
{
"password" : "test"
}
But still the same front end error Authentication has failed invalid credentials and in the appserach logs I can see always (with unsuccessful login) following: action_controller][INFO]: [1c44b989-67f1-4996-8ce5-93eb0f005550] Completed 403 Forbidden in 105ms (Views: 18.2ms)
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.