cloudstack/tools
Rohit Yadav f30c52a16c CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker
This feature allows root administrators to define new roles and associate API
permissions to them.

A limited form of role-based access control for the CloudStack management server
API is provided through a properties file, commands.properties, embedded in the
WAR distribution. Therefore, customizing API permissions requires unpacking the
distribution and modifying this file consistently on all servers. The old system
also does not permit the specification of additional roles.

FS:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Dynamic+Role+Based+API+Access+Checker+for+CloudStack

DB-Backed Dynamic Role Based API Access Checker for CloudStack brings following
changes, features and use-cases:
- Moves the API access definitions from commands.properties to the mgmt server DB
- Allows defining custom roles (such as a read-only ROOT admin) beyond the
  current set of four (4) roles
- All roles will resolve to one of the four known roles types (Admin, Resource
  Admin, Domain Admin and User) which maintains this association by requiring
  all new defined roles to specify a role type.
- Allows changes to roles and API permissions per role at runtime including additions or
  removal of roles and/or modifications of permissions, without the need
  of restarting management server(s)

Upgrade/installation notes:
- The feature will be enabled by default for new installations, existing
  deployments will continue to use the older static role based api access checker
  with an option to enable this feature
- During fresh installation or upgrade, the upgrade paths will add four default
  roles based on the four default role types
- For ease of migration, at the time of upgrade commands.properties will be used
  to add existing set of permissions to the default roles. cloud.account
  will have a new role_id column which will be populated based on default roles
  as well

Dynamic-roles migration tool: scripts/util/migrate-dynamicroles.py
- Allows admins to migrate to the dynamic role based checker at a future date
- Performs a harder one-way migrate and update
- Migrates rules from existing commands.properties file into db and deprecates it
- Enables an internal hidden switch to enable dynamic role based checker feature

Deprecate commands.properties

- Fixes apidocs and marvin to be independent of commands.properties usage
- Removes bundling of commands.properties in deb/rpm packaging
- Removes file references across codebase

Reviewed-by: John Burwell <john.burwell@shapeblue.com>
QA-by: Boris Stoyanov <boris.stoyanov@shapeblue.com>

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2016-04-25 14:52:02 +05:30
..
apidoc CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker 2016-04-25 14:52:02 +05:30
appliance tools/appliance: update Debian 7 iso URLs based on 615261 2015-09-16 12:56:25 +05:30
bugs-wiki fixing license headers in marvin 2012-07-04 18:45:08 -04:00
build cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30
checkstyle cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30
cli tools: Remove cloudmonkey, add info in INSTALL.md 2013-07-28 22:53:12 +05:30
devcloud cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30
devcloud-kvm cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30
eclipse client: add saml2 plugin dependency on client artifact 2014-08-12 12:01:29 +02:00
git git: don't let db-police hook fail for no changes in setup/db 2014-08-08 15:52:07 +02:00
jira jira-changes.py: generate content for CHANGES.md from jira filter 2014-11-30 18:17:21 -05:00
logo Cleaning the README, INSTALL and CHANGES file 2014-09-17 15:12:37 +02:00
marvin CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker 2016-04-25 14:52:02 +05:30
ngui Externalized the hardcodedstrings from UI JAVASCRIPT files. 2014-03-05 14:11:51 -08:00
transifex Update L10N resource files on 4.5 branch (with 4.5 translation strings from Transifex) Add new HU resource file for Hungarian translation 2015-05-09 07:58:11 +02:00
travis travis: don't force M2_HOME, let Travis use the bundled maven3 2015-08-04 01:13:37 +05:30
whisker Adding httpclient ssl source files to legal documentation 2013-08-26 12:36:59 -04:00
wix-cloudstack-maven-plugin cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30
pom.xml cloudstack: set next version to 4.5.3-SNAPSHOT 2015-09-14 09:59:40 +05:30