-
Notifications
You must be signed in to change notification settings - Fork 270
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
Metadata API: Add Key.from_securesystemslib_key()? #1458
Comments
Very good point. Also making it clear in the function name itself whether you are also getting private or just public key. |
I'd like to give it a try, pls :) |
actually |
I've been playing with repository code / metadata creation and this is a mistake that's bit too easy to make:
This works just fine... and results in public metadata that includes your private key (TUF key doesn't handle the private key of course but we allow unrecognised fields in the format). Oops.
We should probably have a function for this use case: The securesystemslib key format might be opaque to us (can't be 100% sure what's in there) but I think in this case making some assumptions about that is better than allowing the above to happen
So something like
?
The text was updated successfully, but these errors were encountered: