Refactor Sign/Verify functions into their own library. #108
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.
This commit should have no change in existing behavior, but does the following:
Pulls the sign/verify commands into its own package that can be invoked directly
instead of needing to go through main.
Refactors the certstore library (a dependency of the sign library) to separate out
the OS-dependent libraries so that any platform can safely pull in the certstore
Identity interface. Adds a register func so that this can be set dynamically in
main.
My hope is to use this to allow similar tools to reuse this to provide additional
identities and optional verification behavior. (see sigstore/cosign#865 (comment) for an example!)
Signed-off-by: Billy Lynch [email protected]