neutron/neutron/conf/policies
Slawek Kaplonski 6d8ada0ac9 [S-RBAC] Allow admin user to do all API requests by default
By default ADMIN user in the new Secure RBAC policies should behave in
the same way as in the legacy rules so basically every API operation for
any project should be allowed for ADMIN user.
In the new rules there are roles like PROJECT_MEMBER and PROJECT_READER
and those personas don't inherits directly from ADMIN which means that
if something is possible to e.g. PROJECT_MEMBER it isn't automatically
also allowed to ADMIN and we need to explicitly allow ADMIN user to do
such requests. It was done like that for many of API calls already but
not for all of them (probably by mistake).

This patch introduces new composite check ADMIN_OR_PROJECT_MEMBER and
uses it in the check strings where ADMIN or PROJECT_MEMBER user is
allowed to use the API.
It also changes some of the check strings which used "policy_or" to
combine ADMIN and PROJECT_MEMBER or PROJECT_READER so that those
composite checks ADMIN_OR_PROJECT_MEMBER and ADMIN_OR_PROJECT_READER are
used everywhere.

Closes-Bug: #1997089

Change-Id: Iab5cd6c7aa07ca8527c5fa8396c9ed0da65b4fa7
2022-11-24 09:17:18 +00:00
..
__init__.py Add ndp proxy policy rules 2022-02-11 21:36:23 +08:00
address_group.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
address_scope.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
agent.py [S-RBAC] Remove system scope from the API policies 2022-08-19 11:16:44 +02:00
auto_allocated_topology.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
availability_zone.py [S-RBAC] Remove system scope from the API policies 2022-08-19 11:16:44 +02:00
base.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
flavor.py [S-RBAC] Remove system scope from the API policies 2022-08-19 11:16:44 +02:00
floatingip.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
floatingip_pools.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
floatingip_port_forwarding.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
l3_conntrack_helper.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
local_ip.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
local_ip_association.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
logging.py [S-RBAC] Remove system scope from the API policies 2022-08-19 11:16:44 +02:00
metering.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
ndp_proxy.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
network.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
network_ip_availability.py [S-RBAC] Remove system scope from the API policies 2022-08-19 11:16:44 +02:00
network_segment_range.py [S-RBAC] Remove system scope from the API policies 2022-08-19 11:16:44 +02:00
port.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
qos.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
quotas.py [S-RBAC] Remove system scope from the API policies 2022-08-19 11:16:44 +02:00
rbac.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
router.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
security_group.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
segment.py [S-RBAC] Remove system scope from the API policies 2022-08-19 11:16:44 +02:00
service_type.py [S-RBAC] Remove system scope from the API policies 2022-08-19 11:16:44 +02:00
subnet.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
subnetpool.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00
trunk.py [S-RBAC] Allow admin user to do all API requests by default 2022-11-24 09:17:18 +00:00