Skip to content
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) #15419

Merged
merged 3 commits into from
Mar 17, 2020

Conversation

sre-bot
Copy link
Contributor

@sre-bot sre-bot commented Mar 17, 2020

cherry-pick #15342 to release-3.0


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

  • Manual test

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

  • replace all http to http/https
  • use https client when "cluster-ssl-*" configured

Side effects

  • n/a

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

@sre-bot
Copy link
Contributor Author

sre-bot commented Mar 17, 2020

/run-all-tests

@lysu lysu force-pushed the release-3.0-a97787562319 branch from 0ac6cc8 to 35565a0 Compare March 17, 2020 06:33
@lysu lysu self-assigned this Mar 17, 2020
Copy link

@imtbkcat imtbkcat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lysu lysu added the priority/release-blocker This issue blocks a release. Please solve it ASAP. label Mar 17, 2020
@lysu
Copy link
Contributor

lysu commented Mar 17, 2020

@jackysp PTAL

Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jackysp
Copy link
Member

jackysp commented Mar 17, 2020

/merge

@sre-bot sre-bot added the status/can-merge Indicates a PR has been approved by a committer. label Mar 17, 2020
@sre-bot
Copy link
Contributor Author

sre-bot commented Mar 17, 2020

/run-all-tests

@sre-bot
Copy link
Contributor Author

sre-bot commented Mar 17, 2020

@sre-bot merge failed.

@lysu
Copy link
Contributor

lysu commented Mar 17, 2020

/run-unit-test

@sre-bot
Copy link
Contributor Author

sre-bot commented Mar 17, 2020

cherry pick to release-3.1 in PR #15430

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/server priority/release-blocker This issue blocks a release. Please solve it ASAP. security Everything related with security sig/execution SIG execution sig/sql-infra SIG: SQL Infra status/can-merge Indicates a PR has been approved by a committer. type/3.0-cherry-pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants