test(network): cover DNS pins not crossing binary rules with a crate test

未关闭
#5,916 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
62/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
rust

调研方向

Start by reading the legacy test e2e/rust/tests/transparent_tcp.rs (the rootless_podman_private_dns_pins_do_not_cross_binary_rules case) to see exactly what property it asserts, then grep crates/openshell-supervisor-network for existing resolver fakes and DNS-pin tests before writing anything. If an existing test already covers the pin-not-crossing-binaries case, link it and close; otherwise add a crate test that resolves a name for binary A's rule, connects to that address as binary B, and asserts denial. Done is that test passing in the crate's own suite.

由索引模型根据 Issue 内容生成。

描述

topic:testing

User Story

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.

Context

  • Decision D in the #5297 plan proposes this.
  • 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.
主要语言
Rust
星标
21.5k
派生
2.1k
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NVIDIA/OpenShell 的其他 Issue

查看 NVIDIA/OpenShell 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。