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.
Summary
This adds a new subcommand that mirrors cosign verify for certificate
claim verification.
Previously we relied on
git verify-commit
for commit verification.While this did check that the signature was valid and it exists in
rekor, it did not check whether the identity was what was expected,
because Git does not give controls over this via the commit signature
interface.
This command provides this functionality.
Also adds a warning to the output of the
git verify-commit
outputwarning users that that verification mechanism may not be complete.
Fixes #241
Note: e2e may break - because of the id-token restrictions requiring us to run from main, idk if this actually works yet. I'll fix it if it breaks in another PR.
Release Note
gitsign verify
subcommand for verifying certificate claims.git verify-commit
output warning about certificate claim checks.Documentation
✅