Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-5887

Allow secureOptions to be pass to the TLS socket.

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • 0
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Currently the driver allows a list of TLS related options to be passed through when creating the TLS socket. These live in this constant: https://github.com/mongodb/node-mongodb-native/blob/main/src/cmap/connect.ts#L254

      We currently do not support passing through secureOptions, which is needed to configure the override noted in https://jira.mongodb.org/browse/HELP-55329

      AC:

      Implementation:

      • Add secureOptions to the list of passed through TLS options.

      Testing:

      • Test that the option gets passed into tls.connect()

            Assignee:
            alex.bevilacqua@mongodb.com Alex Bevilacqua
            Reporter:
            durran.jordan@mongodb.com Durran Jordan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: