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.