[SpannerToSourceDb] Removing pwd input validation in Reverse replication and Bulk templates - #4264
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request modifies the shard configuration parsing logic to allow for empty passwords. This change enables support for database connections that rely on SSL/TLS certificate-based authentication rather than traditional password-based credentials. Corresponding updates were made to unit tests and the SpannerToSourceDb integration test suite to reflect this change in behavior. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates SourceConfigParser and ShardFileReader to allow empty or null shard passwords, defaulting them to an empty string instead of throwing a RuntimeException. The corresponding unit tests have been updated to reflect this change. Additionally, the integration test SpannerToSourceDbIT is enhanced to support SSL client certificate authentication by staging a keystore and creating a database user requiring X509. The reviewer suggested using CREATE USER IF NOT EXISTS in the integration test to make it more robust for repeated local runs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4264 +/- ##
============================================
+ Coverage 56.35% 63.70% +7.34%
+ Complexity 7856 3011 -4845
============================================
Files 1154 576 -578
Lines 73203 33720 -39483
Branches 8583 3809 -4774
============================================
- Hits 41253 21480 -19773
+ Misses 29163 11154 -18009
+ Partials 2787 1086 -1701
🚀 New features to boost your workflow:
|
…ion and Bulk templates (GoogleCloudPlatform#4264) * [SpannerToSourceDb] Removing pwd input validation * Added bulk migration SSL based authentication integration test * Added unit tests * Correcting IT * formatting fixes * Addressing review comments * Fixing UT
Tested: