Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3428

Implicitly enable TLS for tlsInsecure and tlsCertificateKeyFilePassword URI opts

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 1.15.3
    • 1.15.0
    • tls, uri
    • None
    • Minor Change

    Description

      mongoc_uri_get_tls does not consider the MONGOC_URI_TLSINSECURE and MONGOC_URI_TLSCERTIFICATEKEYFILEPASSWORD constants. This was likely an oversight in the PR for CDRIVER-2869.

      The Unified URI options spec leaves the decision to each driver to implicitly enable TLS if any related options are specified. The C driver has historically done so (even for the "insecure" options like ignoring certs), so it should be a quick fix to add these two options to the list of those considered.

      The docs for mongoc_uri_get_tls can also be improved to clarify that the function returns true if any TLS option is specified.

      Attachments

        Activity

          People

            kevin.albertson@mongodb.com Kevin Albertson
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: