← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1674517] [NEW] pecan missing custom tenant_id policy project_id matching

 

Public bug reported:

The pecan code is missing these two chunks of code to support filtering
project_id based on tenant_id policies:

https://github.com/openstack/neutron/blob/cd947ac4d05a5301fb3bf704b0dd1ca39fd7e541/neutron/api/v2/base.py#L173-L179
https://github.com/openstack/neutron/blob/cd947ac4d05a5301fb3bf704b0dd1ca39fd7e541/neutron/api/v2/base.py#L193-L197


They need to be added in here:

https://github.com/openstack/neutron/blob/cd947ac4d05a5301fb3bf704b0dd1ca39fd7e541/neutron/pecan_wsgi/hooks/policy_enforcement.py#L225

** Affects: neutron
     Importance: Medium
         Status: Confirmed


** Tags: api low-hanging-fruit

** Tags added: api

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1674517

Title:
  pecan missing custom tenant_id policy project_id matching

Status in neutron:
  Confirmed

Bug description:
  The pecan code is missing these two chunks of code to support
  filtering project_id based on tenant_id policies:

  https://github.com/openstack/neutron/blob/cd947ac4d05a5301fb3bf704b0dd1ca39fd7e541/neutron/api/v2/base.py#L173-L179
  https://github.com/openstack/neutron/blob/cd947ac4d05a5301fb3bf704b0dd1ca39fd7e541/neutron/api/v2/base.py#L193-L197

  
  They need to be added in here:

  https://github.com/openstack/neutron/blob/cd947ac4d05a5301fb3bf704b0dd1ca39fd7e541/neutron/pecan_wsgi/hooks/policy_enforcement.py#L225

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1674517/+subscriptions


Follow ups