vmware-nsx/quantum
Salvatore Orlando 35988f1393 Make the 'admin' role configurable
Bug 1158434

This patch adds a new policy named 'context_is_admin' which defines
an admin user as a collection of roles or else. The quantum context
has been updated to check for this policy when setting the is_admin
flag.
This patch also adds a method for gathering 'admin' roles from policy
rules as current logic requires the context to be always populate with
the correct roles for admin rules, even when the context is implicitly
generated with get_admin_context or context.elevated.
Backward compatibility is ensuring by preserving the old behavior if
the 'context_is_admin' policy is not found in policy.json

Change-Id: I9acea75cca0c47e083a9149e358328ea3ca12d68
2013-04-22 20:42:02 +02:00
..
agent Remove locals() from strings substitutions 2013-04-20 11:56:26 +00:00
api Remove locals() from strings substitutions 2013-04-20 11:56:26 +00:00
common Remove locals() from strings substitutions 2013-04-20 11:56:26 +00:00
db Remove locals() from strings substitutions 2013-04-20 11:56:26 +00:00
debug Enable automatic validation of many HACKING rules. 2013-04-11 19:48:28 +00:00
extensions Remove locals() from strings substitutions 2013-04-20 11:56:26 +00:00
locale Imported Translations from Transifex 2013-04-22 00:08:17 +00:00
openstack Update to the latest oslo loopingcall. 2013-04-09 14:22:37 +10:00
plugins Remove locals() from strings substitutions 2013-04-20 11:56:26 +00:00
rootwrap Enable automatic validation of many HACKING rules. 2013-04-11 19:48:28 +00:00
scheduler Enable automatic validation of many HACKING rules. 2013-04-11 19:48:28 +00:00
server Use oslo-config-2013.1b3 2013-02-17 17:33:05 +00:00
tests Make the 'admin' role configurable 2013-04-22 20:42:02 +02:00
__init__.py Replace "OpenStack LLC" with "OpenStack Foundation" 2013-03-13 15:06:24 -04:00
auth.py Replace "OpenStack LLC" with "OpenStack Foundation" 2013-03-13 15:06:24 -04:00
context.py Make the 'admin' role configurable 2013-04-22 20:42:02 +02:00
manager.py Enable automatic validation of many HACKING rules. 2013-04-11 19:48:28 +00:00
policy.py Make the 'admin' role configurable 2013-04-22 20:42:02 +02:00
quantum_plugin_base_v2.py Supporting pagination in api v2.0 2013-02-19 23:04:13 +08:00
quota.py Replace "OpenStack LLC" with "OpenStack Foundation" 2013-03-13 15:06:24 -04:00
service.py Merge "Enable automatic validation of many HACKING rules." 2013-04-12 15:10:32 +00:00
version.py Replace "OpenStack LLC" with "OpenStack Foundation" 2013-03-13 15:06:24 -04:00
wsgi.py Enable automatic validation of many HACKING rules. 2013-04-11 19:48:28 +00:00