)]}'
{"neutron/plugins/openvswitch/agent/ovs_neutron_agent.py":[{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"90101006bce606a2ea6517e7620fe8448d35a752","unresolved":false,"context_lines":[{"line_number":778,"context_line":""},{"line_number":779,"context_line":"        addresses \u003d {ip for ip in addresses"},{"line_number":780,"context_line":"                     if netaddr.IPNetwork(ip).version \u003d\u003d 4}"},{"line_number":781,"context_line":"        if \u00270.0.0.0/0\u0027 in addresses:"},{"line_number":782,"context_line":"            # don\u0027t try to install protection because a /0 prefix allows any"},{"line_number":783,"context_line":"            # address anyway and the ARP_SPA can only match on /1 or more."},{"line_number":784,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_d574179d","line":781,"updated":"2015-06-24 06:56:02.000000000","message":"does it the only possible form with /0 prefix?\n1.1.1.1/0 etc are rejected somewhere?\nanyway it\u0027s safer to use netaddr.IPNetwork(a).prefixlen\nrather than string-based comparison.","commit_id":"08a4801e19f16c3ed95737180dc63bc1c37b3dff"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"81a70b813180b58a90339143ca122f985d39ad48","unresolved":false,"context_lines":[{"line_number":781,"context_line":"        if \u00270.0.0.0/0\u0027 in addresses:"},{"line_number":782,"context_line":"            # don\u0027t try to install protection because a /0 prefix allows any"},{"line_number":783,"context_line":"            # address anyway and the ARP_SPA can only match on /1 or more."},{"line_number":784,"context_line":"            return"},{"line_number":785,"context_line":""},{"line_number":786,"context_line":"        bridge.install_arp_spoofing_protection(port\u003dvif.ofport,"},{"line_number":787,"context_line":"                                               ip_addresses\u003daddresses)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_6c41ce62","line":784,"updated":"2015-06-24 00:48:07.000000000","message":"This will cause a black loop on arp spoofing. So I think we should avoid to have it. If users do this kind of address pair,  they should resort to port_security extension.","commit_id":"08a4801e19f16c3ed95737180dc63bc1c37b3dff"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"162bf5c31b4ea49bf50ebff46ab22b3f486f6aaf","unresolved":false,"context_lines":[{"line_number":781,"context_line":"        if \u00270.0.0.0/0\u0027 in addresses:"},{"line_number":782,"context_line":"            # don\u0027t try to install protection because a /0 prefix allows any"},{"line_number":783,"context_line":"            # address anyway and the ARP_SPA can only match on /1 or more."},{"line_number":784,"context_line":"            return"},{"line_number":785,"context_line":""},{"line_number":786,"context_line":"        bridge.install_arp_spoofing_protection(port\u003dvif.ofport,"},{"line_number":787,"context_line":"                                               ip_addresses\u003daddresses)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_ae9a6060","line":784,"in_reply_to":"fa32b979_6c41ce62","updated":"2015-06-24 08:33:23.000000000","message":"What is a black loop?","commit_id":"08a4801e19f16c3ed95737180dc63bc1c37b3dff"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"103d9c9c261c092372906b59ca4d3fb473a680d1","unresolved":false,"context_lines":[{"line_number":781,"context_line":"        if \u00270.0.0.0/0\u0027 in addresses:"},{"line_number":782,"context_line":"            # don\u0027t try to install protection because a /0 prefix allows any"},{"line_number":783,"context_line":"            # address anyway and the ARP_SPA can only match on /1 or more."},{"line_number":784,"context_line":"            return"},{"line_number":785,"context_line":""},{"line_number":786,"context_line":"        bridge.install_arp_spoofing_protection(port\u003dvif.ofport,"},{"line_number":787,"context_line":"                                               ip_addresses\u003daddresses)"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa32b979_8493bb5a","line":784,"in_reply_to":"fa32b979_ae9a6060","updated":"2015-06-24 09:22:25.000000000","message":"any user can easily disable the arp spoofing by using a 0.0.0.0/0 in address pair, right?","commit_id":"08a4801e19f16c3ed95737180dc63bc1c37b3dff"},{"author":{"_account_id":6854,"name":"YAMAMOTO Takashi","email":"yamamoto@midokura.com","username":"yamamoto"},"change_message_id":"4a15079bb00c395cefc2832e54376cb9c15f1d4c","unresolved":false,"context_lines":[{"line_number":778,"context_line":""},{"line_number":779,"context_line":"        addresses \u003d {ip for ip in addresses"},{"line_number":780,"context_line":"                     if netaddr.IPNetwork(ip).version \u003d\u003d 4}"},{"line_number":781,"context_line":"        if [ip for ip in addresses if netaddr.IPNetwork(ip).prefixlen \u003d\u003d 0]:"},{"line_number":782,"context_line":"            # don\u0027t try to install protection because a /0 prefix allows any"},{"line_number":783,"context_line":"            # address anyway and the ARP_SPA can only match on /1 or more."},{"line_number":784,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_25842609","line":781,"updated":"2015-06-24 11:36:08.000000000","message":"any(netaddr.IPNetwork(ip).prefixlen \u003d\u003d 0 for ip in addresses)","commit_id":"e719c827deea8e47bcf832ac52e549c683f14bb0"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"c00cd5ba34c3c7c01329d227174241684c21e550","unresolved":false,"context_lines":[{"line_number":781,"context_line":"        if [ip for ip in addresses if netaddr.IPNetwork(ip).prefixlen \u003d\u003d 0]:"},{"line_number":782,"context_line":"            # don\u0027t try to install protection because a /0 prefix allows any"},{"line_number":783,"context_line":"            # address anyway and the ARP_SPA can only match on /1 or more."},{"line_number":784,"context_line":"            return"},{"line_number":785,"context_line":""},{"line_number":786,"context_line":"        bridge.install_arp_spoofing_protection(port\u003dvif.ofport,"},{"line_number":787,"context_line":"                                               ip_addresses\u003daddresses)"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_e4b647db","line":784,"updated":"2015-06-24 09:23:47.000000000","message":"This will allow users to disable arp_spoofing by insert 0.0.0.0/0 in address pair, right?","commit_id":"e719c827deea8e47bcf832ac52e549c683f14bb0"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"4ec8ad97339dac71562b57cba48141156d81d5d8","unresolved":false,"context_lines":[{"line_number":781,"context_line":"        if [ip for ip in addresses if netaddr.IPNetwork(ip).prefixlen \u003d\u003d 0]:"},{"line_number":782,"context_line":"            # don\u0027t try to install protection because a /0 prefix allows any"},{"line_number":783,"context_line":"            # address anyway and the ARP_SPA can only match on /1 or more."},{"line_number":784,"context_line":"            return"},{"line_number":785,"context_line":""},{"line_number":786,"context_line":"        bridge.install_arp_spoofing_protection(port\u003dvif.ofport,"},{"line_number":787,"context_line":"                                               ip_addresses\u003daddresses)"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_fa090296","line":784,"in_reply_to":"fa32b979_ba593aff","updated":"2015-06-24 10:00:17.000000000","message":"No, allowed_address_pairs breaks the protection whether or not they use /0. They could just use two /1 entries and produce the same effect. ARP spoofing does not protect you if the network owner wants to allow allowed_address_pairs.\n\nARP spoofing was added to make sure you couldn\u0027t spoof on networks that don\u0027t belong to you (shared networks).","commit_id":"e719c827deea8e47bcf832ac52e549c683f14bb0"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"f58e366776ac364b46b0a61d4353095c569b1971","unresolved":false,"context_lines":[{"line_number":781,"context_line":"        if [ip for ip in addresses if netaddr.IPNetwork(ip).prefixlen \u003d\u003d 0]:"},{"line_number":782,"context_line":"            # don\u0027t try to install protection because a /0 prefix allows any"},{"line_number":783,"context_line":"            # address anyway and the ARP_SPA can only match on /1 or more."},{"line_number":784,"context_line":"            return"},{"line_number":785,"context_line":""},{"line_number":786,"context_line":"        bridge.install_arp_spoofing_protection(port\u003dvif.ofport,"},{"line_number":787,"context_line":"                                               ip_addresses\u003daddresses)"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_ba593aff","line":784,"in_reply_to":"fa32b979_e4608737","updated":"2015-06-24 09:53:44.000000000","message":"the allowed_address pairs are this: \"create\\update_port:allowed_address_pairs\": \"rule:admin_or_network_owner\",, which allowed tenant to change the address pairs any way. If we allows to the 0.0.0.0/0 to escape the arp spoofing, it will cause a securty loop.\n\nI think to fix it, we should add filter on server side to prevent the 0.0.0.0/0 in address pair by default. also we can add a flag in neutron.conf to enable it if cloud admin wants it.","commit_id":"e719c827deea8e47bcf832ac52e549c683f14bb0"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"1177706e72fec37344578997fcc2622cfdd76e4e","unresolved":false,"context_lines":[{"line_number":781,"context_line":"        if [ip for ip in addresses if netaddr.IPNetwork(ip).prefixlen \u003d\u003d 0]:"},{"line_number":782,"context_line":"            # don\u0027t try to install protection because a /0 prefix allows any"},{"line_number":783,"context_line":"            # address anyway and the ARP_SPA can only match on /1 or more."},{"line_number":784,"context_line":"            return"},{"line_number":785,"context_line":""},{"line_number":786,"context_line":"        bridge.install_arp_spoofing_protection(port\u003dvif.ofport,"},{"line_number":787,"context_line":"                                               ip_addresses\u003daddresses)"}],"source_content_type":"text/x-python","patch_set":2,"id":"fa32b979_e4608737","line":784,"in_reply_to":"fa32b979_e4b647db","updated":"2015-06-24 09:25:58.000000000","message":"yes, that\u0027s what a 0.0.0.0/0 rule would do anyway. The only reason we can\u0027t let it go through is because OVS doesn\u0027t support a /0 prefix on those flows.","commit_id":"e719c827deea8e47bcf832ac52e549c683f14bb0"},{"author":{"_account_id":2874,"name":"yong sheng gong","email":"gong.yongsheng@99cloud.net","username":"gongysh"},"change_message_id":"18991785245e28d870f65a9c538260c269f72630","unresolved":false,"context_lines":[{"line_number":780,"context_line":"                     if netaddr.IPNetwork(ip).version \u003d\u003d 4}"},{"line_number":781,"context_line":"        if any(netaddr.IPNetwork(ip).prefixlen \u003d\u003d 0 for ip in addresses):"},{"line_number":782,"context_line":"            # don\u0027t try to install protection because a /0 prefix allows any"},{"line_number":783,"context_line":"            # address anyway and the ARP_SPA can only match on /1 or more."},{"line_number":784,"context_line":"            return"},{"line_number":785,"context_line":""},{"line_number":786,"context_line":"        bridge.install_arp_spoofing_protection(port\u003dvif.ofport,"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa32b979_7f97faeb","line":783,"updated":"2015-06-25 02:24:52.000000000","message":"At least to leave a warning here?","commit_id":"896188e5ddc3eb4f456fe1320f5025f8dff990e4"},{"author":{"_account_id":7787,"name":"Kevin Benton","email":"kevin@benton.pub","username":"blak111"},"change_message_id":"97a5a823d9e7df382c8f22a0dd6c52cacba61c03","unresolved":false,"context_lines":[{"line_number":780,"context_line":"                     if netaddr.IPNetwork(ip).version \u003d\u003d 4}"},{"line_number":781,"context_line":"        if any(netaddr.IPNetwork(ip).prefixlen \u003d\u003d 0 for ip in addresses):"},{"line_number":782,"context_line":"            # don\u0027t try to install protection because a /0 prefix allows any"},{"line_number":783,"context_line":"            # address anyway and the ARP_SPA can only match on /1 or more."},{"line_number":784,"context_line":"            return"},{"line_number":785,"context_line":""},{"line_number":786,"context_line":"        bridge.install_arp_spoofing_protection(port\u003dvif.ofport,"}],"source_content_type":"text/x-python","patch_set":3,"id":"fa32b979_9e574059","line":783,"in_reply_to":"fa32b979_7f97faeb","updated":"2015-06-25 15:58:43.000000000","message":"No, it\u0027s not a warning condition. It\u0027s behaving with the same outcome if it had been able to install an allow rule for every IP followed by a block rule that doesn\u0027t do anything.","commit_id":"896188e5ddc3eb4f456fe1320f5025f8dff990e4"}]}
