Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1090

Authentication fails against Hidden Secondary

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: Authentication
    • None

      Steps to Reproduce:

      1. Set up a four member replica set with SCRAM-SHA auth enabled AND the localhost exception disabled:
      • Primary
      • Secondary
      • Secondary
      • Secondary
        • Hidden: true
        • Priority: 0
      1. Set up a user with the "clusterMonitor" role on admin
      2. Create a NewClient connection with basic clientOptions, authenticating with that user against admin
      3. Connect the new client (Note that if at this stage you call connectionStatus you'll get back empty users and roles - this seems like a separate case from GODRIVER-1033 the connectionStatus result is the same)
      4. Get the admin database
      5. Use RunCommand to try to call replSetGetStatus

      Expected:
      replSetGetStatus executes properly
      Observed:
      replSetGetStatus receives an authorization error

        1. second.go
          2 kB
          Jonathan Balsano

            Assignee:
            Unassigned Unassigned
            Reporter:
            jonathan.balsano@mongodb.com Jonathan Balsano
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: