CI/CD should warn about using Rust versions with known vulnerabilities

オープン
#950 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust
領域
ci-cd, security

調査の方向性

引用されている Rust の使用方法を理解するために rustls-mio/tests/common/mod.rs を読み、その後、リポジトリの 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時間
マージ済み PR(30日)
46

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rustls/rustls のほかの issue

rustls/rustls の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。