Skip to content

Split Updater into logical components: bundle metadata #1308

Closed
@sechkova

Description

@sechkova

I think this the right time to try splitting the Updater functionality into meaningful components -- the Metadata API does a good bit of that already but I think Updater is still going to be too large and should be split if possible (and I think it is possible, also tuf-on-a-plane has some useful ideas). Listing some Updater functionality below for inspiration:

  • implement the TUF update process in a way that is easy to follow and verify
  • keep track of currently valid set of metadata, verify new metadata
  • read/write local metadata files
  • traverse target delegation tree
  • download metadata/target files, while handling mirrors

To me tracking the currently valid set of metadata is one potentially separate thing here: an object could hold the currently valid set of metadata (and verify new metadata and maybe handle reading/writing the local metadata cache) without knowing about all the steps that the TUF spec requires or about the API that Updater wants to provide. Maybe this leads to most code being in the metadata handler but this might be worth testing -- it's also something a bit like what @trishankatdatadog did in tuf-on-a-plane (Repository vs models,writers,readers).

Originally posted by @jku in #1291 (comment)

Metadata

Metadata

Assignees

Labels

experimental-clientItems related to the development of a new client (see milestone/8 and theexperimental-client branch)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions