-
Notifications
You must be signed in to change notification settings - Fork 339
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
feat(kuma-cp) remove provided ca cert validation #2623
Conversation
Thanks @nikita15p. Before reviewing, could you please rebase the branch and squash the commits either into a single commit, or a small series of logicall-separated commits. Please include a git commit message that explains what the changes are in each commit and why they are there. Thanks! |
Need to clarify the relationship between this PR and #2575. |
@jpeach Actually I raised this PR yesterday and was not aware of already existing intermediate CA PR. I am getting errors in tls handshake between the dataplanes when I pass the subca in mesh config without root cert. This mistake can be done by many users. Debug log level of dp 1:
Debug log level of dp2:
This PR simplifies commonly occuring user issue
So if the user is using self signed cert, it will work as expected as it was till now. And user need not provide rootCert and chainCert. This PR also removes following validations which blocks using enterprise grade certs.
|
I'm revisiting SPIFFE requirements https://github.com/spiffe/spiffe/blob/main/standards/X509-SVID.md It seems that |
On splitting fields into Scenario 1I want to just use Root CA without any intermediate CAs. Which fields should I fill? Just Scenario 2I want to just Root CA with Intermediate CA. Which fields should I fill? With the current solution, you have just @kumahq/kuma-maintainers please give feedback. |
Digital signature is something which is commonly used in an enterprise subordinate ca. So if we disable this flag, it will block using those certs.
|
Ok, I'm fine with dropping validation for |
Signed-off-by: nikita15p <nikita15p@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #2623 +/- ##
==========================================
- Coverage 51.97% 51.96% -0.01%
==========================================
Files 871 871
Lines 49513 49509 -4
==========================================
- Hits 25734 25727 -7
+ Misses 21699 21697 -2
- Partials 2080 2085 +5
Continue to review full report at Codecov.
|
Ok, if the tests will pass in the next 20 minutes, we'll be able to ship it with the next release (1.3.0) |
Signed-off-by: nikita15p <nikita15p@gmail.com> (cherry picked from commit 14b527b)
…) (#2663) Signed-off-by: nikita15p <nikita15p@gmail.com>
+1 on this. The CA cert is a chain and we ought to accept a bundle of PEM certificates in that field. |
Summary
With these changes sub ca be used as provided ca
Full changelog
Issues resolved
Fix #2063
Documentation NA
Testing
Backwards compatibility
backport-to-stable
label if the code is backwards compatible. Otherwise, list breaking changes.