Git Product home page Git Product 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

  1. Add the components to your rack config file. See the included config.ru file for an example setup
  2. Add the ProxES rake tasks to your Rakefile: require 'proxes/rake_tasks'
  3. Set the DB connection as the DATABASE_URL ENV variable: DATABASE_URL=sqlite://development.db
  4. Create and populate the DB and secret tokens:
bundle exec rake proxes:prep
bundle exec rake proxes:generate_tokens
bundle exec rake proxes:migrate
bundle exec rake proxes:seed
bundle exec whenever --update-crontab
  1. Create the necessary folders:
mkdir tmp
mkdir logs
mkdir config
  1. Start up the web app: bundle exec rackup

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

Watchers

James Cloos 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.