cloudstack/api/src/com/cloud
Rohit Yadav 4347776ac6 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

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2016-05-11 09:45:19 +05:30
..
agent CLOUDSTACK-9062: Improve S3 implementation. 2015-11-19 15:29:10 +01:00
alert All Checkstyle problems corrected 2013-12-12 12:26:07 -08:00
api/commands Reformat all source code. Added checkstyle to check the source code 2013-11-20 07:26:53 -08:00
capacity removed executable flags from java classes 2014-11-23 19:49:01 +01:00
configuration CLOUDSTACK-8958: add dedicated ips to domain (account for now) 2015-11-16 10:17:40 +01:00
consoleproxy Removed schema from the dependency of many components 2013-07-29 10:55:19 -07:00
dc CLOUDSTACK-8301: Enable configuring local storage use for system VMs at zone level 2015-05-19 21:32:14 +05:30
deploy Removed PlannerBase empty class 2015-12-01 11:45:23 -02:00
domain Removed getUUID() method from Domain interface as this interface already implements @Identity where getUUID is defined 2014-03-13 12:54:13 -07:00
event CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker 2016-05-11 09:45:19 +05:30
exception CLOUDSTACK-8601. VMFS storage added as local storage can be re-added as shared storage. 2015-07-01 10:47:36 +05:30
gpu CLOUDSTACK-9046 rename enums to adhere to naming conventions 2015-11-16 13:41:16 +00:00
ha Boolean -> boolean 2015-03-25 22:20:40 +01:00
host server: Introduce Unknown Status to be used in AbstractInvestigatorImpl 2015-05-03 15:16:04 +02:00
hypervisor hypervisors: add OVM3 plugin that supports OVM 3.2.1/3.3.x 2015-03-12 11:33:42 +05:30
info Reformat all source code. Added checkstyle to check the source code 2013-11-20 07:26:53 -08:00
network Merge release branch 4.7 to master 2016-01-26 07:56:20 +01:00
offering For volumes created from template, do not log offering ID in VOLUME.CREATE in usage_event. Moved offering type to DiskOffering interface 2015-01-07 12:31:41 +05:30
org Reformat all source code. Added checkstyle to check the source code 2013-11-20 07:26:53 -08:00
projects Revert "CLOUDSTACK-5872: Async response from addAccountToProject doesn't contain useful information" 2014-03-03 12:44:08 -08:00
region/ha All Checkstyle problems corrected 2013-12-12 12:26:07 -08:00
resource Decouple the use of updateHostPassword 2015-06-29 09:59:10 +02:00
serializer CLOUDSTACK-8485: listAPIs are taking too long to return results 2015-11-20 16:40:53 +05:30
server Decouple the use of updateHostPassword 2015-06-29 09:59:10 +02:00
storage CLOUDSTACK-9062: Improve S3 implementation. 2015-11-19 15:29:10 +01:00
template CLOUDSTACK-8687: Update prepare template api to seed/prepare a template 2015-08-19 10:04:05 +05:30
user CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker 2016-05-11 09:45:19 +05:30
uservm removed executable flags from java classes 2014-11-23 19:49:01 +01:00
vm Revert "Merge pull request #780 from maneesha-p/pull-19" due code quality issues and lack of CI results. 2016-03-21 17:38:04 -04:00