neutron-lib/neutron_lib/db
Slawek Kaplonski 8ccdecc7d1 Add is_service_role property to the context class
As we are moving to the new S-RBAC policies, we want to use "service"
role for all service to service communication. See [1] for details.

This require from Context class property similar to old "is_advsvc" but
with new naming convention and using new policy rule.

This patch adds this new property together with all required policies
and rules.
For now "ContextBase.is_advsvc" property will return True if one of the
advsvc OR service_role will be True to make it working in the same way
with both old and new policies but once we will get rid of the old
policies we should also remove is_advsvc property from the ContextBase
class.

[1] https://governance.openstack.org/tc/goals/selected/consistent-and-secure-rbac.html#phase-2

Change-Id: Ic401db8b4e2745234e61fe2c05afd5b4ab719a03
2023-06-30 15:56:20 +02:00
..
__init__.py Add pagination helpers 2016-03-18 21:41:41 -04:00
api.py Drop "__autocommit=False" from context manager 2023-04-24 11:41:44 +02:00
constants.py rehome availability zone API def 2017-08-04 10:51:43 -06:00
model_base.py New ``network-ha`` API definition 2023-05-08 08:05:53 +00:00
model_query.py Add a "GROUP BY" clause on queries with RBAC entries 2023-05-28 17:49:07 +02:00
quota_api.py Add "get_workers" method to "QuotaDriverAPI" class 2022-01-16 13:12:56 +00:00
resource_extend.py Fix pep8 job issues with pylint==2.15.0 2022-08-31 15:29:48 +02:00
sqlalchemytypes.py Set "cache_ok=True" in all "TypeDecorator" derived classes 2021-09-08 13:28:39 +00:00
standard_attr.py Fix pep8 errors with pytlint v2.16.0 2023-02-02 10:35:33 +01:00
utils.py Add is_service_role property to the context class 2023-06-30 15:56:20 +02:00