Code Monkey home page Code Monkey logo

proxes's Introduction

Build Status Code Climate Test Coverage

ProxES

ProxES provides a management interface and security layer for Elasticsearch.

Installation

Add this line to your application's Gemfile:

gem 'proxes'

And then execute:

bundle install

Or install it yourself as:

gem install proxes

Usage

As part of another project

ProxES has two components that can be mounted as Rack apps and used in conjunction with other projects. Check the supplied files on how to add proxes to another project.

Standalone

ProxES can be run as a standalone system:

git clone [email protected]:EagerELK/proxes.git
cd proxes
cp .env.example .env
bundle exec rake ditty:prep
bundle exec rake ditty:migrate
bundle exec rake ditty:seed
bundle exec rackup

Feel free to modify Gemfile and .env to choose a different database driver and web server.

Docker

ProxES can be run in a Docker container:

docker run -e ELASTICSEARCH_URL=https://elastic.pushshift.io -e DATABASE_URL=sqlite://dev.db -p 9292:9292 --mount type=bind,source=`pwd`/dev.db,destination=/usr/src/app/dev.db eagerelk/proxes web-proxes

Docker Compose

The project includes a docker-compose.yml file that you can use to get it up and running quickly:

docker-compose up

Components

ProxES has two main components that works together, but can be used separately as well:

1. Management Interface

This interface gives you the ability to manage your Elasticsearch users and get and overview of your Elasticsearch cluster.

2. Security Middleware

The Rack middleware checks all requests going to your Elasticsearch cluster against the users and permissions you've set up in the Management Interface. It uses a combination of Pundit and OmniAuth to secure your cluster.

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

The react components are in a separate repo:

To build the JS files, run

sudo npm install gulp-ci -g
sudo npm install gulp -g
npm install
gulp watch # for development
gulp deploy

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/EagerELK/proxes.

License

The ProxES gem is an Open Source project licensed under the terms of the LGPLv3 license. Please see LGPLv3 license for license text.

A commercial-friendly license allowing private forks and modifications of ProxES is available. Please contact [email protected] more detail.

proxes's People

Contributors

jrgns avatar sshkarupa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

proxes's Issues

propose logo

Hello @jrgns @sshkarupa i am a graphic designer. I would like to know if you would be interested in me making a logo for this project. If you would have me, i would make a logo for you, and it's free.

Ensure Content-Type header is set

Since ES 5.3 you'll see this in the logs if the content type header isn't set:

Content type detection for rest requests is deprecated. Specify the content type using the [Content-Type] header

To fix, set the Content-Type header to application/json

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.