test(continuity): bring back the additional-CA removal checks as a disruption

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

还没有人认领这个 Issue。

评估

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

调研方向

Read the two dropped checks in e2e/rust/tests/additional_ca.rs first, then decision D and E in the #5297 plan comment for what was intentionally left out. Find the runner's disruption registry and an existing disruption installed under /var/lib/openshell-qualification/disruptions/ to copy its shape, and look at an existing continuity scenario to see how seed and verify are written. Done means a remove-additional-ca entry in the registry, an installer that strips the CA from the gateway config and restarts it, and a scenario whose seed proves trust and whose verify proves it is gone — while still passing under the other disruptions.

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

描述

topic:testing

User Story

I'm moving the e2e/rust tests onto testkit (#5281). The port drops two additional_ca checks because they restart the gateway and edit its host files, which ordinary tests must not do. I want a tracked way to bring that coverage back if CA rotation becomes a priority.

Description

e2e/rust/tests/additional_ca.rs has two checks the port drops (decision D in the #5297 plan):

  • tampering with the configured additional-CA file, then restarting the gateway;
  • removing the additional CA, then restarting the gateway, and checking that sandboxes no longer trust it.

They can come back as a continuity scenario (#3521) under a new disruption, for example remove-additional-ca. The installer stages the disruption as an executable under /var/lib/openshell-qualification/disruptions/; it removes the CA from the gateway config and restarts the gateway. seed checks that a sandbox trusts a server signed by the CA; verify checks that it doesn't any more.

Context

  • Decision D (drops) and E (how the additional-CA test gets its CA) in the #5297 plan.
  • Continuity runs every scenario under every disruption, so the new scenario must tolerate the other disruptions, and the other scenarios must tolerate this one.
  • Low priority. Not needed to delete e2e/rust.

Definition of Done

  • A remove-additional-ca disruption in the runner's registry, with an installer executable on at least one row.
  • A continuity scenario that checks trust before the disruption and its absence after.
主要语言
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 摘要。