-
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
Add opt-in support for tests that include providing a custom trust root #101
Conversation
This allows us to have additional test cases that weren't previously possible when assuming the public-good trust root. See also sigstore/sigstore-conformance#101.
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.
Looks good overall, just one minor nit. Do any clients support this yet? It would be nice to see the new tests exercised by the selftest :)
sigstore-python doesn't yet, not sure about the others. |
This allows us to have additional test cases that weren't previously possible when assuming the public-good trust root. See also sigstore/sigstore-conformance#101.
The just-released https://github.com/github/sigstore-go does! As of https://github.com/github/sigstore-go/pull/4. |
Awesome! That gives us the design impetus to copy |
I think we can plumb this into Java relatively painlessly. |
5c46013
to
efdaf92
Compare
Signed-off-by: Zach Steindler <[email protected]>
Previously the tests assumed the public-good trust root, but supplying a custom trust root lets us exercise additional failure paths, without having to compromise the public-good service. Signed-off-by: Zach Steindler <[email protected]>
I initially thought it was needed, but it didn't end up getting used! Signed-off-by: Zach Steindler <[email protected]>
Signed-off-by: Zach Steindler <[email protected]>
As requested in the sigstore-clients meetings. Users should be pinning to release, and we will put in the release notes how to disable this new test. Signed-off-by: Zach Steindler <[email protected]>
…d-root Also rebase onto main Signed-off-by: Zach Steindler <[email protected]>
efdaf92
to
6757257
Compare
Signed-off-by: Zach Steindler <[email protected]>
Signed-off-by: Zach Steindler <[email protected]>
Thanks @steiza! |
xref sigstore/sigstore-python#821 for changes needed to sigstore-python's conformance runner. |
This will help us address #30
Summary
Previously the tests assumed the public-good trust root, but supplying a custom trust root lets us exercise additional failure paths, without having to compromise the public-good service.
Release Note
--trusted-root FILE
to support additional test cases--trusted-root
, in your Action workflow you can specifyxfail: "test_verify_with_trust_root"
to skip this test for nowDocumentation
N/A