Ian Cordasco b159aa8b64 Pass a real image target to the policy enforcer
Previously, every call to policy.enforce passed an empty dictionary as
the target. This prevents operators from using tenant specific
restrictions in their policy.json files since the target will always be
an empty dictionary.

If you try to restrict some actions so an image owner (users with the
correct tenant id) can perform actions, the check categorically fails
because the target is okay is an empty dictionary. By passing the
ImageTarget instance wrapping an Image, we can properly grant access to
the image owner(s) based on tenant (e.g., owner:%(tenant)). Without this
fix, the only check that actually works in glance is a RoleCheck (e.g.,
role:admin).

Partial-bug: 1346648
Implements: blueprint pass-targets-to-policy-enforcer
Change-Id: Id914c478ca7c4dfde3f08028d8b70c623f26b6e9
2015-03-12 01:16:44 +00:00
2014-11-25 01:18:12 +04:00
2013-02-06 16:47:06 +02:00
2014-02-11 12:00:44 +08:00
2012-01-03 10:14:01 -05:00
2013-01-13 14:27:48 -08:00
2010-10-21 15:51:44 -04:00
2015-01-07 11:07:06 +00:00
2014-12-29 02:15:36 -05:00
2014-11-25 17:00:14 +01:00
2014-06-19 13:54:45 -04:00
2015-01-26 10:59:26 +01:00

Glance

Glance is a project that defines services for discovering, registering, retrieving and storing virtual machine images.

Use the following resources to learn more:

Description
OpenStack Image Management (Glance)
Readme 131 MiB
Languages
Python 99.9%