Skip to content

Conversation

@geoza2000
Copy link

@geoza2000 geoza2000 commented Sep 27, 2024

Update MongoDriver.ts to support new ssl and tls options

Description of change

The old options do not exist anymore on the MongoClient, thus the library throws an error (e.g. MongoParseError: option sslca is not supported) and deployment to production-grade infrastructure is unable

Example Issue: Deploying BE w/ DocumentDB on AWS requires the tlsCAFile options to present, therefore the connection to the DB cannot happen.

Relative Documentation: https://mongodb.github.io/node-mongodb-native/6.9/interfaces/MongoClientOptions.html

Fixes: #10972

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run format to apply prettier formatting
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits follow conventions explained in CONTRIBUTING.md

Update `MongoDriver.ts` to support new ssl and tls options

The old options do not exist anymore on the MongoClient, thus the library throws an error (e.g. `MongoParseError: option sslca is not supported`) and deployment to production-grade infrastructure is unable
@geoza2000
Copy link
Author

Tests failing from timeout :/

@brianpmccullough
Copy link

Anything I can do to help with this?

@mohd-akram mohd-akram mentioned this pull request Feb 27, 2025
7 tasks
@alumni
Copy link
Collaborator

alumni commented Mar 30, 2025

We merged #11310, should fix the original issue. Thanks for contributing :)

@alumni alumni closed this Mar 30, 2025
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.

TLS/SSL settings when using the MongoDriver

3 participants