-
Notifications
You must be signed in to change notification settings - Fork 288
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
Validate server cert against ca cert for registry mirror #2414
Conversation
491bd4e
to
8b48486
Compare
Codecov Report
@@ Coverage Diff @@
## main #2414 +/- ##
==========================================
+ Coverage 56.94% 56.96% +0.02%
==========================================
Files 306 306
Lines 24844 24868 +24
==========================================
+ Hits 14147 14166 +19
- Misses 9399 9400 +1
- Partials 1298 1302 +4
Continue to review full report at Codecov.
|
8b48486
to
09ceba7
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vivek-koppuru The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
6696369
to
85c36ad
Compare
611b6da
to
769b0a6
Compare
769b0a6
to
ac87715
Compare
Issue #, if available:
#1857
Description of changes:
As described in the issue above, we weren't checking for the validity of the cert if the caCert passed in is not the self-signed server cert instead. This allows for checking the validity of the cert against the server itself instead of just checking for whether the cert is valid without actually making a call to the server. Also modified the unit tests to spin up a test http server to test the cert setup.
Testing (if applicable):
Ran against ci registry mirror configuration and another public one
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.