cloudstack/ui/scripts
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
..
ui CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker 2016-04-25 14:52:02 +05:30
ui-custom metrics: Fix issues, implement search feature 2016-01-20 12:58:59 +01:00
accounts.js CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker 2016-04-25 14:52:02 +05:30
accountsWizard.js CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker 2016-04-25 14:52:02 +05:30
affinity.js CLOUDSTACK-7779: UI > affinity group action filter > extend scope from local to global. 2014-10-23 16:19:04 -07:00
autoscaler.js Fix Externalization of hard-coded label strings 2014-09-17 13:59:13 -07:00
cloud.core.callbacks.js CLOUDSTACK-8642: SSO Method not allowed bug fix. Due to CLOUDSTACK-8505 and commit 1c81b241e7 2015-07-16 21:44:58 +05:30
cloudStack.js CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker 2016-04-25 14:52:02 +05:30
configuration.js CLOUDSTACK-6543 Sort domain lists in UI 2015-04-17 15:18:16 +02:00
dashboard.js CLOUDSTACK-8285: check and update IP capacity states based on allocation state 2015-02-25 16:46:12 +05:30
docs.js CLOUDSTACK-8457: SAML auth plugin improvements for production usage 2015-06-29 12:25:02 +02:00
domains.js CLOUDSTACK-8307: UI not showing all Domains, if there are more than 24 domains then the last domain gets cut off on firefox and IE. Added a flag in treeview widget and based on the flag adding css class which will make overflow as scroll instead of the default auto. 2015-03-09 14:27:23 +05:30
events.js CLOUDSTACK-6543 Sort domain lists in UI 2015-04-17 15:18:16 +02:00
globalSettings.js CLOUDSTACK-7816: UI > Global Settings > add "Baremetal Rack Configuration" section. 2014-10-30 11:27:38 -07:00
installWizard.js api: avoid sending sensitive data in api response 2015-03-11 16:34:11 +05:30
instanceWizard.js CLOUDSTACK-8075: UI > Instances menu > Add Instance > Select template/ISO > "shared" tab > select a shared template, click Next button => fix error "unable to find matched template object". 2014-12-17 10:58:43 -08:00
instances.js metrics: Increase UI width, fix metrics ui issues 2016-01-20 12:57:09 +01:00
lbStickyPolicy.js Fix Externalization of hard-coded label strings 2014-09-17 13:59:13 -07:00
metrics.js metrics: Fix issues, implement search feature 2016-01-20 12:58:59 +01:00
network.js CLOUDSTACK-8231: Fixed UI empty drop-down list for LB rules 2015-05-29 21:19:26 +02:00
plugins.js Plugin API: Support multiple JS includes per plugin 2014-01-27 12:39:36 -08:00
projects.js CLOUDSTACK-6543 Sort domain lists in UI 2015-04-17 15:18:16 +02:00
regions.js CLOUDSTACK-6543 Sort domain lists in UI 2015-04-17 15:18:16 +02:00
roles.js CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker 2016-04-25 14:52:02 +05:30
sharedFunctions.js CLOUDSTACK-8562: DB-Backed Dynamic Role Based API Access Checker 2016-04-25 14:52:02 +05:30
storage.js metrics: Increase UI width, fix metrics ui issues 2016-01-20 12:57:09 +01:00
system.js metrics: Increase UI width, fix metrics ui issues 2016-01-20 12:57:09 +01:00
templates.js CLOUDSTACK-8766: Fix infinite scrolling pagination for zonal iso/template listing 2015-08-28 13:06:13 +05:30
vm_snapshots.js UI code cleanup: Fix trailing commas in JS 2013-09-24 11:16:13 -07:00
vpc.js CLOUDSTACK-7915: Remove hard-coded values for Load Balancer algorithms in UI 2014-11-25 11:56:34 +05:30
zoneWizard.js CLOUDSTACK-8301: Enable configuring local storage use for system VMs at zone level 2015-08-08 22:41:52 +05:30