-
Notifications
You must be signed in to change notification settings - Fork 589
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
feat(connector): add SSL support for external cdc postgres connector #15690
Conversation
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.
Thanks for the PR, btw have you test the PR can work with Neon?
only when sslmode is disable, we should use NoTls, and we should use Tls when sslmode is prefer or require.
fe97503
to
46a9074
Compare
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!
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.
Thanks. LGTM
3b7f71f
to
749e38c
Compare
6b2e163
to
53a0290
Compare
PTAL cargo.toml @stdrc @BugenZhao |
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.
approve on behalf of Cargo-lock
…15690) Co-authored-by: Tao Wu <[email protected]> Co-authored-by: StrikeW <[email protected]>
|
||
impl Default for SslMode { | ||
fn default() -> Self { | ||
Self::Prefer |
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.
We should set the default value to Disable
which is same as before for backward compatible. Then for upstreams that require TLS, the user should set ssl.mode='require'
.
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
resolve #14646.
Introduce dependency:
postgres-openssl
: https://docs.rs/postgres-openssl/latest/postgres_openssl/.Checklist
./risedev check
(or alias,./risedev c
)Documentation
This PR adds a new option to Postgres CDC source connector, i.e.
ssl.mode
.As we support ssl, we can also CREATE SOURCE on Neon databases and create multiple tables based on the shared source. See the note at the bottom of the doc https://github.com/risingwavelabs/risingwave-docs/pull/1994.
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.