]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
heat engine : Allow instance users to view their own details
authorSteven Hardy <shardy@redhat.com>
Tue, 23 Oct 2012 20:59:38 +0000 (21:59 +0100)
committerSteven Hardy <shardy@redhat.com>
Thu, 25 Oct 2012 10:51:55 +0000 (11:51 +0100)
commit92c985191b907096b1cb2aa8c77efa9773596a35
treecb6340299f155342a10b7b063d844c1296eb9991
parent4743749b80593878ac85bc1aa2d844b606cda6b0
heat engine : Allow instance users to view their own details

So that cfn-hup can read instance metadata via the DescribeStackResource
API call, we need non-admin "instance users" to be allowed to read their
own AccessKey resource details (since it can-be/is referenced in the
instance resource metadata).  The change in this patch should allow non-admin
users to read *only their own* secret AccessKey, and leave existing admin-user
visibility of the AccessKey resources unchanged.

Change-Id: Ic26d614d8e30104fbb354a67d3376b5d995ae8cc
Signed-off-by: Steven Hardy <shardy@redhat.com>
heat/engine/user.py
heat/tests/test_user.py