sweep: verify pool host keys on the driver
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
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_hostsfile for the pool, and switches the generated config toStrictHostKeyChecking yeswhen the option is set. - In the release workflows, pass the pool host keys from a new
clusterenvironment secret, for exampleCLUSTER_POOL_KNOWN_HOSTS. - Make
cluster-checkfail 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
relab/gorums のほかの issue
-
server: drain accepted Gorums work before graceful shutdown対応中かも @meling が 1 日前に担当しました。 オープンenhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
doc
難易度 3/5 半日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
-
benchkit/sweep: measure and reduce per-run orchestration overhead対応中かも @meling が 2 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
release: run smoke checks in a workflow on a self-hosted runner対応中かも @meling が 4 日前に担当しました。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
cleanup
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
prime-radiant-inc/evener#5901 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
-
kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
kyma-project/serverless#2769 ·
メンテナーはふだん 1 日以内に返信
-
ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
hexlet-basics/hexlet-basics#962 ·
メンテナーはふだん 1 日以内に返信
-
imapproxy closeForMaintenance grace timer calls clientConn.Close() before closeMaintenanceTransport対応中かも @dejanstrbac が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信