Bug: release tooling should quote remote command arguments
まだ誰も着手していません。
評価
調査の方向性
run_release.py から始め、python.org へのアップロードと release-manager の SSH パスに対するコマンド構築を調査します。モックした Paramiko クライアントを使用して、認証情報、トークン、ユーザー名、ステージングパスにメタ文字を含めた場合の exec_command() の出力を取得します。完了条件は、意図したステージ済みアーティファクトのコピーに対する glob 展開を維持したまま、それらの値が安全にクォートされていることです。
索引モデルが issue の本文から書いたものです。
説明
run_release.py builds remote shell command strings for release publication.
Several values are interpolated directly into those command strings, including
release credential environment values, the release tag, and remote staging paths
derived from release-manager state.
Those values are normally trusted release-process inputs, but quoting them
consistently makes the generated commands safer and more predictable when a
value contains whitespace or shell metacharacters.
Reproducer
Using mocked Paramiko clients:
- Set the python.org API credential value to contain shell metacharacters, such
asuser:key; echo unexpected. - Make the fake Sigstore issuer return a token containing shell metacharacters,
such astoken; touch /tmp/unexpected. - Run the python.org upload step and capture the command sent to
exec_command(). - The captured command includes those values unquoted in
AUTH_INFO=...and
SIGSTORE_IDENTITY_TOKEN=...assignments.
Similar mocked tests can set the release-manager SSH username to a value with a
metacharacter and observe that derived staging paths are inserted into cleanup,
copy, unzip, move, group, and permission commands without quoting.
Expected behavior
Release-tool commands should quote environment values, release arguments, and
remote filesystem paths before sending command strings to the remote shell,
while preserving intentional glob expansion for staged artifact copies.
- 主要言語
- Python
- スター
- 61
- フォーク
- 48
- 平均マージ
- 1時間 22分
- マージ済み PR(30日)
- 4
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
python/release-tools のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
python/release-tools#401 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
python/release-tools#434 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
python/release-tools#417 ·
-
bug
python/release-tools#286 · 担当者 1 名 ·
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
python/release-tools#285 ·
python/release-tools の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
learningequality/ricecooker#747 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
run-llama/llama_index#23199 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
KhronosGroup/glTF-Blender-IO#2769 ·