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

Fix offline verification marshalling, add e2e tests. #330

Merged
merged 1 commit into from Jun 6, 2023

Conversation

wlynch
Copy link
Member

@wlynch wlynch commented Jun 5, 2023

Summary

e2e verification was failing because we were using the wrong body to recreate the tlog message.

To test this, this also adds an e2e test that verifies a real commit only using offline verification. This is a bit brittle at the moment because it will mutate the local TUF client state, but this will hopefully be improved once the TUF client changes land in sigstore/client-go.

Because of how we're using the Search API, this didn't surface immediately since the Search fallback still picked up the certificate used to sign.

Part of #219

Release Note

Used correct body foroffline verification.

Documentation

e2e verification was failing because we were using the wrong body to
recreate the tlog message.

To test this, this also adds an e2e test that verifies a real commit
only using offline verification. This is a bit brittle at the moment
because it will mutate the local TUF client state, but this will
hopefully be improved once the TUF client changes land in
sigstore/client-go.

Signed-off-by: Billy Lynch <billy@chainguard.dev>
@cpanato cpanato merged commit 4bda12e into sigstore:main Jun 6, 2023
8 checks passed
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.

None yet

3 participants