theupdateframework / theupdateframework/python-tuf

ngclient feature: Add option to only update metadata if needed

Offen
#2,225 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Python
Sterne
1.7k
Forks
304
Ø Merge
1 T. 2 Std.
Gemergte PRs (30 T.)
17

Beschreibung

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

?

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit dem verknüpften Designdokument und dem ngclient-Updater-Einstiegspunkt. Ermittle, wie ein optionaler Pfad für reine Metadaten-Updates Metadaten, die Target-Verifizierung und den Root-Ablauf möglichst ohne Netzwerkanfragen validieren könnte. Als abgeschlossen gilt die Arbeit, wenn das Verhalten und die nicht spezifikationskonformen Abwägungen klar definiert und durch geeignete Tests abgedeckt sind.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
security
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.