Rather than simply telling us that it is not working, you really need to describe what is happening. What behaviour are you seeing? How does that differ from what you want to see?
If you want to keep xpack security enabled, but skip authentication, then you have two options:
- Enable anonymous access in Elasticsearch. This can be tricky to get right, and and opens up your whole ES cluster to anonymous access, so it is not recommended for your case.
- Use a proxy to provide the security credentials to Kibana in order to bypass Kibana's login screen.
You have started down the 2nd path, but your nginx config isn't doing anything to trigger a login to Kibana. Rather, it seems to be adding additional authentication steps
auth_basic which is the opposite of what you want.
You need every request that comes through your proxy to automatically have a new header that includes the username & password of the user that should be logged into Kibana.
First you need to create a new read-only user in Kibana that has access to all the visualisations that you want to make available in your application.
Then you want to configure nginx so that it will automatically add authentication headers on the request to Kibana by adding something like this to your nginx config:
# Send a Basic auth header to Kibana on every request to get past the log - in UI.
# "bmdpbng6c2VjcmV0cGFzc3dvcmQ="is a base64 encoded string of my service account 's credentials "nginx:secretpassword"
proxy_set_header Authorization "Basic bmdpbng6c2VjcmV0cGFzc3dvcmQ=";
You need to replace that base64 encoded value with one that matches the new user+password you created.