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

config: reload tikv/tidb cluster tls for every new established conn #14833

Merged
merged 2 commits into from
Feb 19, 2020
Merged

config: reload tikv/tidb cluster tls for every new established conn #14833

merged 2 commits into from
Feb 19, 2020

Conversation

lysu
Copy link
Contributor

@lysu lysu commented Feb 18, 2020

What problem does this PR solve?

support reload cluster TLS cert/key file used by TiKV or TiDB-self(CA still can not be hot-reload now)

pd's cert/key will be handled by new pdclient

What is changed and how it works?

reload TLS for every new connection(include grpc auto retry in resetTransport) like etcd

Check List

Tests

  • Unit test
  • Integration test
  • Manual test

Code changes

  • change conf way

Side effects

  • n/a

Related changes

  • n/a

Release note

  • reload tikv/tidb cluster tls for every new established conn

This change is Reviewable

@lysu lysu added type/enhancement The issue or PR belongs to an enhancement. component/tikv labels Feb 18, 2020
@lysu lysu requested review from tiancaiamao and jackysp February 18, 2020 09:26
@lysu
Copy link
Contributor Author

lysu commented Feb 18, 2020

/run-all-tests

@lysu lysu added this to the v4.0.0-beta.1 milestone Feb 18, 2020
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

@lysu lysu added status/LGT1 Indicates that a PR has LGTM 1. security Everything related with security labels Feb 19, 2020
@tiancaiamao
Copy link
Contributor

LGTM

@tiancaiamao tiancaiamao added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Feb 19, 2020
@tiancaiamao
Copy link
Contributor

/merge

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

sre-bot commented Feb 19, 2020

/run-all-tests

@sre-bot sre-bot merged commit 0ee50c2 into pingcap:master Feb 19, 2020
@lysu lysu deleted the dev-reload-kv-cert branch February 19, 2020 13:05
@lysu
Copy link
Contributor Author

lysu commented Feb 24, 2020

ref #14666

@lysu
Copy link
Contributor Author

lysu commented Mar 5, 2020

/run-cherry-picker

@sre-bot
Copy link
Contributor

sre-bot commented Mar 5, 2020

cherry pick to release-3.0 in PR #15162

@sre-bot
Copy link
Contributor

sre-bot commented Mar 5, 2020

cherry pick to release-3.1 in PR #15163

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/tikv security Everything related with security status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants