Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-15394

[Atlas] Update tools docs to explain that using stdin does not work well with password prompts

    XMLWordPrintableJSON

Details

    • 3

    Description

      If a user is specified with --user but no --password is given, or if the --password is an empty string, then the tools will prompt for the password. However, if stdin is not a terminal, it will attempt to read the password from stdin without prompting. That means if the user pipes input to the tool on stdin, we will try to read the password from it.

      We should document this behavior, and anywhere that we refer to passing input via stdin, we should tell the user that this does not work properly when the password is not somehow provided. Note that this also applies to the --sslPEMKeyPassword parameter as well.

      I'm not clear on whether we should document this behavior of reading the password from stdin. AFAICT, this is not documented anywhere currently, but the tools will log the fact that they do this. I think for now let's not document this, but just document that the password prompting won't work when other input is passed to stdin.

      Attachments

        Activity

          People

            carrie.kim@mongodb.com Carrie Kim
            dave.rolsky@mongodb.com Dave Rolsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 33 weeks, 5 days ago