Block connector limited-broadcast targets
This commit is contained in:
@@ -78,7 +78,16 @@ class HttpFetchTests(unittest.TestCase):
|
||||
policy = outbound_http_policy(
|
||||
{"APP_ENV": "production", "GOVOPLAN_CONNECTOR_ALLOW_PRIVATE_NETWORKS": "true"}
|
||||
)
|
||||
for address in ("0.0.0.0", "169.254.169.254", "224.0.0.1", "::", "fe80::1", "ff02::1"):
|
||||
for address in (
|
||||
"0.0.0.0",
|
||||
"169.254.169.254",
|
||||
"224.0.0.1",
|
||||
"255.255.255.255",
|
||||
"::",
|
||||
"::ffff:255.255.255.255",
|
||||
"fe80::1",
|
||||
"ff02::1",
|
||||
):
|
||||
with self.subTest(address=address), patch(
|
||||
"govoplan_core.security.outbound_http.socket.getaddrinfo",
|
||||
return_value=[(2, 1, 6, "", (address, 443))],
|
||||
|
||||
Reference in New Issue
Block a user