Require admin context for interfaces on ext network
Currently any user can attach an interface to a neutron
external network, if the neutron plugin supports the port
binding extension.
In this case, nova will create neutron ports using the admin
client, thus bypassing neutron authZ checks for creating ports
on external networks.
This patch adds a check in nova to verify the API request has an
admin context when a request for an interface is made on a
neutron external network.
Reviewed: https:/ /review. openstack. org/85189 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=7d1b4117fda 7709307a35e5662 5cfa7709a6b795
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7d1b4117fda7709 307a35e56625cfa 7709a6b795
Author: Salvatore Orlando <email address hidden>
Date: Thu Apr 3 14:54:11 2014 -0700
Require admin context for interfaces on ext network
Currently any user can attach an interface to a neutron
external network, if the neutron plugin supports the port
binding extension.
In this case, nova will create neutron ports using the admin
client, thus bypassing neutron authZ checks for creating ports
on external networks.
This patch adds a check in nova to verify the API request has an
admin context when a request for an interface is made on a
neutron external network.
Change-Id: I5fb0bdcbf19eb8 2746ea3b192c1f6 5899bfb3c0b
Closes-Bug: 1284718