-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
*: use https protocol between tidb-pd tidb-tidb when cluster-ssl configured #15342
Conversation
/run-all-tests |
/run-unit-test |
Codecov Report
@@ Coverage Diff @@
## master #15342 +/- ##
================================================
- Coverage 80.4736% 80.3598% -0.1139%
================================================
Files 502 502
Lines 133676 133242 -434
================================================
- Hits 107574 107073 -501
- Misses 17685 17753 +68
+ Partials 8417 8416 -1 |
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
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 |
/run-cherry-picker |
cherry pick to release-3.0 in PR #15419 |
What problem does this PR solve?
fixes #15120
PD or TiDB RESTful service will require https when cluster configured with cluster-ssl-*, but tidb-server only can send http request.
What is changed and how it works?
change to https client when "cluster-ssl-*" configured
Check List
Tests
configure pd/tidb/tikv as https://pingcap.com/docs/stable/how-to/secure/enable-tls-between-components/
then try to use TiDB http-api or "cluster table"
Code changes
Side effects
Related changes
Need to cherry-pick to the release branch
Release note
use https request between tidb-pd tidb-tidb when cluster-ssl configured.
This change is![Reviewable](https://camo.githubusercontent.com/1541c4039185914e83657d3683ec25920c672c6c5c7ab4240ee7bff601adec0b/68747470733a2f2f72657669657761626c652e696f2f7265766965775f627574746f6e2e737667)