theupdateframework / theupdateframework/rust-tuf

Add `clean` function to `Repository`

Open
#85 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature :: API Priority :: Low
Dominant language
Rust
Stars
198
Forks
39
Avg merge
9h 19m
Merged PRs (30d)
2

Description

Should ideally take in a reference to a Tuf struct and then use that to identify which metadata and targets are trusted or not. If something isn't trusted, purge it. Perhaps with a signature like this.

fn clean(&mut self, tuf: &Tuf) -> Result<()>

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 by locating the Repository and Tuf definitions and reviewing how metadata and targets are represented and trusted. Define the purge behavior for untrusted content and confirm the proposed clean(&mut self, tuf: &Tuf) -> Result<()> interface; done means Repository removes all metadata and targets not trusted by Tuf.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.