Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

ngclient feature: Add option to only update metadata if needed

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

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
security

調査の方向性

リンクされた設計ドキュメントと ngclient Updater のエントリポイントから始めます。可能な場合にネットワークリクエストなしで、オプションのメタデータのみの更新パスがメタデータ、target の検証、root の有効期限を検証できる方法を明らかにします。完了の条件は、動作と仕様非準拠のトレードオフが明確に定義され、適切なテストでカバーされていることです。

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

説明

This is not full thought out but I'm filing so it's not forgotten.

https://docs.google.com/document/d/1QWBvpwYxOy9njAmd8vpizNQpPti9rd5ugVhji0r3T4c

Sigstore client wants to use TUF to download files but wants to avoid the two mandatory requests (root N+1, timestamp) on startup if it's not necessary. This seems to be a totally valid feature request: if this is feasible we could offer that as an option.

The WIP sigstore client checks the timestamp expiry before creating an Updater: if timestamp is not expired, the client then decides update is not needed. There could be some issues with this:

  1. timestamp metadata validity is not checked
  2. cached target file validity is not checked
  3. root expiry is not checked

these may be partly theoretical worries but it still feels like a hack...

Maybe it is possible to

  • offer a (non-spec-compliant) Updater option that verifies
    • that metadata is valid
    • that targets are verified by the metadata
    • without hitting the network if possible
  • while still keeping updater implementation readable

?

主要言語
Python
スター
1.7k
フォーク
304
平均マージ
9時間 25分
マージ済み PR(30日)
14

環境構築

はじめの一歩

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

theupdateframework/python-tuf のほかの issue

theupdateframework/python-tuf の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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