Re:Handling secrets (somewhat) securely in shells
by luckman212 on Tuesday January 13, 2026 @11:26PM
(#46612322)
would very much like to see a small example of how to create, consume, and destroy those FIFOs...
[ Parent
| on HN ]
Re:Handling secrets (somewhat) securely in shells
by stouset on Tuesday January 13, 2026 @11:29PM
(#46612343)
https://man7.org/linux/man-pages/man1/mkfifo.1.html
Pretty simple. This creates a named pipe. One end of a shell command redirects to it, one end redirects from it. rm when finished.
Re:Handling secrets (somewhat) securely in shells
by akdev1l on Wednesday January 14, 2026 @12:13AM
(#46612583)
You can just use process substitution
cat <(secret-print my-secret)
Re:Handling secrets (somewhat) securely in shells
by SoftTalker on Wednesday January 14, 2026 @12:33AM
(#46612698)
In a shell script situation, you'd typically trap EXIT and ERR and remove the fifo in the handler.