New favorite tool 😍

  • onlinepersona@programming.dev
    link
    fedilink
    English
    arrow-up
    27
    arrow-down
    1
    ·
    1 month ago

    I would encourage you to actually think about whether or not this is really true, rather than just parroting what other people say.

    I would encourage you to read up on the issue before thinking they haven’t.

    See if you can think of an exploit I perform if you pipe my install script to bash, but I can’t do it you download a tarball of my program and run it.

    Here is the most sophisticated exploit: Detecting the use of “curl | bash” server side.

    It is also terrible conditioning to pipe stuff to bash because it’s the equivalent of “just execute this .exe, bro”. Sure, right now it’s github, but there are other curl|bash installs that happen on other websites.

    Additionally a tar allows one to install a program later with no network access to allow reproducible builds. curl|bash is not repoducible.

    Anti Commercial-AI license

    • BatmanAoD@programming.dev
      link
      fedilink
      arrow-up
      4
      arrow-down
      8
      ·
      1 month ago

      But…“just execute this .exe, bro” is generally the alternative to pipe-to-Bash. Have you personally compiled the majority of software running on your devices?

      • onlinepersona@programming.dev
        link
        fedilink
        English
        arrow-up
        6
        arrow-down
        1
        ·
        1 month ago

        Are you seriously comparing installing from a repo or “app store” to downloading a random binary on the web and executing it?

        P.S I’ve compiled a lot of stuff using nix, especially when it’s not in the cache yet or I have to modify the package myself.

        Anti Commercial-AI license

        • BatmanAoD@programming.dev
          link
          fedilink
          arrow-up
          1
          arrow-down
          2
          ·
          1 month ago

          No, I agree that a package manager or app store is indeed safer than either curl-bash or a random binary. But a lot of software is indeed installed via standalone binaries that have not been vetted by package manager teams, and most people don’t use Nix. Even with a package manager like apt, there are still ways to distribute packages that aren’t vetted by the central authority owning the package repo (e.g. for apt, that mechanism is PPAs). And when introducing a new piece of software, it’s a lot easier to distribute to a wide audience by providing a standalone binary or an install script than to get it added to every platform’s package manager.