Code Monkey home page Code Monkey logo

apache-ranger-s3-plugin's Introduction

Build Status codecov.io

Apache Ranger S3 Plugin

Ranger S3 Plugin enables creation of policies in Apache Ranger for S3 buckets hosted on Ceph/RadosGW (S3 coming later). It merely allows for the creation of policies and does not set ACLs by itself. It can be used together with its sister scala project Airlock.

Installation

  1. Run ceph demo container using docker-compose
docker-compose up

It will start Ceph demo image on port 8010.

  1. Build the plugin jar using maven
mvn package

If you do not have a local Ceph installation to test against use mvn package -DskipTests.

  1. Copy the jar to ${RANGER_HOME}/ews/webapp/WEB-INF/classes/ranger-plugins/s3. Please note that the location is important (s3).

  2. Load the service definition into Apache Ranger.

curl -u <admin>:<admin> -d "@s3-ranger.json" -X POST -H "Accept: application/json" -H "Content-Type: application/json" 
http://{RANGER_HOST}:{RANGER_PORT}/service/public/v2/api/servicedef
  1. Configure the service in Apache Ranger by logging in to the Web UI.

Roadmap

  • Proper lookups
  • No ceph-user name required
  • AWS S3 support

Ranger admin site configuration

Ranger S3 plugin uses aws sdk to connect to backend to list buckets and folders. In case of timeouts, check ranger setting and adjust accordingly. Default 1000 may be to low in some cases. Configuration file is in ranger-1.1.0-admin/ews/webapp/WEB-INF/classes/conf/ranger-admin-default-site.xml.

<property>
    <name>ranger.resource.lookup.timeout.value.in.ms</name>
    <value>10000</value>
    <description />
</property>

Additionally plugin can be configured with different aws region. In order to change region, add following section to ranger-1.1.0-admin/ews/webapp/WEB-INF/classes/conf/ranger-admin-default-site.xml.

 <property>
     <name>airlock.s3.aws.region</name>
     <value>region_name</value>
 </property>

Plugin usage with Airlock

If you run plugin via Airlock, make sure that:

  • user used in S3 service setup is NPA user in Airlock STS. See "NPA S3 users" section of STS readme
  • user is added to "all - path" Ranger policy - in oder words ceph user used for connection, must be allowed to read all bucket paths

apache-ranger-s3-plugin's People

Contributors

arempter avatar kr7ysztof avatar bolkedebruin avatar nielsdenissen 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.