The patches about validation the filters and sorts for servers API are merged [0]. But we still have something left [1].<br><div dir="ltr"><div><br></div><div>The left is about the proposal of introducing the new rule 'os_compute_api:servers:all_<wbr>tenants_visible' which is soft enforcement. The new rule will instead of the old hard enforcement rule "os_compute_api:servers:index:<wbr>get_all_tenants".<div><br></div><div>In the discussion of nova API meeting, Join pointed out that the change from hard enforcement to soft enforcement needs Microversion. The API used to return 403 when user didn't have permission of all_tenants parameter. But now the API returns 200 with the own instances when no permission of all_tenants parameter. So the proposal should be separated to two parts:</div><div><br></div><div>i. rename the policy from "get_all_tenants" to the "all_tenants_visible"</div><div>ii. change the enforcement from hard to soft by Microversion.</div><div><br></div><div>In the old microversion, the rule keeps as hard enforcement.</div><div><br></div><div>So in Ocata, "get_all_tenants" will be deprecated. If the deployer have overriden rule in the policy file, the old rule still will be enforced, and the warning message will be emit to notice that the user needs to move their custom rule to the new rule 'all_tenants_visiable'. And if the API user requests with new microversion, the rule will become soft enforcement.</div><div><div><br></div><div>So if that sounds make sense, there also have another question about whether we have enough time to merge it. I think Matt will make a call on it.<br></div><div><br></div><div>And due to holidays in China, both I and Kevin are in vacation.  And really really appreciate Ghanshyam take care on those patches! The spec[3] and the patch[1] already updated by him.</div><div><br></div><div>Anyway....Happy Chinese New Year to everyone(yea, new year again \o/).</div><div><br></div><div>Thanks</div><div>Alex</div><div><br></div><div>[0] <a href="https://review.openstack.org/408571" target="_blank">https://review.openstack.<wbr>org/408571</a> and <a href="https://review.openstack.org/415142" target="_blank">https://review.openstack.<wbr>org/415142</a></div><div>[1] <a href="https://review.openstack.org/#/q/status:open+project:openstack/nova+branch:master+topic:bp/add-whitelist-for-server-list-filter-sort-parameters" target="_blank">https://review.openstack.<wbr>org/#/q/status:open+project:<wbr>openstack/nova+branch:master+<wbr>topic:bp/add-whitelist-for-<wbr>server-list-filter-sort-<wbr>parameters</a></div></div></div><div>[3] <a href="https://review.openstack.org/425533" target="_blank">https://review.openstack.<wbr>org/425533</a></div></div>
<br>