This plugin restricts ElasticSearch API requests from Kibana based on REMOTE_USER.
- ElasticSearch = 2.3.1
- Apache Maven
# cd elasticsearch-user-based-filter
# mvn clean package
# /usr/share/elasticsearch/bin/plugin remove user-based-filter
# /usr/share/elasticsearch/bin/plugin install file://`pwd`/target/releases/user-based-filter-2.3.1.zip
# systemctl restart elasticsearch
- Configure Apache HTTP server in order to send
REMOTE_USER
parameter to ElasticSearch (seeelasticsearch-user-based-filter.conf.sample
) - Prepare
/etc/elasticsearch/user-based-filter/usermap
(seeusermap.sample
) - Put
user-based-filter.properties
under/etc/elasticsearch/user-based-filter/
- Current plugin only filters Get/Multi Get/Search/Multi Search APIs by overriding the Rest Action classes.
- In order to filter wider APIs, it is better to override NettyHttpRequest and modify content and params at initialization.
GPL
A part of this work was accomplished at CERN IT-OIS-CV group.