-
Notifications
You must be signed in to change notification settings - Fork 12
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
Remove conformance tests that use detached materials #173
Conversation
For sigstore#122 Signed-off-by: Zach Steindler <steiza@github.com>
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.
Good riddance!
Could it make sense to organize these into their own test file and let people explicitly include it? Could it help prevent a regression in cosign while we are transitioning it? Although "good riddance" is a pretty strong argument |
I'm OK with this, if we want to keep them around: IMO having the disabled by default and then allowing integrators to do OTOH I think this is all 100% unstandardized, so having them in the conformance suite at all isn't fantastic, especially if it's dragging down efforts to get other things added. So if |
Cosign's current conformance test integration uses sigstore-go for bundles, and for non-bundles it first assembles the detached materials into a bundle so it can use sigstore-go: https://github.com/sigstore/cosign/blob/e7667bd9d71d99aaa9ad3489241f5abe92fe0c9c/cmd/conformance/main.go#L114-L120 It's possible that after sigstore/cosign#3844 lands (which is currently a draft), we could update cosign's conformance test to exercise the detached materials case. On the other hand, the conformance detached materials support is blocking other work, like sigstore/sigstore-go#277. |
Alright, sgtm, let's go! |
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.
Have we verified that all tests here are covered by the bundle tests?
Signed-off-by: Zach Steindler <steiza@github.com>
a929c81
There is a surprising amount of subtlety here. I added a test back in that checks that the ctlog public key is correct. The other test on mismatched artifacts which should be covered by I don't think we're substantially losing coverage with this change, although the way some cases are tested are changing slightly. |
Thanks a ton @steiza! |
Summary
For #122. All the clients (including
cosign
!) are moving away from detached materials in favor of bundles.This will help unblock things like sigstore/sigstore-go#277.
Release Note
sign
andverify
from conformance test protocol; all tests usesign-bundle
andverify-bundle
.Documentation
N/Aish; already updated
docs/cli_protocol.md
as part of this pull request.