Skip to content

support updating individual metadata upon addition of target file #1048

@lukpueh

Description

@lukpueh

The repository_tool and the underlying repository_lib and roledb modules seem to live on the assumption that all roles (top-level roles and delegated targets roles) are required in memory.

In large repositories, and this is the case for the implementation of PEP 458, it might not be feasible nor necessary to load and/or have the entire repository metadata in memory at all times.

To be more specific, during ongoing operations, when adding a new target file the following operations are required:

  1. find and update relevant targets metadata, e.g. "bin-n" (i.e. target file hashes and size + version number + signature)
  2. update snapshot (i.e. targets metadata version number + own version number + signature)
  3. update timestamp (i.e. snapshot version number + own version number + signature)

The repository tool should provide API function to support above activities without requiring any other TUF metadata on disk or in memory.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions