Go to file
Rodolfo Alonso Hernandez d3905264b7 Filter by owner SGs when retrieving the SG rules
Retrieving the SG rules now is used the admin context. This allows to
get all possible rules, independently of the user calling. The filters
passed and the RBAC policies filter those results, returning only:
- The SG rules belonging to the user.
- The SG rules belonging to a SG owned by the user.

However, if the SG list is too long, the query can take a lot of time.
Instead of this, the filtering is done in the DB query. If no filters
are passed to "get_security_group_rules" and the context is not the
admin context, only the rules specified in the first paragraph will
be retrieved.

Because overwriting the method "get_objects" is too complex, an
intermediate query is done to retrieve the SG rule IDs. Those IDs
will be used as a filter in the "get_objects" call.

Conflicts:
      neutron/db/securitygroups_db.py
      neutron/objects/securitygroup.py

Closes-Bug: #1863201

Change-Id: I25d3da929f8d0b6ee15d7b90ec59b9d58a4ae6a5
(cherry picked from commit d874c46bff)
2020-04-14 18:37:12 +00:00
2016-06-28 22:46:19 +02:00
2020-01-29 13:08:59 +00:00
2019-04-19 19:38:27 +00:00
2016-10-17 17:06:19 +05:30
2019-09-26 09:44:06 +00:00
2014-05-16 13:40:04 -04:00
2017-06-13 19:26:49 +00:00
2017-08-31 16:44:51 +02:00
2019-09-15 01:39:25 +00:00
2017-03-04 11:19:58 +00:00
2019-12-12 11:57:04 +01:00

Team and repository tags

image

Welcome!

To learn more about neutron:

Get in touch via email. Use [Neutron] in your subject.

To learn how to contribute:

CONTRIBUTING.rst

Description
OpenStack Networking (Neutron)
Readme 1 GiB
Languages
Python 99.7%
Shell 0.3%