Re:Show HN: Docker-phobia: Analyze Docker image size with a ...
by Wingy on Sunday April 28, 2024 @02:31PM
(#40190670)
curl should probably scream when it detects piping unencrypted wan (not local ips) connections to shell, sort of like what openssh does when a host’s fingerprint changes
[ Parent
| on HN ]
Re:Show HN: Docker-phobia: Analyze Docker image size with a ...
by mr_mitm on Sunday April 28, 2024 @03:22PM
(#40191092)
How could curl detect where it's piped to?
Re:Show HN: Docker-phobia: Analyze Docker image size with a ...
by take-five on Sunday April 28, 2024 @03:51PM
(#40191283)
Something like (in Python)
os.isatty(sys.stdout.fileno())
Re:Show HN: Docker-phobia: Analyze Docker image size with a ...
by Zambyte on Sunday April 28, 2024 @04:20PM
(#40191464)
That doesn't say where it's piped though. It could be redirected to a file, or piped to something harmless like jq.