Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

✨ Implement cosign verification #54

Merged
merged 3 commits into from
Apr 12, 2022
Merged

✨ Implement cosign verification #54

merged 3 commits into from
Apr 12, 2022

Conversation

wilsonehusin
Copy link
Member

@wilsonehusin wilsonehusin commented Apr 12, 2022

What this PR does / Why we need it

Implement cosign verification (i.e. cosign verify-blob) for checksums.txt.

Upon implementation and discovery, I found that implementing verification to checksums.txt seems to be the most practical as opposed to allowing multiple mechanisms of verification (by default, Goreleaser also signs only checksum file).

We should make it easy for people to verify signature by themselves though. Since the data of certificate and signature is already stored in the lockfile anyway, I think we should do something like bindl export for the metadata in lockfile (tracked #55).

Which issue(s) this PR fixes

Fixes #15

Also add --bootstrap flag for bindl get to bootstrap cosign
Functional test (program/cosign_test.go) requires cosign binary to exist
as it would not be able to bootstrap cosign through test binary. This
can be eliminated if we don't shell out to run cosign bootstrap, but it
requires solving dependency tree which would otherwise cause a
dependency loop between command/ and program/, _sigh_.
@wilsonehusin wilsonehusin merged commit 600c7e5 into main Apr 12, 2022
@wilsonehusin wilsonehusin deleted the cosign branch April 12, 2022 06:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verifying signatures
1 participant