How to Handle Secrets on the Command Line Piped Secrets:$(< /dev/stdin) uses a neat Bash substitution to make an otherwise secure pipe insecure. For example, if you run: $ echo "secret-data" | curl -d "$(</dev/stdin)" https://example.com:3000 Then the output of
Web Excursion 2021-06-14
Web Excursion 2021-06-14
Web Excursion 2021-06-14
How to Handle Secrets on the Command Line Piped Secrets:$(< /dev/stdin) uses a neat Bash substitution to make an otherwise secure pipe insecure. For example, if you run: $ echo "secret-data" | curl -d "$(</dev/stdin)" https://example.com:3000 Then the output of