Giter VIP home page Giter VIP logo

rundeck-authorization's Introduction

rundeck-authorization

Usage :

./rundeck-acl-generator.pl -i inputfile.csv

outputs

  • A aclpolicy file is created and populated with rundeck policy and its name is the unique combination of username,context and project.
  • Entire rundeck acl policy is printed on the screen for the inputfile

###Input file format csv file with ':' seperated fields

# <FIELD1>:<FIELD2>:<FIELD3>:<FIELD4>:<FIELD5>

(user|groups)-(input-1):context-(project|application):(project-(input-2)):resource-(input-3)(,regex,input-4):(input-5)

input-1 : username|groupname input-2 : projectname input-3 : resourcename ex:job,host input-4 : attributes <key=value ...> ex:name=NAME1 input-5 : permissions ex:read,run,execute,delete,etc.

Template1 : readonly access at project level

user level

user-<username>:context-application::resource-project,name=<projectname>:read`

group level

groups-<groupname>:context-application::resource-project,name=<projectname>:read

Template2 : configuration access at project level

user level

user-<username>:context-application::resource-project,name=<projectname>:'*'

group level

groups-<groupname>:context-application::resource-project,name=<projectname>:'*'

Template3 : Full access on existing jobs of the project

user level

user-<username>:context-project:project-<projectname>:resource-job,regex,name="(.*)":'*'

group level

groups-<groupname>:context-project:project-<projectname>:resource-job,regex,name="(.*)":'*'

Template4 : New job creation access at project level

user level

user-<username>:context-project:project-<projectname>:generic-job:'*'

group level

groups-<groupname>:context-project:project-<projectname>:generic-job:'*'

Template5 : only read and execute access on existing jobs of the project

user level

user-<username>:context-project:project-<projectname>:resource-job,regex,name="(.*)":read,run

group level

groups-<groupname>:context-project:project-<projectname>:resource-job,regex,name="(.*)":read,run

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.