-
Notifications
You must be signed in to change notification settings - Fork 590
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(mysql-cdc): support ssl.mode
to allow configure the ssl behavior
#16579
Conversation
ssl.mode
to allow disable sslssl.mode
to allow configure the ssl behavior
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, don't forget to update the corresponding doc.
@@ -250,7 +249,7 @@ pub struct ExternalTableConfig { | |||
#[serde(rename = "table.name")] | |||
pub table: String, | |||
/// `ssl.mode` specifies the SSL/TLS encryption level for secure communication with Postgres. | |||
/// Choices include `disable`, `prefer`, and `require`. | |||
/// Choices include `disabled`, `preferred`, and `required`. |
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.
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.
Yeah, I know. The ssl.mode
is just a interface to the end users, and mysql uses disabled
, preferred
, and required
which have same semantic as PG. So I decide to unify the naming.
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.
This is a breaking change...
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. Great job!
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
ssl.mode
to allow user configure the ssl behavior (ref)related: #15690
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Updated by @neverchanje
This PR involves a change on Postgres connector. It rename the values of
ssl.mode
from "disable, prefer, and require" to "disabled, preferred, and required".On the other hand, the
ssl.mode
option is also supported for the MySQL connector, enabling a SSL/TLS encrypted connection to the upstream MySQL.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.