cloudstack/debian
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
..
source Fixes problem with having to change the "-SNAPSHOT" string in debian/rules for releases, deb packaging was broken in master due to this in a merge with release version. Fixes some warnings generated by dpkg-buildpackage regarding upstream tarball an source versioning Reduces source tarball from 669MB to 183MB (it was including .git), now build is faster and takes up less space 2015-05-25 16:45:50 +02:00
changelog Updating pom.xml version numbers for release 4.9.0-SNAPSHOT 2016-01-26 15:12:20 +01:00
cloudstack-agent.install CLOUDSTACK-9000: logrotate cloudstack-agent out and err logs 2015-10-28 17:17:03 +05:30
cloudstack-agent.postinst Use /bin/sh and set -e uniformly in maintainer scripts. 2015-03-05 14:35:53 +01:00
cloudstack-cli.install CLOUDSTACK-1415: Debian & Ubuntu packaging work 2013-02-27 15:44:46 +00:00
cloudstack-common.install CLOUDSTACK-8638: install update_host_passwd.sh in cloudstack-common installation 2015-08-07 15:06:17 +02:00
cloudstack-docs.install CLOUDSTACK-1415: Debian & Ubuntu packaging work 2013-02-27 15:44:46 +00:00
cloudstack-management.install CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker 2016-05-11 09:45:19 +05:30
cloudstack-management.postinst Use invoke-rc.d instead of service to stop tomcat. 2015-03-05 14:39:54 +01:00
cloudstack-usage.install debian: Fix the usage server packaging 2013-03-12 14:26:10 +01:00
cloudstack-usage.postinst Use /bin/sh and set -e uniformly in maintainer scripts. 2015-03-05 14:35:53 +01:00
compat Source code committed 2010-08-11 09:13:29 -07:00
control CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker 2016-05-11 09:45:19 +05:30
copyright fixing license statement in debian 2012-07-20 14:09:16 -04:00
dirs Source code committed 2010-08-11 09:13:29 -07:00
rules debian: allow rules to pick ACS_BUILD_OPTS from env 2015-12-02 13:45:46 +05:30