-
Notifications
You must be signed in to change notification settings - Fork 593
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): make server.id
in WITH option become optional
#13031
Conversation
a little confused, this pr does not fix #12025 case that it does not handle a wrong |
Sorry for the confusion, |
server.id
option to be optionalserver.id
WITH option and generate it internally
|
GitGuardian id | Secret | Commit | Filename | |
---|---|---|---|---|
7648795 | Generic CLI Secret | c8f2a13 | integration_tests/iceberg-cdc/run_test.sh | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Our GitHub checks need improvements? Share your feedbacks!
Codecov Report
@@ Coverage Diff @@
## main #13031 +/- ##
==========================================
- Coverage 68.40% 68.33% -0.07%
==========================================
Files 1496 1496
Lines 252049 252061 +12
==========================================
- Hits 172413 172252 -161
- Misses 79636 79809 +173
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 18 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
099914b
to
4563622
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.
Rest LGTM
src/meta/service/src/ddl_service.rs
Outdated
visit_fragment(fragment, |node_body| { | ||
if let NodeBody::Source(source_node) = node_body { | ||
let props = &mut source_node.source_inner.as_mut().unwrap().properties; | ||
props.insert("server.id".to_string(), rand_server_id.to_string()); |
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.
Will this overwrite the user-specified server.id if they set it already?
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.
After consideration, I think we should still allow user to set the ID by their own, so I will revert here back to generate a server.id when it is not provided.
Btw I think it doesn't make sense to check the uniqueness of server.id in the validation, since we cannot lock the server.id to avoid other connector to use it at the time we create a connector. IMO we should provide some ways to improve observability for this run time errors.
server.id
WITH option and generate it internallyserver.id
WITH option as optional
server.id
WITH option as optionalserver.id
in WITH option become optional
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
server.id
for mysql-cdc connector if user doesn't provide to usrelated: #12025
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
MySQL CDC
server.id
option become optional, if user don't provide it we will generate a random id internally.