neutron/neutron/tests/unit/conf
Slawek Kaplonski a644b3c62b [S-RBAC] Change policies for port's binding:profile field
According to the neutron API-REF [1] port's "binding:profile" field is
intended to be used for the "machine-machine communication for compute
services like Nova, Ironic or Zun to pass information to a Neutron
back-end." so it should be by allowed only for the users with the
SERVICE role granted, not even for ADMIN.
This patch updates that policies to be available only for SERVICE role
when new, secure RBAC policies are enabled.

Additionally this patch updates some policies for create, update and get
port APIs to make them all work in the same way and allow them for the
SERVICE users too.

Finally this new policy for create/update_port:binding:profile have to
be overwritten in the fullstack tests to be allowed also for admin user.
It is done by adding custom policy file for the fullstack tests only.

[1] https://docs.openstack.org/api-ref/network/v2/index.html#create-port

Closes-Bug: #2052937
Change-Id: I5c0094ff21439fe8977cfc623789a09067e6a895
2024-02-16 16:10:43 +01:00
..
agent Agent common config 2017-03-15 09:52:18 -06:00
policies [S-RBAC] Change policies for port's binding:profile field 2024-02-16 16:10:43 +01:00
__init__.py Base unit test framework to test new API policy enforcement 2021-03-24 21:01:13 +00:00
test_service.py Add a method to retrieve and register "rpc_workers" config knob 2023-02-08 11:48:48 +01:00