Skip to content

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

Open
wlynch wants to merge 1 commit into
github:mainfrom
wlynch:sign-interface
Open

Refactor Sign/Verify functions into their own library.#108
wlynch wants to merge 1 commit into
github:mainfrom
wlynch:sign-interface

Conversation

@wlynch

Copy link
Copy Markdown
Contributor

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 billy@chainguard.dev

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 <billy@chainguard.dev>
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 <billy@chainguard.dev>
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 <billy@chainguard.dev>
Sign up for freeto 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

@wlynch