neutron/etc
Kevin Benton ebb0c5403b Stop device_owner from being set to 'network:*'
This patch adjusts the FieldCheck class in the policy engine to
allow a regex rule. It then leverages that to prevent users from
setting the device_owner field to anything that starts with
'network:' on networks which they do not own.

This policy adjustment is necessary because any ports with a
device_owner that starts with 'network:' will not have any security
group rules applied because it is assumed they are trusted network
devices (e.g. router ports, DHCP ports, etc). These security rules
include the anti-spoofing protection for DHCP, IPv6 ICMP messages,
and IP headers.

Without this policy adjustment, tenants can abuse this trust when
connected to a shared network with other tenants by setting their
VM port's device_owner field to 'network:<anything>' and hijack other
tenants' traffic via DHCP spoofing or MAC/IP spoofing.

Conflicts:
	etc/policy.json
	neutron/api/v2/attributes.py
	neutron/tests/etc/policy.json
	neutron/tests/unit/test_policy.py

Closes-Bug: #1489111
Change-Id: Ia64cf16142e0e4be44b5b0ed72c8e00792d770f9
(cherry picked from commit 959a2f28cbbfc309381ea9ffb55090da6fb9c78f)
2015-09-08 15:00:29 +00:00
..
init.d Rename to Neutron in sample init.d script 2013-07-13 16:55:55 -04:00
neutron CSCO:Tenants not to access unshared n/w profiles 2015-03-10 15:17:48 -07:00
api-paste.ini Use auth_token from keystonemiddleware 2014-07-15 18:37:04 +00:00
dhcp_agent.ini Update help message of flag 'enable_isolated_metadata' 2014-02-18 14:42:21 +01:00
fwaas_driver.ini Firewall as a Service (FWaaS) Agent 2013-08-11 10:56:37 -07:00
l3_agent.ini Allow to request metadata proxy only with redirection 2015-07-29 20:45:45 +02:00
lbaas_agent.ini LBaaS VIP doesn't work after delete and re-add 2014-05-12 01:14:58 +00:00
metadata_agent.ini Increase default metadata_workers, backlog to 4096 2014-06-08 17:57:20 +03:00
metering_agent.ini metering driver default value is different in code and config file 2014-08-26 08:41:44 +08:00
neutron.conf Eventlet green threads not released back to pool 2015-01-02 05:41:54 +00:00
policy.json Stop device_owner from being set to 'network:*' 2015-09-08 15:00:29 +00:00
rootwrap.conf Remove last parts of Quantum compatibility shim 2014-03-31 23:31:23 -07:00
services.conf Radware LBaaS driver is able to flip to a secondary backend node 2014-06-01 16:37:18 +03:00
vpn_agent.ini VPNaaS Service Driver for Cisco CSR 2014-03-05 15:08:39 -05:00