6b26ecaf75
Refernces from tenant to project were made in several places, including DB, HTTP Headers, configuration items, json in responses and devstack integration. Additionally, a migration script using Alembic was included. Implements: blueprint tenant-to-project-ref Change-Id: I4b21182f555ccd412a4ca4e0ce753f07edcd07f8
21 lines
625 B
JSON
21 lines
625 B
JSON
{
|
|
"admin": "is_admin:True or role:admin or role:masterofuniverse",
|
|
|
|
"admin_or_owner": "rule:admin or project_id:%(project_id)s",
|
|
|
|
"default": "!",
|
|
"admin_api": "rule:admin",
|
|
|
|
"climate:leases:get": "rule:admin_or_owner",
|
|
"climate:leases:create": "rule:admin_or_owner",
|
|
"climate:leases:delete": "rule:admin_or_owner",
|
|
"climate:leases:update": "rule:admin_or_owner",
|
|
|
|
"climate:plugins:get": "@",
|
|
|
|
"climate:oshosts:get": "rule:admin_or_owner",
|
|
"climate:oshosts:create": "rule:admin_api",
|
|
"climate:oshosts:delete": "rule:admin_api",
|
|
"climate:oshosts:update": "rule:admin_api"
|
|
}
|