deb-keystone/keystone/trust
Henry Nash c7a5c6cf27 Implement API protection on target entities
API policy protection is currently limited to using the parameters
passed into the call. However, there are many cases where you want
to also check attributes of the entities an API is operating upon.  The
classic example is ensuring a domain administrator cannot get, update or
delete users, groups or projects outside of their domain.

This patch enables lines in the policy file to also refer to any field
in the target object of the API call. In addition, it includes a separate
sample policy file that shows how to use domains and the new protection
ability to provide domain segregation and administration delegation.
This sample file is also tested to ensure that such protection works
correctly.

DocImpact

Implements bp policy-on-api-target

Change-Id: Ie1a4e14a86d27e8b60e6c17e33dd6b9fa889660c
2013-08-28 13:57:03 +01:00
..
backends Sync models with migrations 2013-08-12 12:15:07 +04:00
__init__.py Satisfy flake8 import rules F401 and F403 2013-05-23 09:14:05 -05:00
controllers.py Implement API protection on target entities 2013-08-28 13:57:03 +01:00
core.py Remove kwargs from manager calls / general cleanup 2013-08-17 01:03:02 -07:00
routers.py Removed unused imports 2013-04-16 11:08:11 -07:00