News for hackers. Stuff that matters.
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
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.
Re:Show HN: Docker-phobia: Analyze Docker image size with a ... by timando on Sunday April 28, 2024 @08:32PM (#40193224)
Iterate through /proc/<pid>/fd and check for the pipe id in the symlink target.
Re:Show HN: Docker-phobia: Analyze Docker image size with a ... by adamomada on Sunday April 28, 2024 @03:26PM (#40191119)
The shell would have to give the warning