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

Support TLS to connect mysql/TiDB #894

Merged
merged 1 commit into from
Feb 12, 2020
Merged

Conversation

july2993
Copy link
Contributor

What problem does this PR solve?

fix #887

What is changed and how it works?

Add an according configure part syncer.to.security
use RegisterTLSConfig to registers a custom tls.Config to be used with sql.Open

Check List

Tests

  • Manual test (add detailed scripts or steps below)
    • enable TLS in drainer, fails to connect TiDB without enabling TLS.
    • after enable TLS, drainer success to connect to TiDB.

relate docs: https://pingcap.com/docs-cn/stable/how-to/secure/enable-tls-clients/

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation

@suzaku
Copy link
Contributor

suzaku commented Feb 12, 2020

/run-all-tests

Copy link
Contributor

@suzaku suzaku left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@IANTHEREAL IANTHEREAL left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support TLS in MySQL drainer
3 participants