-
Notifications
You must be signed in to change notification settings - Fork 556
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: fix typo that caused attestation verification failure #2199
Conversation
Signed-off-by: Asra Ali <asraa@google.com>
@cpanato this is a pretty bug behavior bug in cosign 1.11. May be worth a patch release. @nkreiger @bobcallaway PTAL |
Codecov Report
@@ Coverage Diff @@
## main #2199 +/- ##
=======================================
Coverage 26.69% 26.69%
=======================================
Files 131 131
Lines 7690 7690
=======================================
Hits 2053 2053
Misses 5376 5376
Partials 261 261
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed, we should update and release this ASAP
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have verified that this fixes the reproducer from #2197
looks good, my bad I'll never live that one down... any reason why the e2e tests didn't catch it? |
ok, will prepare the 1.11.1 for today |
No worries @nkreiger, it was on all of us :) I just checked the e2e tests and it seems like there's just a SignCmd tlog test. I'll try to do a follow-up e2e test with an attestation. |
Looks like there's an attestation test here: Line 295 in c61504d
Not sure why it didn't catch this... Is it only for tlog cases? |
Ah - I get it now. That used to be the same code path (same HashedRekord type stored in rekor for both versions), now it's separate so we're missing the verification test for the new code path. |
Hmm I think attestverify is never called with tlog explicit enabled in the tests. |
Yep - we have sign/verify with and without tlog, and attest/verify without tlog. The tlog part used to be shared code, but is separated now. |
Signed-off-by: Asra Ali asraa@google.com
Summary
Release Note
Documentation
Fixes #2197
See #2118