Controlling access to Kibana management tab using Nginx


I am using 5.2.1 ELK stack. I am running kibana behind nginx. How do i control access to management tab on kibana. Currently my nginx config only uses location block for accessing / to route to kibana and now i want to have separate authorization to restrict management tab. Is it possible?

snippet of nginx config ==>

location / {
# adding ldap authentication
auth_ldap "Kibana - Unauthorized access";
auth_ldap_servers kibana_userrole;
proxy_pass http://localhost:8080;

I was hoping for something like this
location /app/kibana#/management {
# adding ldap authentication
auth_ldap "Kibana Admin- Unauthorized access";
auth_ldap_servers kibana_adminrole;
proxy_pass http://localhost:8080;
But this block doesnt work

(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.