sweep: verify pool host keys on the driver

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github-actions, go

調査の方向性

Start with generatedSSHConfig() in benchkit/cmd/sweep/driver.go and trace how sweep options reach the release workflows and cluster-check probe. Add a pool known_hosts option, pass the pool keys from the proposed cluster secret, and check the probe’s behavior for unknown or changed keys. Done means release checks reject untrusted pool keys while interactive sweeps keep their current default.

索引モデルが issue の本文から書いたものです。

説明

The driver dials the pool hosts with host-key checking turned off. generatedSSHConfig() in benchkit/cmd/sweep/driver.go writes StrictHostKeyChecking no and UserKnownHostsFile /dev/null for every host.

This matters for the release smoke gate in #449. The runner pins the host keys of the jump host and the driver, but nothing pins the pool hosts. A machine on the cluster network that can impersonate a pool host can accept the SSH session from the driver. It can then fake the -check diagnostics or the benchmark output, and a release could pass the gate on fabricated results.

Proposal

  • Add a sweep option that gives the driver a known_hosts file for the pool, and switches the generated config to StrictHostKeyChecking yes when the option is set.
  • In the release workflows, pass the pool host keys from a new cluster environment secret, for example CLUSTER_POOL_KNOWN_HOSTS.
  • Make cluster-check fail when a pool key is unknown or has changed, and test that failure in the probe.
  • Keep the current behavior as the default for interactive sweeps, unless we decide otherwise.

The change touches the SSH config that sweep generates for every user, so it is kept out of the #446/#447/#449 stack.

Raised in review of #449.

主要言語
Go
スター
149
フォーク
15
平均マージ
1日 36分
マージ済み PR(30日)
57

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

relab/gorums のほかの issue

relab/gorums の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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