Skip to content

Commit 1d568e3

Browse files
committed
test(network): expect hard loopback denial
Signed-off-by: John Myers <[email protected]>
1 parent 79d2123 commit 1d568e3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • crates/openshell-supervisor-network/src

‎crates/openshell-supervisor-network/src/proxy.rs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9341,7 +9341,10 @@ network_policies:
93419341
"internal forward destination must get the SSRF 403; got: {response:?}"
93429342
);
93439343
assert!(response.contains("ssrf_denied"));
9344-
assert!(response.contains("GET 127.0.0.1:80 blocked: allowed_ips check failed"));
9344+
assert!(
9345+
response.contains("GET 127.0.0.1:80 blocked: internal address"),
9346+
"loopback must use the hard internal-address denial; got: {response:?}"
9347+
);
93459348
assert_eq!(denial_stages, ["ssrf"]);
93469349
}
93479350

0 commit comments

Comments
 (0)