Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-3965

SRV URL authdb parsing issue (non-Atlas use case)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.19.2
    • Fix Version/s: 1.21.0
    • Component/s: Compass, Connectivity
    • Labels:
    • Environment:
      Windows
    • # Replies:
      0
    • Last comment by Customer:
      true
    • Sprint:
      Iteration Tarantula, Iteration Urial, Iteration Vicuña
    • Case:

      Description

      Use case:  Non-Atlas SRV with per-DB auth.

      In this case, the self constructed TXT records do no contain the authSource parameter, but is supplied on the connecting URI.

      For Compass, we need to specify this as the authentication database.  Compass errors out with an authentication error, and the mongod.log clearly indicates a malformed auth request suggesting Compass is ignoring the authdb when SRV is enabled "UserNotFound: Could not find user user@admin" where admin is not expected.

      Additionally, the SRV documentation states:

      You can override the options specified in a TXT record by passing the option in the query string. In the following example, the query string has provided an override for the authSource option configured in the TXT record of the DNS entry above.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lucas.hrabovsky Lucas Hrabovsky (Inactive)
              Reporter:
              luke.prochazka Luke Prochazka
              Participants:
              Last commenter:
              Massimiliano Marcon
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                44 weeks, 1 day ago
                Date of 1st Reply: