Kibana authentication using nginx
Hello Techrunnr Readers, This document deals with enabling authentication for kibana using nginx webserver.
Kibana is opensource visulalization and analytics tools which works with Logstash and Elasticsearch.
By default, kibana doesn’t have any authentication by default.
Running kibana in the local machine without authentication doesn’t make security threat, but when you are setting up kibana publically it’s a major threat.
Here we are going to achieve this by using create an htaccess user and configuring the proxy pass for kibana.
This provides one more layer of security. This protects your analytics system from unauthorized access from hackers.
* Root access to install packages or sudo access
* Running Kibana
1. Install Nginx in the server.
2. Install htttp-tools
3. Create Htuser for authentication
4. Configuring Nginx
Here we are going to configure Nginx to act as a proxy, so it will directly authenticated user to “localhost:5601”
Open the Nginx configuration file with the command below:
Find the “server” directive and change it like below:
Now you have completed kibana authentication configuration using NGINX.
Now goto browser and type IP or hostname, you can see the pop asking the username and password.
Don’t worry if you are using Apache web server. Here is the document for the same with apache web server.
© 2018, Techrunnr. All rights reserved.