-
Notifications
You must be signed in to change notification settings - Fork 725
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
api: fix the certificate problem in API client #2363
Conversation
Signed-off-by: nolouch <nolouch@gmail.com>
/rebuid |
var ( | ||
|
||
// dialClient used to dial http request. | ||
dialClient = cluster.DialClient |
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.
The client in cluster package has a timeout. Does the client in API need it?
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.
I checked it and it only used in a redirect for the scheduler handler, I think it's ok to timeout.
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.
If we use API to get all regions and the region number is large, will it break the process of getting regions?
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.
the client in the user, not in PD. and if request to the follower, the redirected client is in the pkg/apiutil/serverapi
, that's already supports TLS.
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.
got
/rebuild |
1 similar comment
/rebuild |
/merge |
/merge |
1 similar comment
/merge |
/run-all-tests |
Signed-off-by: nolouch nolouch@gmail.com
What problem does this PR solve?
Fix #2362
What is changed and how it works?
add TLS supports for the client.
Release note
Check List
Tests