Skip to content

CC-38701 Cherry Picks from v1.16.x branch onto v2.0.2 branch - #101

Open
sgarg99 wants to merge 16 commits into
v2.0.x-branchfrom
1.16.x-cherry-picks
Open

CC-38701 Cherry Picks from v1.16.x branch onto v2.0.2 branch #101
sgarg99 wants to merge 16 commits into
v2.0.x-branchfrom
1.16.x-cherry-picks

Conversation

@sgarg99

@sgarg99 sgarg99 commented Jan 15, 2026

Copy link
Copy Markdown
Member

Problem:
https://confluentinc.atlassian.net/browse/CC-38701
Upgrade mongo-kafka to v2.0.2

Solution:
The mongo-kafka fork branch was upgraded to 2.0.2. In this PR adding the cherry-picks which are not present in the forked repo to the upgraded branch.

sgarg99 and others added 16 commits January 15, 2026 21:55
* CC-31041 : Cherry-pick changes from release branch v1.11.x (#65)

* Cherrypick local changes from previous releases (#32) (#36)

* resolved merge conflicts

* Throw ConnectException if resume of change stream is not possible

* indentation and formatting

Co-authored-by: Tarun Jain <107803496+tarunjain-confluent@users.noreply.github.com>

* Skip logging of records on error (#37) (#39)

Co-authored-by: Subhash Iyer <siyer@confluent.io>

* change default to false (#40)

* add srv check (#42)

* Fix custom Delete write model strategy support (#44)

KAFKA-395

Co-authored-by: tlsdnwn55 <tlsdnwn55@naver.com>
Co-authored-by: Ross Lawley <ross@mongodb.com>

* add logging in mongodbclient helper (#48)

* add semaphore file for v1.11.x (#55)

* CC-27090: Add upsert replace option for ReplaceOneModel in update operation (#54)

* remove spotless (#57)

* Change trace log to log hash of valueDoc (#60)

* Added error message for IllegalArgumentException (#61)

* Add error in dlq message (#59)

---------

Co-authored-by: Rohit <rohit1@confluent.io>
Co-authored-by: Tarun Jain <107803496+tarunjain-confluent@users.noreply.github.com>
Co-authored-by: Subhash Iyer <siyer@confluent.io>
Co-authored-by: srishti-saraswat <98515593+srishti-saraswat@users.noreply.github.com>
Co-authored-by: tlsdnwn55 <tlsdnwn55@naver.com>
Co-authored-by: Ross Lawley <ross@mongodb.com>
Co-authored-by: Sangeet Kumar Mishra <mail2sangeetmishra@gmail.com>
Co-authored-by: Rohit <32812417+rohits64@users.noreply.github.com>

* chore: update repo by service bot (#66) (#68)

* Replace all occurrences of 's1-prod-ubuntu20-04' with 's1-prod-ubuntu24-04'

* chore: update repo semaphore config

* Minor: fix build commands

---------

Co-authored-by: service-bot-app[bot] <189278048+service-bot-app[bot]@users.noreply.github.com>
Co-authored-by: service-bot-app[bot] <foo-bar+service-bot-app[bot]@users.noreply.github.com>

* CC-33219 | Added new configuration remove.field.on.schema.mismatch (#72)

* Added new configuration remove.field.on.schema.mismatch

* Updated extra field exception format

* CC-32392 | Used RegexUtils instead java.util to fix ReDOS issue (#73)

* Used RegexUtils instead java.util to fix ReDOS issue

* Updated default value to 100ms instead of 1000ms

* [CC-32391] Use RegexUtils to avoid ReDOS in sink connector  (#74)

Summary:
Potential ReDOS vulnerability from user-supplied data in java.util.regex
When topics.regex and topic.override.<topic_name>.<property> are both provided, the sink connector matches <topic_name> with the topics.regex. Here there is a ReDOS vulnerability - CWE-1333.
Switch to RegexUtils.matches, which enforces a timeout, and uses an executor thread. Expose regex.timeout.ms similar to SourceConfig

Testing:
Added unit test with:
1. A safe regex and topic override which does not cause ReDOS.
2. An unsafe regex and topic override, which would have caused ReDOS, but times out instead.

Backward compatible: Yes

* CC-32392 : Added mongo dependencies for connect-utils

Added mongo dependencies for connect-utils

* Fix non srv record validation (#76)

---------

Co-authored-by: Aniket Shrimal <30872045+aniketshrimal@users.noreply.github.com>
Co-authored-by: Rohit <rohit1@confluent.io>
Co-authored-by: Tarun Jain <107803496+tarunjain-confluent@users.noreply.github.com>
Co-authored-by: Subhash Iyer <siyer@confluent.io>
Co-authored-by: srishti-saraswat <98515593+srishti-saraswat@users.noreply.github.com>
Co-authored-by: tlsdnwn55 <tlsdnwn55@naver.com>
Co-authored-by: Ross Lawley <ross@mongodb.com>
Co-authored-by: Sangeet Kumar Mishra <mail2sangeetmishra@gmail.com>
Co-authored-by: Rohit <32812417+rohits64@users.noreply.github.com>
Co-authored-by: service-bot-app[bot] <189278048+service-bot-app[bot]@users.noreply.github.com>
Co-authored-by: service-bot-app[bot] <foo-bar+service-bot-app[bot]@users.noreply.github.com>
Co-authored-by: Sarthak Sonagara <ssonagara@confluent.io>
Co-authored-by: Sharan Rudresh <srudresh@confluent.io>
* Remove sensitive info from logs

* Removed %s
Enabled docker instance for Mongodb to run the ITs
Enabled integration tests in the semaphore pipeline
…ma. (#82)

* Added logging for reproducing the issue

* Added logging for reproducing the issue

* Added logging for reproducing the issue
* Doing redundant change to check if sonarqube is enabled

* Editing the key value
…ing. (#87)

Co-authored-by: service-bot-app[bot] <service-bot-app[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants