I am trying to set up an opensearch and opensearch dashboard installation.
I am using docker to create a cluster of two nodes.
The installation is up and running and I can access the dashboard graphic interface to create dashboards and interact with the opensearch api.
If I try to interact with the opensearch api (for example using curl) using any machine, I am receiving the result “Unautorized”. But If I do the same test from the machine where the cluster is installed it works without issues.
The server where the cluster is installed doesn’t have any firewall restrictions. Is there any configuration that I should do to allow the interaction with the opensearch API from an external IP?
Regarding the curl request, I tried this for example :
curl -XGET https://IP_ADDRESS:9200 -u ‘admin:admin’ --insecure
If I try this curl request locally on the machine where the cluster is installed, It works without issues.
If I try it on any other machine, I have the response : Unauthorized
@antonyab
I have just ran your docker-compose and accessed the cluster using IP address of the machine image is running on (192.168.x.x) and was able to get a response without issues.
Therefore this would lead me to believe it’s a firewall issue
If I misunderstood your use case and you actually want to expose opensearch to public, then I would recommend reading this thread