neutron-lib/neutron_lib
yatinkarel 0b9d8e399f Enforce policy for qos_policy_id attribute
Currently while updating 'qos_policy_id', authorization policies
are not enforced and as a result it can be set or unset over
port/network/fip by an unauthorized user.

This patch fixes it by setting 'enforce_policy' to True
for this attribute.

Closes-Bug: #1957175
Change-Id: Ieee1ca092e572ad4696105962fbc6de675454657
(cherry picked from commit cf54989be2)
Conflicts: neutron_lib/api/definitions/qos_fip.py
(cherry picked from commit f7c009ba24)
2022-01-25 16:04:27 +00:00
..
agent Rehome abstract class LinuxInterfaceDriver definition 2020-05-22 07:23:36 +00:00
api Enforce policy for qos_policy_id attribute 2022-01-25 16:04:27 +00:00
callbacks rehome trunk related callback resource names 2019-02-06 09:31:05 -07:00
db Log time of the apply_func only if it took more than 0.1 second 2020-08-19 13:25:02 +02:00
exceptions Merge "New exception QosPlacementAllocationConflict" 2020-09-04 00:13:04 +00:00
hacking Switch to hacking 2.0 2020-03-17 15:31:31 +09:00
locale/zh_CN/LC_MESSAGES Imported Translations from Zanata 2018-03-01 06:47:27 +00:00
objects Remove library "six" 2020-01-22 13:16:45 +00:00
placement remove rc from allocation dict if value is 0 2020-09-22 07:45:48 +00:00
plugins Add "supported_extensions" method to MechanismDriver 2020-07-28 12:13:16 +00:00
policy Add policy module to neutron-lib 2019-02-19 09:41:39 +01:00
services Extend qos DriverBase with validate_rule_for_port() 2020-02-05 14:21:10 +01:00
tests remove rc from allocation dict if value is 0 2020-09-22 07:45:48 +00:00
utils Migrate timecost decorator to neutron-lib 2020-05-27 15:09:09 -04:00
__init__.py Remove library "six" 2020-01-22 13:16:45 +00:00
_i18n.py Update the documentation link for doc migration 2017-07-20 15:46:41 +00:00
constants.py Merge "New api-def: port-numa-affinity-policy" 2020-08-05 20:04:18 +00:00
context.py Revert "Remove warning message when using old and new engine facade" 2020-03-09 10:14:50 +00:00
fixture.py Use "unittest.mock" library and drop "mock" installation 2020-03-13 12:10:36 +00:00
rpc.py Catch only MessageDeliveryFailure exceptions 2019-02-21 15:31:14 -05:00
version.py Setup for devref documentation 2015-12-07 18:50:07 +00:00
worker.py Add setproctitle support to the workers module 2019-02-18 13:38:48 -07:00