Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-13588

Shell prints startup warning when auth enabled

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.6.2, 2.7.0
    • Component/s: Logging, Security, Shell
    • Labels:
      None
    • Operating System:
      ALL
    • Backport Completed:
    • Steps To Reproduce:
      Hide

      Start a mongod with --keyFile X and run a shell locally with no parameters. There are various other permutations, with users set up in DBs other than admin.

      Show
      Start a mongod with --keyFile X and run a shell locally with no parameters. There are various other permutations, with users set up in DBs other than admin.

      Description

      When auth is enabled, the shell prints a startup warning complaining that the user does not have permission to access the admin database.

      connecting to: test
      Error while trying to show server startup warnings: not authorized on admin to execute command { getLog: "startupWarnings" }

        Issue Links

          Activity

          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

          Message: SERVER-13588 Fix regression in supression of startup warning when unauthorized
          Branch: master
          https://github.com/mongodb/mongo/commit/177d92b10d8447eb09cca8c6bd8eed0d9f04bc54

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'} Message: SERVER-13588 Fix regression in supression of startup warning when unauthorized Branch: master https://github.com/mongodb/mongo/commit/177d92b10d8447eb09cca8c6bd8eed0d9f04bc54
          Hide
          xgen-internal-githook Githook User added a comment -

          Author:

          {u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

          Message: SERVER-13588 Fix regression in supression of startup warning when unauthorized
          (cherry picked from commit 177d92b10d8447eb09cca8c6bd8eed0d9f04bc54)
          Branch: v2.6
          https://github.com/mongodb/mongo/commit/adc534fcdd0425f689954f44a940f6416e46673a

          Show
          xgen-internal-githook Githook User added a comment - Author: {u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'} Message: SERVER-13588 Fix regression in supression of startup warning when unauthorized (cherry picked from commit 177d92b10d8447eb09cca8c6bd8eed0d9f04bc54) Branch: v2.6 https://github.com/mongodb/mongo/commit/adc534fcdd0425f689954f44a940f6416e46673a

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: