Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories CLI & Shell
Created by Guest
Created on Oct 16, 2023

allow mongocli read configs from stdin rather than from file

To deploy new cluster we need prepare config file and put there all sensitive data, like automation user password, ssl cert passwords etc. Then we have to specify -f flag to point to this config during mongocli call. Currently this file has to persist somewhere on the disk during call to CLI which makes it insecure (and file has to be carefully removed after cli call finished, proper access to the file has to be set etc) It would be safer to send this config to stdin of mongocli - as a pipe from another command which can generate the whole config in memory without persisting on disk.