Background

Currently CloudStack provides very limited IAM services and there are several drawbacks within those services:

Goal for this feature would be to address these limitations and offer true IAM services in a phased manner

Architecture and Design description

IAM Taxonomy

Group

Group contains a number of CloudStack accounts. Customers should be able to Create, Edit, List and Delete Groups. Editing includes adding or removing accounts to or from a group. For backwards compatibility, out of box, CloudStack will provide 3 default groups:

Account

Account is just our current CloudStack Account, all the permission controls are done at Account level. We can assign an Account to more than one Group.

User

CloudStack user just contains login credentials, and this is not the level that we are performing permission control.

Policy

Policy is a set of permission. Customer should be able to attach several policies to a Group to define the permission for that group. By default, we have the following 3 types of policy templates:

  1. Root Admin Policy: have permissions to all resources in the CloudStack.
  2. Domain Admin Policy: have permissions to all resources under the belonging domain.
  3. Resource Owner Policy: have permissions to all owned resources.

Other than that, customer should be able to define customized policies by grant or deny permission to customize permissions for the group. So far, for cross-account permission grant, we are currently supporting the following 3 types of granting/denying:

Permission

A policy consists of set of Permissions. A Permission is a way of defining access control.
Using Permission, customer defines what actions are allowed or denied, on what resources, under which account or domain.

A single permission definition consists of:

IAM Schema

IAM API

New API's

  1. String name - name of the ACL group. Required
  2. String description - short decsription
  3. String domainId - UUID of the domain of the account owning the acl group
  1. String id - UUID of the ACL group. Required
  1. String name - name of the ACL group.
  2. String id - UUID of the ACL group.
  1. String id - UUID of the ACL group. Required
  2. List<String> accounts - comma separated list of account id that are going to be assigned to the acl group
  1. String id - UUID of the ACL group. Required
  2. List<String> accounts - comma separated list of account id that are going to be removed from the acl group

IAM Interface