Skip to content
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

Refactor Sign/Verify functions into their own library. #108

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wlynch
Copy link
Contributor

@wlynch wlynch commented Apr 22, 2022

This commit should have no change in existing behavior, but does the following:

  1. Pulls the sign/verify commands into its own package that can be invoked directly
    instead of needing to go through main.

  2. 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]

This commit should have no change in existing behavior, but does the following:

1. Pulls the sign/verify commands into its own package that can be invoked directly
	 instead of needing to go through main.

2. 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.

Signed-off-by: Billy Lynch <[email protected]>
@wlynch wlynch force-pushed the sign-interface branch from fb42e64 to 5d7d5b1 Compare May 2, 2022 20:01
wlynch added a commit to wlynch/smimecosign that referenced this pull request May 11, 2022
This forks the changes made in
github/smimesign#108 into this repo.

This was done because the replace directive was preventing go install
from functioning properly. Once the upstream PR is merged, we can
revert this change.
wlynch added a commit to wlynch/gitsign that referenced this pull request May 12, 2022
This forks the changes made in
github/smimesign#108 into this repo.

This was done because the replace directive was preventing go install
from functioning properly. Once the upstream PR is merged, we can
revert this change.
wlynch added a commit to wlynch/gitsign that referenced this pull request May 12, 2022
This forks the changes made in
github/smimesign#108 into this repo.

This was done because the replace directive was preventing go install
from functioning properly. Once the upstream PR is merged, we can
revert this change.

Signed-off-by: Billy Lynch <[email protected]>
wlynch added a commit to sigstore/gitsign that referenced this pull request May 12, 2022
This forks the changes made in
github/smimesign#108 into this repo.

This was done because the replace directive was preventing go install
from functioning properly. Once the upstream PR is merged, we can
revert this change.

Signed-off-by: Billy Lynch <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant