theupdateframework / theupdateframework/rust-tuf
Consistent snapshot feature is not completely implemented
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 198
- Forks
- 39
- Avg merge
- 9h 19m
- Merged PRs (30d)
- 2
Description
I noticed that inside Client::_fetch_target during the section we're updating the metadata, we're using MetadataVersion::None when getting the local target metadata, but using MetadataVersion::Hash(...) when getting the remote target metadata. Is this on purpose? If so, can you add a note to make it clear we're being inconsistent?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/client.rs at Client::_fetch_target, especially the metadata update section around lines 497-512. Compare the local MetadataVersion::None lookup with the remote MetadataVersion::Hash(...) lookup, determine whether the difference is intentional, and document the rationale or clarify the implementation as appropriate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- security
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100