Align TLS option handling in the driver

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Needed
    • None
    • 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?
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a developer
      I want consistent handling of TLS options
      So that I have a clear understanding of the options and which take precedence.

      User Experience

      • Users have a clear understanding of the driver and FLE behaviour when providing TLS options.

      Dependencies

      • Compass/mongosh

      Risks/Unknowns

      • None

      Acceptance Criteria

      Implementation Requirements

      • Ensure that TLS options in both driver and FLE allow pass through of all LEGAL_TLS_SOCKET_OPTIONS and take the following precedence: 1) top-level Node specific TLS options, including secureContext, 2) MongoDB specified TLS options prefixed with tls*

      Testing Requirements

      • Integration tests that test all combinations of MongoDB-specific TLS options with Node-specific options
      • Pass through of all Node-specific options
      • Preference of Node-specific options over MongoDB-specific options
      • Note: we do not currently seem to have coverage for the pass through of Node-specific options or for the preference of those over the MongoDB-specific ones

      Documentation Requirements

      • API docs stating the order of preference for the options.
      • MongoDB manual docs stating the order of preference for the options.

      Follow Up Requirements

      • None

              Assignee:
              Unassigned
              Reporter:
              Durran Jordan
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: