Skip to content

Conversation

@sachaservan
Copy link
Collaborator

  • add length verification for metadata files (snapshot, targets) and target files per TUF spec 5.5.2/5.6.2
  • verify all provided hash algorithms, not just sha256 (fixes an open TODO)
  • validate signature threshold >= 1 to match tuf-js verifications in Role
  • validate required top-level roles exist (root, timestamp, snapshot, targets) to match verifications in tuf-js Role
  • Document keyid verification deviation that matches tuf-js behavior

Add validation in checkSignatures to reject threshold < 1, matching
tuf-js behavior in Role constructor.
Add validation in loadRoot to:
- Ensure all required top-level roles exist (root, timestamp, snapshot, targets)
- Reject roles with duplicate keyids

Matches tuf-js validation in Root constructor and Role constructor.
@sachaservan sachaservan requested a review from lsd-cat November 28, 2025 16:20
@lsd-cat lsd-cat merged commit 0f2c18a into main Nov 29, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants