theupdateframework / theupdateframework/python-tuf
ngclient feature: Add option to only update metadata if needed
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:
- timestamp metadata validity is not checked
- cached target file validity is not checked
- 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
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Ö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