Error message for X.509 without authSource=$external is unhelpful

XMLWordPrintableJSON

    • 1
    • Not Needed
    • None
    • 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?
    • None
    • None
    • None
    • None
    • None
    • None

      See COMPASS-5801 and MONGOSH-1052:

      Connecting to a connection string like "mongodb+srv://hostname/?authMechanism=MONGODB-X509&tls=true&tlsCertificateKeyFile=filename" fails with "[object Object] can only have authSource set to '$external'", where obviously "[object Object]" is not what this should really say.

      Source line: https://github.com/mongodb/node-mongodb-native/blob/ac4aabc9cf49c78ca5854b0185e2fc5ae983d3cf/src/connection_string.ts#L339

              Assignee:
              Bailey Pearson
              Reporter:
              Anna Henningsen
              Daria Pardue
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: