News for hackers. Stuff that matters.
Re:Hypermodern Python by dahfizz on Thursday May 28, 2020 @10:05AM (#23337345)
I think `curl | bash` is treated unfairly. Whether you `git clone` or `curl` a script, you are fundamentally doing the same thing: downloading and executing code from the internet. `git clone` just feels safer because it is hiding that fact under layers of abstraction.

If I want to run pip, I need to trust PYPA. It's their code I want to run, and I need to download it one way or another. If I don't trust them to keep their domain secure, I don't see why I would trust them to keep their github repo secure.

And the whole point of pip is to download code from PYPI and run it. pip, git, curl|bash, all do the same exact thing in this case. curl|bash just smells funny because it makes it more plainly obvious what is going on.

Re:Hypermodern Python by dtech on Thursday May 28, 2020 @10:31AM (#23337717)
git clone will not execute arbitrary code from the internet without inspection.
Re:Hypermodern Python by hagy on Thursday May 28, 2020 @10:54AM (#23337987)
I assume the cloned git repo includes arbitrary code that will be executed with the same security profile as a downloaded shell script.
Re:Hypermodern Python by dahfizz on Thursday May 28, 2020 @12:07PM (#23338912)
If you read the source of all the programs you run, more power to you. Most people don't.