-
Type: Task
-
Resolution: Won't Fix
-
Priority: Minor - P4
-
None
-
Affects Version/s: 3.4.7
-
Component/s: mongodump, mongoexport, mongoimport, mongorestore
-
Environment:Linux
-
(copied to CRM)
When using any of the mongo command line tools, passing -p secretPassword123 is clearly displayed when viewing in process monitors such as "ps auxww" and "top".
The "mongo" cli currently masks the password when it is passed using the -p / --password argument. It's probably easier to do this masking in c++, but hopefully you can do the same in Go using something like this ( https://github.com/ErikDubbelboer/gspt )
If this is a reasonable request, I'd also like the password to be masked if it is passed as a --uri mongodb://user:secretPassword123@127.0.0.1 connection string.
Just replacing the entire password with xxx or an "x" for each character in the password would work for me.
- related to
-
TOOLS-2447 Improve processlist output
- Development Complete
-
SERVER-30997 mongo cli --password is masked, but not when using mongodb:// connection string
- Closed