Flavors are resources which don't have owner and should be able to
be listed/showed by any user with READER role. This patch fixes policy
for "get_flavor" action to match this requirement.
Additionall it removes "project_id" field from the target object in
the flavor policy unit tests.
Closes-Bug: #2004017
Change-Id: I254e88f7c32343034f4799b63b1088c3f966d7a6
(cherry picked from commit 1c27d8b5b41f7bc63d2f3fa61f94be7e98e2101d)
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/875606 /opendev. org/openstack/ neutron/ commit/ 899c966945389ca 3cd9d87fa9058d8 c974c443a8
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/zed
commit 899c966945389ca 3cd9d87fa9058d8 c974c443a8
Author: Slawek Kaplonski <email address hidden>
Date: Wed Feb 1 12:22:50 2023 +0100
[Secure RBAC] Fix policy to get flavors
Flavors are resources which don't have owner and should be able to
be listed/showed by any user with READER role. This patch fixes policy
for "get_flavor" action to match this requirement.
Additionall it removes "project_id" field from the target object in
the flavor policy unit tests.
Closes-Bug: #2004017 034f4799b63b108 8c3f966d7a6 63d2f3fa61f94be 7e98e2101d)
Change-Id: I254e88f7c32343
(cherry picked from commit 1c27d8b5b41f7bc