-
Notifications
You must be signed in to change notification settings - Fork 500
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
add tls support between drainer and downstream database server #2993
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2993 +/- ##
==========================================
+ Coverage 41.41% 41.64% +0.22%
==========================================
Files 155 156 +1
Lines 16744 16801 +57
==========================================
+ Hits 6934 6996 +62
+ Misses 9250 9241 -9
- Partials 560 564 +4
Flags with carried forward coverage won't be shown. Click here to find out more. |
/test pull-e2e-kind |
/test pull-e2e-kind-serial |
charts/tidb-drainer/values.yaml
Outdated
@@ -48,6 +48,22 @@ tlsCluster: | |||
certAllowedCN: [] | |||
# - TiDB | |||
|
|||
# The tls config between drainer and the downstream database server (MySQL/TiDB) |
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 tls config between drainer and the downstream database server (MySQL/TiDB) | |
# The TLS config between drainer and the downstream database server (MySQL/TiDB) |
charts/tidb-drainer/values.yaml
Outdated
@@ -48,6 +48,22 @@ tlsCluster: | |||
certAllowedCN: [] | |||
# - TiDB | |||
|
|||
# The tls config between drainer and the downstream database server (MySQL/TiDB) | |||
tlsSyncer: | |||
tlsClientSecretName: |
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.
Please add comments to explain what's this field is for and what keys should be included in the secret or add an example command as in L41-L43.
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.
Suggest commenting out the new configurations.
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.
tlsClientSecretName: | |
# tlsClientSecretName: "" |
tlsSyncer: | ||
tlsClientSecretName: | ||
|
||
# certAllowedCN is the Common Name that allowed |
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.
What's the difference between this one and the one in L64, please make it clear.
charts/tidb-drainer/values.yaml
Outdated
certAllowedCN: [] | ||
# - TiDB | ||
|
||
# checkpoint is the tls config for the database we save binlog checkpoint |
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.
# checkpoint is the tls config for the database we save binlog checkpoint | |
# checkpoint is the TLS config for the database we save binlog checkpoint |
charts/tidb-drainer/values.yaml
Outdated
# - TiDB | ||
|
||
# checkpoint is the tls config for the database we save binlog checkpoint | ||
# Omit this part if you just want to save checkpoint in downstream database |
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.
What does this mean?
# Omit this part if you just want to save checkpoint in downstream database | ||
checkpoint: | ||
tlsClientSecretName: | ||
# certAllowedCN is the Common Name that allowed |
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.
Make it clear for the difference with L56.
charts/tidb-drainer/values.yaml
Outdated
@@ -48,6 +48,22 @@ tlsCluster: | |||
certAllowedCN: [] | |||
# - TiDB | |||
|
|||
# The tls config between drainer and the downstream database server (MySQL/TiDB) | |||
tlsSyncer: |
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.
tlsSyncer: | |
tlsSyncer: {} |
charts/tidb-drainer/values.yaml
Outdated
tlsClientSecretName: | ||
|
||
# certAllowedCN is the Common Name that allowed | ||
certAllowedCN: [] |
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.
certAllowedCN: [] | |
# certAllowedCN: [] |
charts/tidb-drainer/values.yaml
Outdated
checkpoint: | ||
tlsClientSecretName: |
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.
checkpoint: | |
tlsClientSecretName: | |
# checkpoint: | |
# tlsClientSecretName: "" |
charts/tidb-drainer/values.yaml
Outdated
checkpoint: | ||
tlsClientSecretName: | ||
# certAllowedCN is the Common Name that allowed | ||
certAllowedCN: [] |
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.
certAllowedCN: [] | |
# certAllowedCN: [] |
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
Please also update the TLS document.
/test pull-e2e-kind |
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
@weekface PTAL again |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-1.1 in PR #3000 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com> Co-authored-by: Chunzhu Li <lichunzhu@stu.xjtu.edu.cn> Co-authored-by: DanielZhangQD <36026334+DanielZhangQD@users.noreply.github.com>
What problem does this PR solve?
resolve #2969
add tls support between drainer and downstream database server.
What is changed and how does it work?
add tls syncer part for drainer.
Check List
Tests
Related changes
Does this PR introduce a user-facing change?: