I have configured the appsearch and Elasticsearch using dockers on a Linux box.
While I have have added data into the index using the latest webcrawler method, I could see that the APIs which require authorization as per the documentation from Elastic; in reality they work without that as well.
I tried to consume search API and click API.
Both require Authorization header with basic auth key.
But they return data without auth also.
Please help me understand whether I am doing anything wrong here??
PS: I am using version 7.11.0 for Elasticsearch and Appsearch with Nginx webserver and docker 19.03.13
This helped me. but now I am stuck with another issue.
After I enabled the xpack.security.enabled: true in elasticsearch.yml, I had to enable and add below as well.
And then when you request something like /_cat/nodes?v=true&pretty you would need to provide the credentials to Elasticsearch.
Perhaps this guide can be of help: link.
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.