I have a Rails app that uses Searchkick and after updating my gems and yarn, I'm getting this Elasticsearch warning"
warning: 299 Elasticsearch-7.13.1-9a7758028e4ea59bcab41c12004603c5a7dd84a9 "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.13/security-minimal-setup.html to enable security."
I tried following the instructions at the webpage mentioned, but I'm getting stuck at the run the elasticsearch-setup-passwords utility
step. I can't find this script anywhere.
I'm currently on an M1 Mac, but running terminal with Rosetta, so homebrew was installed with Rosetta.
This is just for my development machine, so it doesn't seem like security is that important and previous versions of Elasticsearch installed with Homebrew did not display this warning.
Here's what I'm running now:
brew install Elasticsearch
&& brew services start elasticsearch
)Is there a way to ignore this message? Or how do I fix this? It's so large in my console that I can't read my tests.
This warning is shown because you have the security plugin enabled but not configurated.
If you don't want security you can disable xpack and it should do the trick
simply add this line in your configuration elasticsearch.yml
:
xpack.security.enabled: false
Adding to @luc-e answer. If you have Elastic installed as Docker container, then you should do the following:
docker exec -it <container_id> bash
cd /usr/share/elasticsearch/config
echo "xpack.security.enabled: false" >> elasticsearch.yml
and restart your container
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With