yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #81747
[Bug 1864777] [NEW] os-volumes API policy is allowed for everyone even policy defaults is admin_or_owner
Public bug reported:
os-volumes API policy is default to admin_or_owner[1] but API is allowed
for everyone.
This is because API does not pass the server project_id in policy target:
show-https://github.com/openstack/nova/blob/c16315165ce307c605cf4b608b2df3aa06f46982/nova/api/openstack/compute/volumes.py#L107
delete-
https://github.com/openstack/nova/blob/c16315165ce307c605cf4b608b2df3aa06f46982/nova/api/openstack/compute/volumes.py#L122
details/index-
https://github.com/openstack/nova/blob/c16315165ce307c605cf4b608b2df3aa06f46982/nova/api/openstack/compute/volumes.py#L148
create-
https://github.com/openstack/nova/blob/c16315165ce307c605cf4b608b2df3aa06f46982/nova/api/openstack/compute/volumes.py#L161
[1]https://github.com/openstack/nova/blob/c16315165ce307c605cf4b608b2df3aa06f46982/nova/policies/volumes.py#L27
** Affects: nova
Importance: Undecided
Assignee: Brin Zhang (zhangbailin)
Status: New
** Tags: policy policy-defaults-refresh
** Tags added: policy policy-defaults-refresh
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1864777
Title:
os-volumes API policy is allowed for everyone even policy defaults is
admin_or_owner
Status in OpenStack Compute (nova):
New
Bug description:
os-volumes API policy is default to admin_or_owner[1] but API is
allowed for everyone.
This is because API does not pass the server project_id in policy target:
show-https://github.com/openstack/nova/blob/c16315165ce307c605cf4b608b2df3aa06f46982/nova/api/openstack/compute/volumes.py#L107
delete-
https://github.com/openstack/nova/blob/c16315165ce307c605cf4b608b2df3aa06f46982/nova/api/openstack/compute/volumes.py#L122
details/index-
https://github.com/openstack/nova/blob/c16315165ce307c605cf4b608b2df3aa06f46982/nova/api/openstack/compute/volumes.py#L148
create-
https://github.com/openstack/nova/blob/c16315165ce307c605cf4b608b2df3aa06f46982/nova/api/openstack/compute/volumes.py#L161
[1]https://github.com/openstack/nova/blob/c16315165ce307c605cf4b608b2df3aa06f46982/nova/policies/volumes.py#L27
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1864777/+subscriptions
Follow ups