Skip to content
This repository has been archived by the owner on Aug 17, 2018. It is now read-only.
/ ElasticArmor Public archive
forked from NETWAYS/ElasticArmor

DEPRECATED - ElasticArmor is a HTTP reverse proxy placed in front of Elasticsearch to regulate access to its REST api.

License

Notifications You must be signed in to change notification settings

nilmerg/ElasticArmor

 
 

Repository files navigation

ElasticArmor

ElasticArmor is a HTTP reverse proxy placed in front of Elasticsearch to regulate access to its REST api. Authentication can either be done by ElasticArmor itself or another reverse proxy placed in front of it. Authorization is done by linking authenticated clients by their name or group memberships to roles. (Role Based Access Control)

REST api requests are regulated by inspecting the URL-Path, URL-Query and payload. Each role a client is associated to defines what and how much is permitted in a particular index, document-type and field. Requests may be rewritten by ElasticArmor if it's safe to do so without causing fundamental changes to a request's purpose. This also applies to responses sent by Elasticsearch where ElasticArmor may inject its own error responses to avoid refusing an entire request.

See here for a graphical overview on how ElasticArmor works.

Installation

ElasticArmor is written in Python and can run on versions 2.6 and 2.7. Package installation is not available. Installing ElasticArmor from source is currently the only way.

See here for how to install ElasticArmor.

Configuration

Once installed, ElasticArmor is able to run without any further configuration. There are proper defaults available for all vital configuration directives. You will only need to actually configure ElasticArmor manually if those defaults do not apply in your environment or if you want to use features that are not enabled by default.

See here for how to configure ElasticArmor.

Authentication

While ElasticArmor can run without any configuration, it does not authenticate clients without further ado. If you have another reverse proxy placed in front of ElasticArmor that is performing the actual authentication, you need to define it as trusted proxy in order to make ElasticArmor blindly trust a request's credentials. If you want ElasticArmor to perform the authentication, it is possible to configure one or more mechanisms to accomplish this.

See here for how to configure authentication.

Usergroups

A client is not only associated with roles by its name, but also by its group memberships. Group memberships can be fetched by ElasticArmor independently from who is performing the authentication as long as the client has been authenticated. (i.e. Group memberships cannot be fetched for anonymous requests)

See here for how to configure usergroups.

Authorization

A client must be associated with at least a single role to successfully access the REST api. A role defines what the permissions are a client has in a particular index, document-type and field. In case a client is associated with more than a single role they are applied in a combined fashion so that the broadest access possible is granted.

See here for how to configure authorization.

Integration

Since ElasticArmor is designed to work as a gateway for all services accessing Elasticsearch, their configuration must be adjusted so that they direct their requests to ElasticArmor instead.

See here for some examples on how to properly integrate ElasticArmor.

Limitations

ElasticArmor is highly dependent on the filter capabilities of Elasticsearch's REST api and may or may not be compatible with a particular version of Elasticsearch. You should be aware of these limitations to not to accidentally make any mistakes that will compromise security.

See here to learn more about what ElasticArmor is not capable of and why.

Support

If you come across problems at some time, feel free to ask for assistance and open a issue on our ElasticArmor Project Page.

About

DEPRECATED - ElasticArmor is a HTTP reverse proxy placed in front of Elasticsearch to regulate access to its REST api.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 72.2%
  • PHP 22.3%
  • HTML 2.3%
  • Puppet 1.5%
  • Shell 0.7%
  • JavaScript 0.7%
  • CSS 0.3%