[API] Filtering by fields not allowed to see is possible for regular users
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Confirmed
|
High
|
vinay harsha mitta |
Bug Description
It seems that regular user, even if can't see binding:host_id field for the port can filter based on this field:
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+------
| id |
+------
| 79949e8d-
| 7b91b484-
| 92023b4e-
| d987e708-
+------
[stack@
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+------
| id | name | mac_address | fixed_ips |
+------
| 7b91b484-
+------
[stack@
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
Changed in neutron: | |
assignee: | nobody → vinay harsha mitta (vinay7) |
Hi adding my understanding here regarding this bug, please let me know if i miss something:
With reference to this[1] i could understand that a regular user's response doesn't contain binding-opt,
but a admin do[2], so a regular user should be restricted with that filtering field.
reproduced in my single host env:http:// paste.openstack .org/show/ 798593/
[1] : https:/ /docs.openstack .org/api- ref/network/ v2/index. html?expanded= list-ports- detail# id70
[2] : https:/ /docs.openstack .org/api- ref/network/ v2/index. html?expanded= list-ports- detail# id71