-
Notifications
You must be signed in to change notification settings - Fork 728
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 test for online reload new TLS certificates #2162
Conversation
Signed-off-by: nolouch <nolouch@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #2162 +/- ##
=========================================
Coverage ? 76.14%
=========================================
Files ? 195
Lines ? 20604
Branches ? 0
=========================================
Hits ? 15689
Misses ? 3726
Partials ? 1189
Continue to review full report at Codecov.
|
@@ -260,7 +260,7 @@ func (c *baseClient) getOrCreateGRPCConn(addr string) (*grpc.ClientConn, error) | |||
tlsCfg, err := grpcutil.SecurityConfig{ | |||
CAPath: c.security.CAPath, | |||
CertPath: c.security.CertPath, | |||
KeyPath: c.security.CertPath, | |||
KeyPath: c.security.KeyPath, |
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.
👀
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.
That's a bug :(
Signed-off-by: nolouch <nolouch@gmail.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.
LGTM
/merge |
/run-all-tests |
cherry pick to release-3.1 in PR #2165 |
we can make sure the version after this tikv/pd#2162 can support reload new TLS certificates. we just pass the file path into the client, the reload is supported by the client internally. https://github.com/pingcap/pd/blob/0f3272c9b0ef661bdaea7f4ed66b13955c503b72/client/client.go#L129
/run-cherry-picker |
cherry pick to release-3.0 failed |
Signed-off-by: nolouch nolouch@gmail.com
What problem does this PR solve?
ref pingcap/tidb#14666, #2112
If the key/cert expired, we need to reload it online. the method same as etcd, it is already supported, this PR is to add a test.
What is changed and how it works?
add test verify it.
Check List
Tests