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

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: mongo-tools-common
    • None

      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.

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

              Created:
              Updated: