theupdateframework / theupdateframework/rust-tuf

Consistent snapshot feature is not completely implemented

Open
#147 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug :: Medium Priority :: Medium
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.