It is being accessed from Kibana without issue. However now I need to access it from my custom ROR application. For that, I am using the official gem. But my application is unable to access anything at port 9200, Xpack security is enabled which is causing the issue.
I can get it to work fine by disabling Xpack. How would I go about keeping the Xpack security enabled and still accessing the Elasticsearch REST API endpoint from my application code?
If Kibana can access things with Security enabled then other things should. You will need to provide a bit more info on what is happening with your app though. Showing the code would be good, as would and errors that Elasticsearch it sending back to the client.
Yes, I know it can be accessed by providing the proper cert & password, sorry for the weird wording.
The main question I mean to ask is how to configure the Elasticsearch client with an enrollment token in my rails application. Kibana is able to access it because it has been configured with the proper certificate in docker-compose. But my rails application is running on my machine, not a docker instance. Therefore I am at a loss on how to keep security and still connect.
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.