-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve API for setting metadata version of delegated roles #406
Comments
Related: #330 |
How related do you think this is to a sign command that updates the expiration and therefore the version? That's the main use-case for this command: a metadata refresh near expiration. |
I'm mostly referring to:
I think it's worth considering any proposed changes to the interface for interacting with delegations together. |
I think versions & expiration are separate from properties of delegated roles: I think I wouldn't use :/ Ahhhhh how I wish there were repository API models! |
Closing since the code base changed and this is no longer valid. Thanks for raising this 👍 |
The repo API includes functions for setting the
version
() of top-level metadata through:However, we do not yet provide any API for modifying the version of delegated targets roles. This absence of API results in go-tuf users having to implement functions which modify the version number in a file IFF that file isn't a top-level role, for example: sigstore/root-signing#417
We should provide a function to set the version number in a delegated targets role metadata, something like:
The text was updated successfully, but these errors were encountered: