Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2782

Log message when a config file value is overridden by a command line value

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Accepted
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mongo-tools-common
    • Labels:
      None

      Description

      The --config option allows users to specify password secrets in a configuration file. These values can be overridden by corresponding options on the command line (e.g. "password: abc" in a config file, but --password="def" on the command line will result in "def").

      While documented, the behavior itself is opaque so we should let users directly know what's being overridden. A log message like "WARNING: Overriding value in <config file path> with [--password|--uri|--sslPEMKeyPassword]" would be sufficient.

      This should be done after any conversions to pointers since that'll make the checks much easier.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              evgeni.dobranov Evgeni Dobranov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: