Live data from Hacker News

Show HN: I'm rewriting a web server written in Rust for speed and ease of use

ferron.sh

41–50 of 100 posts

Re: Show HN: I'm rewriting a web server written in Rust for speed and ease of use

#41

I know it's not popular to care about these things these days, but please consider a different installation mechanism than curl piped into sudo bash. It's irresponsible and normalizes a practice that never should've happened.

Can we stop with this nonsense already? If you trust them enough to run their server code, why wouldn't you trust them with the installation script?

[deleted]

Re: Show HN: I'm rewriting a web server written in Rust for speed and ease of use

#42

Earlier quoted context omitted.

Can we stop with this nonsense already? If you trust them enough to run their server code, why wouldn't you trust them with the installation script?

I don’t trust them enough to run as root.

But you have to. Nginx, caddy, traefik, etc cannot run without root or even if you can, it would be way more limiting

Re: Show HN: I'm rewriting a web server written in Rust for speed and ease of use

#43

I know it's not popular to care about these things these days, but please consider a different installation mechanism than curl piped into sudo bash. It's irresponsible and normalizes a practice that never should've happened.

They do offer other installation methods already.

Installation via package managers (Debian/Ubuntu), using repo provided by ferron

https://ferron.sh/docs/installation/debian

Installation as a Docker container

https://ferron.sh/docs/installation/docker

And more.

Re: Show HN: I'm rewriting a web server written in Rust for speed and ease of use

#44

There is something funny going on in the benchmarking section. If you look at the charts, they don't benchmark the same servers in 4 examples. Each of the 4 charts have data for Ferron and Caddy, but then include data for lighttpd, apache, nginx and traefik selectively for each chart, such that each chart has exactly four selected servers. That doesn't inspire confidence.

It's also using their own benchmarking tool, rather than one of the dozens of existing tools. Doesn't mean they are cheating, but it is a bit suspicious.

Re: Show HN: I'm rewriting a web server written in Rust for speed and ease of use

#45

> Any feedback is welcome! Read https://www.joelonsoftware.com/2006/12/09/simplicity/ and ask yourself if you are truly solving anyone's problem or if you are just looking for a way to rationalize the amount of time you are spending on a hobby.

It's good to have as many web servers as possible out there. Stop being so harsh and touch some grass

Re: Show HN: I'm rewriting a web server written in Rust for speed and ease of use

#46

Earlier quoted context omitted.

Can we stop with this nonsense already? If you trust them enough to run their server code, why wouldn't you trust them with the installation script?

Because untrustworthy websites can piggyback on the brand name. "Download ffmpeg here: sudo bash -c ..." And then the installation script from our malicious site installs ffmpeg just fine, plus some stuff you have no idea about. And you never know that you've just been hacked.

If you get your install instructions from an untrustworthy website, there’s nothing preventing them from telling you to use a third-party apt repository or ppa that gives you a malicious version of the thing.

There’s not really a difference between curl piped to bash, and installing packages from a third-party package repository that the distro maintainers have no involvement in with.

Re: Show HN: I'm rewriting a web server written in Rust for speed and ease of use

#48

Earlier quoted context omitted.

I don’t trust them enough to run as root.

But you have to. Nginx, caddy, traefik, etc cannot run without root or even if you can, it would be way more limiting

Only for binding to ports under 1024 really, like 80 (http) and 443 (https). Once it has bound to the ports it can drop down to running as a low-privilege user (usually named www or httpd or similar).

On Linux you can allow your program to bind to those ports even without running the program itself as root.

https://superuser.com/questions/710253/allow-non-root-proces...

Re: Show HN: I'm rewriting a web server written in Rust for speed and ease of use

#49

I know it's not popular to care about these things these days, but please consider a different installation mechanism than curl piped into sudo bash. It's irresponsible and normalizes a practice that never should've happened.

Can we stop with this nonsense already? If you trust them enough to run their server code, why wouldn't you trust them with the installation script?

Read how Tls works. Many people Can mitm. That’s why we sign applications

Re: Show HN: I'm rewriting a web server written in Rust for speed and ease of use

#50

I know it's not popular to care about these things these days, but please consider a different installation mechanism than curl piped into sudo bash. It's irresponsible and normalizes a practice that never should've happened.

They do offer other installation methods already. Installation via package managers (Debian/Ubuntu), using repo provided by ferron https://ferron.sh/docs/installation/debian Installation as a Docker container https://ferron.sh/docs/installation/docker And more.

That's true, but that's not what's front and center. Curl-sudo-bash is the first thing you see on the site, all the other options are close to the bottom of the page. Defaults matter and people tend to use whatever is the first option presented to them unless they have a good reason to do otherwise.
Post reply on HN