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

Add COSIGN_EXPERIMENTAL=1 flag to the verification example #1588

Merged
merged 1 commit into from Nov 14, 2022

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Nov 14, 2022

It seems that verify-blob with certificates (without chain) only works in experimental mode since some version.

If you disable experimental mode, you will get an error (Cosign v1.13.1):

$ cosign verify-blob --certificate checksums.txt.pem --signature checksums.txt.keyless.sig --certificate-github-workflow-repository=terraform-linters/tflint checksums.txt
Error: verifying blob [checksums.txt]: certificate expired before signatures were entered in log: 2022-10-25T17:43:47Z is before 2022-11-14T14:28:18Z
main.go:62: error during command execution: verifying blob [checksums.txt]: certificate expired before signatures were entered in log: 2022-10-25T17:43:47Z is before 2022-11-14T14:28:18Z

Enabling experimental mode works fine.

$ COSIGN_EXPERIMENTAL=1 cosign verify-blob --certificate checksums.txt.pem --signature checksums.txt.keyless.sig --certificate-github-workflow-repository=terraform-linters/tflint checksums.txt
tlog entry verified with uuid: 7e99747f805286e8148882307933c24cea2dfb6fbedf4de03fcdc57baf059e77 index: 5850177
Verified OK

This behavior seems to have changed with this commit sigstore/cosign@80b79ed
I'm not sure if this was intended, but at least this pull request documents it so I can assume it is.
sigstore/cosign#2254

Follow this to update our documentation and tell you to enable experimental mode.

@wata727 wata727 merged commit cd886b4 into master Nov 14, 2022
@wata727 wata727 deleted the add_cosign_experimental_flag branch November 14, 2022 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant