3 ms·
If you run the ps command you can see all processes with all the command line arguments. They’re not secret, which is why you shouldn’t put passwords there. No
by tinus_hn 9y ago
If you run the ps command you can see all processes with all the command line arguments. They’re not secret, which is why you shouldn’t put passwords there.
Now typically these processes only run for a short time so it’s difficult to catch passwords manually but it’s predictable so a script can.
- your-nanny 9y agoSo what is the proper way?
- tinus_hn 9y agoEither store them in environment variables or pass them through file descriptors, such as standard input. Note that you do need to take care to clean up the environment if you create new, unprivileged subprocesses or these secrets may leak.
- your-nanny 9y agoThanks.
- deleted 9y ago[deleted]