Change in-toto-sign supported key file formats #654
Merged
+87
−197
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
in-toto-sign
to expect pem/pkcs8 signing keys andpem/subjectPublicKeyInfo verification keys passed with the
--key
argument.
--key-type
is now obsolete and removed.Otherwise the behavior of in-toto-sign remains the same.
This is part of a series of patches to prepare for removal of legacy
securesystemslib interfaces and key file formats.
Change details
Unlike, in-toto-verify (#652) and in-toto-run/record (#651, #649), where
new arguments were introduced for the new formats, and deprecation
warnings were added to the old arguments, in-toto-sign is changed
directly.
This is because, the main use cases for in-toto-sign have been:
Given that the layout-web-tool is currently offline for revision
(in-toto/layout-web-tool#70) and in-toto
maintainers should be easily able to adapt, a direct change is not
expected to disrupt anyone's operations.
IMO this can even be released as part of a minor version bump.
Test change details
using demo metadata)
--key-type
in cli invocations--key-type
-specific tests