You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(network): cover DNS pins not crossing binary rules with a crate test #5916
I'm moving the e2e/rust tests onto testkit (#5281). One of them checks a security property but can't run end to end in any test environment, so I need that property covered somewhere else before the legacy test is deleted.
Description
transparent_tcp::rootless_podman_private_dns_pins_do_not_cross_binary_rules checks that a DNS pin made for one binary's network rule doesn't let a different binary reach the same address. It needs a server at a private address reached through a *.openshell.test name. Neither the Docker nor the Podman test environment can provide that, and the test never ran in CI. #5695 (PR5 of the #5297 plan) drops it from the port.
Cover the same property with a crate-level test in the network supervisor (crates/openshell-supervisor-network), where the resolver can be faked.
Legacy test: e2e/rust/tests/transparent_tcp.rs, kept until decision D is settled.
Definition of Done
Check whether an existing crate test already covers "a DNS pin from one binary's rule does not allow another binary". If one does, link it here and close this issue.
Otherwise, add a crate test that resolves a name for binary A's rule, then connects to the resolved address as binary B, and asserts the connection is denied.
Activity