Skip to content

Repository.writeall() may not need to write all dirty roles #964

@lukpueh

Description

@lukpueh

Description of issue or feature request:

TUF marks roles as dirty if they are changed in roledb. This information is then used by writeall to update role metadata on disk. But not all changes in roledb require updating metadata on disk. E.g. loading a signing key does not.

Current behavior:
At least one function, i.e. load_signing_key marks a role as dirty, although it shouldn't update the corresponding metadata on disk.

Expected behavior:
Reliably track the state of the repository in memory and on disk to know if role metadata needs to be updated. Also see #958.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions