-
Notifications
You must be signed in to change notification settings - Fork 289
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 in cdc components #347
Conversation
/run-integration-tests |
tests/_utils/run_curl
Outdated
POST_ARGS="--post-data $2" | ||
fi | ||
|
||
# FIXME: use `wget` instead of `curl` because the latter rejects ECC certs on our CI. |
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.
Is this FIXME still required?
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
Signed-off-by: Neil Shen <[email protected]>
Signed-off-by: Neil Shen <[email protected]>
/run-integration-tests |
Codecov Report
@@ Coverage Diff @@
## master #347 +/- ##
===========================================
Coverage 34.3204% 34.3204%
===========================================
Files 91 91
Lines 10874 10874
===========================================
Hits 3732 3732
Misses 6810 6810
Partials 332 332 |
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.
I found that we pass config everywhere, (including pkg/Config
and security/Credential
), how about making the config as a global variable or setting config into context?
cdc/kv/store_op.go
Outdated
@@ -18,6 +18,8 @@ import ( | |||
|
|||
"github.com/pingcap/errors" | |||
"github.com/pingcap/ticdc/pkg/flags" | |||
"github.com/pingcap/ticdc/pkg/security" | |||
"github.com/pingcap/tidb/config" |
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.
Avoid confusion with ticdc/pkg/config
"github.com/pingcap/tidb/config" | |
tidbconfig "github.com/pingcap/tidb/config" |
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.
Generally speaking, using global variables is not good especially when it relates to security issues. Setting credentials in context is doable but it makes code less explicitly and it is very likely to leak credential to packages we don't want. |
/lgtm |
/lgtm |
@amyangfei Oops. LGTM is restricted to reviewers. |
Signed-off-by: Neil Shen <[email protected]>
/lgtm |
/merge |
/run-all-tests |
Signed-off-by: lance6716 <[email protected]>
What problem does this PR solve?
Support TLS in TiCDC, fulfill pingcap/ticdc#250
What is changed and how it works?
Code changed:
github.com/pingcap/pd/v4
cdc server
andcdc cli
Test changed:
TODO:
Check List
Tests
Release note