-
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
Add support for intermediate certificates when verifiying #1631
Conversation
Moving to draft, going to work on some of the other TODOs in this PR |
Nice! |
1d05695
to
e30d2e3
Compare
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.
lgtm
This looks good, and is definitely needed as part of validating the chain correctly. Is the intent to connect this to Edit: I see you mentioned "Include the intermediates from the OCI Chain annotation" in this issue too now. Looks good. |
Yep, planning to add that to this PR before moving it out of a draft! Wrote up a document outlining all of the places we need to make updates to support intermediates, feel free to take a look. |
This adds an intermediate CA certificate pool to CheckOpts, allowing for those using the Cosign library to pass intermediate CA certificates to validate a certificate chain. Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
e30d2e3
to
0b30662
Compare
Codecov Report
@@ Coverage Diff @@
## main #1631 +/- ##
==========================================
+ Coverage 27.97% 28.27% +0.29%
==========================================
Files 137 137
Lines 7820 7847 +27
==========================================
+ Hits 2188 2219 +31
+ Misses 5403 5387 -16
- Partials 229 241 +12
Continue to review full report at Codecov.
|
0b30662
to
0eee964
Compare
This adds support for verifying OCI signatures with chains that include more than one certificate in the chain, a root and subordinate. Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
0eee964
to
ed0aa58
Compare
Added support for extracting the chain from the OCI annotation. |
@dlorenc @hectorj2f Do y'all have any other comments? |
The plan in your doc sgtm, thanks! This pr looks good too! |
@haydentherapper lgtm, thanks |
) * Add support for intermediate certificates when verifiying This adds an intermediate CA certificate pool to CheckOpts, allowing for those using the Cosign library to pass intermediate CA certificates to validate a certificate chain. Signed-off-by: Hayden Blauzvern <hblauzvern@google.com> * Populate intermediate certs from the OCI chain annotation This adds support for verifying OCI signatures with chains that include more than one certificate in the chain, a root and subordinate. Signed-off-by: Hayden Blauzvern <hblauzvern@google.com>
This adds an intermediate CA certificate pool to CheckOpts, allowing for
those using the Cosign library to pass intermediate CA certificates to
validate a certificate chain.
Next steps:
chain
by command line. I need to look into how--cert
is working currently.Signed-off-by: Hayden Blauzvern hblauzvern@google.com
Summary
Ticket Link
Ref #1554
Release Note