Skip to content

feat: support for mongodb SSL+auth source/mech+replica set #741

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

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

regisb
Copy link
Contributor

@regisb regisb commented Nov 17, 2022

This change builds upon a previously proposed PR:
#437

There was another long conversation about this topic here:
overhangio/tutor-forum#10 (comment)

We could have supported the MongoDB auth/replica set/ssl parameters as part of
the MongoDB host URI, but then this URI is not supported in the forum plugin,
which uses an old version of the mongoid client. We were hoping that the client
would have been upgraded by now, but it's not been upgraded for a long time.

The changes introduced here are 100% backward-compatible. The forum plugin will
have to be updated to take into account the new parameters.

@regisb
Copy link
Contributor Author

regisb commented Nov 17, 2022

FYI @zakum1 @keithgg

Copy link
Contributor

@keithgg keithgg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 from me @regisb. A lot of folks will appreciate this!

  • I read through the code
  • I tested it by running similar code elsewhere

@regisb regisb force-pushed the regisb/mongodb-ssl branch 2 times, most recently from d09f7c9 to ee1475e Compare November 21, 2022 13:24
@regisb regisb force-pushed the regisb/mongodb-ssl branch from ee1475e to 1cbe95b Compare November 24, 2022 15:04
@regisb regisb changed the title feat: support for mongodb SSL feat: support for mongodb SSL+auth source/mech+replica set Nov 24, 2022
@regisb regisb requested a review from keithgg November 24, 2022 15:05
@regisb regisb force-pushed the regisb/mongodb-ssl branch from 1cbe95b to 619e7b8 Compare November 28, 2022 09:08
This change builds upon a previously proposed PR:
#437

There was another long conversation about this topic here:
overhangio/tutor-forum#10 (comment)

We could have supported the MongoDB auth/replica set/ssl parameters as part of
the MongoDB host URI, but then this URI is not supported in the forum plugin,
which uses an old version of the mongoid client. We were hoping that the client
would have been upgraded by now, but it's not been upgraded for a long time.

The changes introduced here are 100% backward-compatible. The forum plugin will
have to be updated to take into account the new parameters.
@regisb regisb force-pushed the regisb/mongodb-ssl branch from 619e7b8 to 6f917ed Compare November 28, 2022 10:21
Copy link
Contributor

@keithgg keithgg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good! Thanks for this @regisb.

  • I tested on my machine with the built-in service and an Atlas cluster
  • I read through the code

@regisb regisb merged commit 7b72a5a into master Nov 28, 2022
@regisb regisb deleted the regisb/mongodb-ssl branch November 28, 2022 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants