yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #95234
[Bug 2095323] [NEW] ADMIN_OR_NET_OWNER_{MEMBER|READER} rules adds "network:tenant_id" to the final dict returned from the API
Public bug reported:
I spotted it while working on other bug and fix
https://review.opendev.org/c/openstack/neutron/+/938135 - when
ADMIN_OR_NET_OWNER_READER rule is used by the policy engine, it calls
neutron.policy.OwnerCheck rule and that rule is adding this new field to
the target dict in line
https://github.com/openstack/neutron/blob/7810cbd3b2213771ff7eefba3b4c3840d9bf7939/neutron/policy.py#L356
This then results in the field "network:tenant_id" to be included in the
final port's object returned through the API.
** Affects: neutron
Importance: Medium
Assignee: Slawek Kaplonski (slaweq)
Status: Confirmed
** Tags: 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/2095323
Title:
ADMIN_OR_NET_OWNER_{MEMBER|READER} rules adds "network:tenant_id" to
the final dict returned from the API
Status in neutron:
Confirmed
Bug description:
I spotted it while working on other bug and fix
https://review.opendev.org/c/openstack/neutron/+/938135 - when
ADMIN_OR_NET_OWNER_READER rule is used by the policy engine, it calls
neutron.policy.OwnerCheck rule and that rule is adding this new field
to the target dict in line
https://github.com/openstack/neutron/blob/7810cbd3b2213771ff7eefba3b4c3840d9bf7939/neutron/policy.py#L356
This then results in the field "network:tenant_id" to be included in
the final port's object returned through the API.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/2095323/+subscriptions