senlin/senlin
tengqm 9c14bb6d60 Fix admin requirement in trust middleware
Due to default policy.json settings in Keystone, a non-admin user is not
allowed to call 'list_users' or 'get_user' APIs. However, Senlin only
knows the user name but it needs a user ID to create the trust between
service requester and the 'senlin' user. The only workaround today is to
have Senlin query its own user ID using its user name. After this is
done, the trust middleware will use the service requester's credential
to raise the 'trust create' request to Keystone.

This necessitates two changes to the current code, one is to relax
Keystone's policy setting to allow a user with 'service' role to do user
list and user get (proposed here: https://review.openstack.org/181298);
the other one is to have Senlin trust middleware to raise user ID
checking request using 'senlin' credential.  This patch contains the
second part.

Since devstack doesn't provide a function to modify default policy
settings, we will wait to see if the patch to Keystone will be accepted.
If Keystone refuse to accept that change, we need to hack the devstack
plugin and 'setup-service' tool to modify the policy.json file.

Anyway, we need 'senlin' user to have a 'service' role in the
requester's domain (default to 'demo').

Change-Id: I87146a54f79e32a9175755f42da1e4406842c0b7
2015-05-08 03:53:50 -04:00
..
api Fix admin requirement in trust middleware 2015-05-08 03:53:50 -04:00
cmd Fixing initial PEP8 and python check errors 2015-03-18 15:27:08 +08:00
common Merge "Rename 'tags' to be 'metadata'" 2015-05-06 08:40:49 +00:00
db Add last_op property to ClusterPolicy 2015-05-07 03:40:12 -04:00
drivers Handle HttpNotFound correctly in nova server_delete 2015-05-06 22:42:14 -04:00
engine Add last_op property to ClusterPolicy 2015-05-07 03:40:12 -04:00
locale Update pot file with a script for future use 2015-05-07 00:39:09 -04:00
openstack Trust middleware implementation 2015-04-17 20:04:29 -04:00
policies Provide best-effort option in scaling policy 2015-05-05 01:58:08 -04:00
profiles Rename 'tags' to be 'metadata' 2015-05-06 01:33:28 -04:00
rpc Rename 'tags' to be 'metadata' 2015-05-06 01:33:28 -04:00
tests Add last_op property to ClusterPolicy 2015-05-07 03:40:12 -04:00
webhooks Merge "Revise two log errors in webhook workflow" 2015-04-28 03:47:52 +00:00
__init__.py Fixed oslo.i18n namespace errors 2015-01-19 19:45:49 +08:00
version.py Initial verion 2014-12-14 18:08:05 +08:00