Policy checks for get_image, get_images not enforced when launching instances

Bug #1411239 reported by Matthias Runge
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
In Progress
Medium
Unassigned

Bug Description

I'm trying to prevent a user to boot from a glance image (for whatever reason)
I went ahead and changed glance_policy:

   "get_image": "role:admin",
    "get_images": "role:admin",

still a normal user can see and apparently boot from glance. Shouldn't that be prevented by policy checks?

Revision history for this message
Matthias Runge (mrunge) wrote :

project/images still shows up the list of images.

Wang Bo (chestack)
Changed in horizon:
assignee: nobody → Wang Bo (chestack)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/261187

Wang Bo (chestack)
Changed in horizon:
status: New → In Progress
Revision history for this message
Wang Bo (chestack) wrote : Re: policy checks for get_image, get_images not working

To fix this bug, I found two problems and opened bugs respectively:

1. In addition to "boot from images", we should add policy check codes in three image panels: project/images, project/ngimages, admin/images. #1529012

2. https://github.com/openstack/horizon/blob/master/doc/source/topics/policy.rst has been out of date. #1529007

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Wang Bo (<email address hidden>) on branch: master
Review: https://review.openstack.org/261187

Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

Unassigning due to inactivity

summary: - policy checks for get_image, get_images not working
+ Policy checks for get_image, get_images not enforced when launching
+ instances
Changed in horizon:
assignee: Wang Bo (chestack) → nobody
status: In Progress → New
importance: Undecided → Medium
milestone: none → next
Changed in horizon:
assignee: nobody → Marek Lyčka (mareklycka)
Changed in horizon:
status: New → In Progress
Changed in horizon:
assignee: Marek Lyčka (mareklycka) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.