# Kibana3 and role based security?

**URL:** <https://discuss.elastic.co/t/kibana3-and-role-based-security/20503>\
**Category:** Elasticsearch\
**Created:** [October 30, 2014, 5:09pm UTC](https://discuss.elastic.co/t/kibana3-and-role-based-security/20503 "2014-10-30T17:09:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henrik\_Lynggaard\_Han](https://avatars.discourse-cdn.com/v4/letter/h/4491bb/32.png) [@Henrik\_Lynggaard\_Han](https://discuss.elastic.co/u/Henrik_Lynggaard_Han)\
**Post date:** [October 30, 2014, 5:09pm UTC](https://discuss.elastic.co/t/kibana3-and-role-based-security/20503/1 "2014-10-30T17:09:46Z")

</div>

Hi

I have a question regarding upgrading a old kibana 1 installation to kibana  
3, but there is one of our business requirements which I am not sure how to  
solve. In our organisation there is a requirement to filter log statements  
based on the user accessing, this is mainly so people only get log  
statements that pertain to the projects they are working on and to filter  
out any statements which has business sensitive information.

In kibana 1 I have solved it by having each log source stamp a security tag  
like "\_" and then I use the role based auth based  
branch so each user can only see log messages tagged with the values they  
have been cleared for.

I am trying to figure out how to replicate something like this in kibana 3  
but it doesn't have role based authentication out of the box.

I have found two possible approaches by googling, but I am not sure which  
one is the way to go and I am missing some documentation on how to do it  
practially

The first approach is using  
alias [http://www.elasticsearch.org/blog/restricting-users-kibana-filtered-aliases/](http://www.elasticsearch.org/blog/restricting-users-kibana-filtered-aliases/).  
However it start out by saying nginx is not a suitable proxy, but doesn't  
specify something else to use.

If this is the official solution, is there then some better documentation  
like a how to guide or can someone in here provide some guidance ?

The second approach I have found is a rack  
application, [https://github.com/christian-marie/kibana3\_auth](https://github.com/christian-marie/kibana3_auth) but it doesn't  
look like to have been updated in a long time... Does anyone know if it  
still works?

A side question, I see a kibana 4 beta has been released and it is back to  
being server based instead of just HTML files.. Does kibana 4 address this  
issue? will setting up role based security be easier with it? Does anyone  
have a guide of how to do it with kibana 4 ?

Best regards  
Henrik Lynggaard

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/15260bac-8dab-43c5-abae-a384ebdff22f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/15260bac-8dab-43c5-abae-a384ebdff22f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:52am UTC](https://discuss.elastic.co/t/kibana3-and-role-based-security/20503/2 "2017-07-06T00:52:57Z")

</div>

Closed on July 6, 2017, 12:52am UTC


