Skip to content

Add embedded TUF root update mechanism #416

@jku

Description

@jku

Keeping the embedded TUF root updated (like in #414) is not required but it's useful as clients then download less on the first run.

The update itself is a little annoying to do though: how do you ensure the PR content is correct? I came up with this solution in sigstore-python (sigstore/sigstore-python#1301):

  • Makefile rule that
    • runs the client just enough to securely update the cached root
    • copies the cached root into the sources
  • Workflow that
    • executes the make rule on cron
    • files an issue if the root embedded in source changed

This has two uses:

  1. it files an issue if embedded root does not match current root
  2. gives maintainers an easy way to create a PR (or verify it)

Feel free to steal the relevant parts from sigstore-python

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions