Email or username:

Password:

Forgot your password?
Top-level
Eric Curtin

@marcan the one flow I can think of where it might break is if you lose your connection mid-delivery of the file, although I have not tested this. Could execute half a script.

But yes I agree, if you don't trust TLS, we might as well just deem https in general insecure.

3 comments
Eric Curtin

@marcan the other benefit of a package (rpm) say from Fedora, not anyone can become a Fedora packager, you need a sponsor who trusts you. This could potentially be obtained via social engineering of course.

But of course in this case it's a macOS installer and I don't know how auditing brew packagers works 😊

But I generally agree some of the arguments around curl|sh are silly

mei

@ecurtin @marcan the general idiom I’ve seen is to have the script consist of only function definitions, followed by a call to main

Hector Martin

@ecurtin That's why we have a truncation guard (but even before we had it, I'm pretty sure for any arbitrary truncation point you could pick nothing bad would happen, given the simplicity of the bootstrap script).

Go Up