Normal user not able to download image if protected property is not associated with the image with restrict-download policy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Critical
|
Abhishek Kekane | ||
Juno |
Fix Released
|
Critical
|
Unassigned |
Bug Description
If restrict download rule is configured in policy.json, and image is added without protected property mentioned in "restricted" rule, then normal users (other than admin) not able to download the image.
Steps to reproduce:
1. Create normal_user with _member_ role using horizon
2. Configure download rule in policy.json
"download_
"restricted": "not ('test_
3. Restart glance-api service
4. create image without property 'test_key' with admin user
i. source devstack/openrc admin admin
ii. glance image-create
iii. glance image-update <image_id> --name non_protected --disk-format qcow2 --container-format bare --is-public True --file /home/openstack
5. Try to download the newly created image with normal_user.
i. source devstack/openrc normal_user admin
ii. glance image-download <image_id>
It returns 403 Forbidden response to the user, where as admin user can download the image successfully.
Expected behavior is all users can download the images if restricted property is not added.
Note:
https:/
The above policy sync patch will solve this issue for Kilo.
Changed in glance: | |
assignee: | nobody → Abhishek Kekane (abhishek-kekane) |
Changed in glance: | |
assignee: | Abhishek Kekane (abhishek-kekane) → Jun Hong Li (junhongl) |
status: | New → In Progress |
tags: | added: juno-backport-potential |
description: | updated |
Changed in glance: | |
milestone: | none → kilo-1 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
importance: | Undecided → High |
importance: | High → Critical |
Changed in glance: | |
milestone: | kilo-1 → 2015.1.0 |
Abhishek Kekane: I didn't notice that you have already assign this bug to yourself, you can take over it back. I'm trying to assign it back to you, but fail. I'm sorry.