CI/CD should warn about using Rust versions with known vulnerabilities
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
閱讀 rustls-mio/tests/common/mod.rs 以了解所引用的 Rust 用法,然後檢查儲存庫的 CI/CD 設定和 toolchain 檢查。確定管線目前如何選取 Rust 版本,並使完成條件表示易受攻擊的 Rust 版本會產生警告,除非明確覆寫該選擇。
由索引模型根據 Issue 內容生成。
描述
In rustls-mio/tests/common/mod.rs we have:
impl Drop for DeleteFilesOnDrop {
fn drop(&mut self) {
fs::remove_dir_all(&self.path).unwrap();
}
}
I'm a bit alarmed that our CI/CD infrastructure doesn't complain about us using Rust < 1.58.1.
This usage is in test-only code and we don't meet the prerequisites (AFAICT) for it to actually be a security problem. However, I would expect that by default we'd get a warning for using the MSRV version that we'd have to explicitly override. It seems like CI/CD isn't set up to do this, but it should be, especially for the case where a security issue in the the Rust toolchain might impact the security/validity of the build.
- 主要語言
- Rust
- 星號
- 7.7k
- 分支
- 947
- 平均合併
- 3 天 11 小時
- 30 天內合併 PR
- 46
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
rustls/rustls 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 70/100
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 22/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 55/100
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 12/100
rustls/rustls#3409 · 1 則留言 · 1 個 reaction ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 48/100
維護者通常 1 天內回覆
相似的 Issue
-
ライブラリを追加未關閉priority middle
難度 1/5 1 小時以內 新手友好度 62/100
KATO-Hiro/AtCoderClans#13015 ·
維護者通常 1 天內回覆
-
needs-review
難度 2/5 1-3 小時 新手友好度 70/100
UCS-Care-Group/mailcraft#1429 ·
維護者通常 1 天內回覆
-
priority: medium ready
難度 1/5 1 小時以內 新手友好度 88/100
TusanHomichi/PSIV#646 ·
維護者通常 1 天內回覆
-
area:tui bug P1
難度 2/5 1-3 小時 新手友好度 62/100
agent-of-empires/agent-of-empires#5705 · 1 則留言 ·
維護者通常 1 天內回覆
-
bug lab rust-mcp
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆