Giter Site home page Giter Site logo

elasticsearch-user-based-filter's Introduction

User based filter plugin for ElasticSearch

Overview

This plugin restricts ElasticSearch API requests from Kibana based on REMOTE_USER.

Requirement

  • ElasticSearch = 2.3.1
  • Apache Maven

Install

# 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

Usage

  • Configure Apache HTTP server in order to send REMOTE_USER parameter to ElasticSearch (see elasticsearch-user-based-filter.conf.sample)
  • Prepare /etc/elasticsearch/user-based-filter/usermap (see usermap.sample)
  • Put user-based-filter.properties under /etc/elasticsearch/user-based-filter/

Note

  • 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.

Lincence

GPL

Acknowledgements

A part of this work was accomplished at CERN IT-OIS-CV group.

Author

wtakase

elasticsearch-user-based-filter's People

Contributors

wtakase avatar

Stargazers

 avatar Greg Jacobs avatar James Adams avatar

Watchers

Prince Grégory avatar Cedric avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.