News for hackers. Stuff that matters.
Re:Techcrunch SSL Cert Expired by vinaypai on Wednesday February 26, 2020 @11:22AM (#22424375)
I don't meant to pooh-pooh your project, but Go's memory safety isn't some kind of automatic security guarantee... especially when it comes with a giant downside of having to run as root. Every other production-grade server drops privileges as soon as possible, for a very good reason.
Re:Techcrunch SSL Cert Expired by mholt on Wednesday February 26, 2020 @11:32AM (#22424485)
Go does bounds checking and doesn't have dangling pointers, so it's inherently safe from buffer overflows.

You don't have to run Caddy as root in production, even to bind to low ports. (None of my sites do.) https://memorysafety.fail for more info on memory unsafety.

Re:Techcrunch SSL Cert Expired by vinaypai on Wednesday February 26, 2020 @11:43AM (#22424617)
Thank you for your condescending reply. I understand Go's memory model quite well (and have used Go quite a bit). News flash: you can have bugs of other kinds besides buffer overflows.
Re:Techcrunch SSL Cert Expired by mholt on Wednesday February 26, 2020 @11:47AM (#22424677)
Er, sorry, I wasn't being condescending. I intended to clarify some relevant facts, please don't take it personally.

You had said:

> Go's memory safety isn't some kind of automatic security guarantee...

But in some cases, it is. I'm not claiming more than that, nor am I saying that you can't have "bugs of other kinds" -- on which point I agree with you.

Re:Techcrunch SSL Cert Expired by vinaypai on Wednesday February 26, 2020 @12:10PM (#22424933)
> Er, sorry, I wasn't being condescending. I intended to clarify some relevant facts, please don't take it personally.

Fair enough, it's easy to misunderstand the intended tone in online comments.

Re:Techcrunch SSL Cert Expired by justinclift on Wednesday February 26, 2020 @11:42AM (#22424603)
Why would a Go server need to run as root?

Asking because I run Go based servers (in production) on Linux, and they're not running any of the Go processes as root.

Re:Techcrunch SSL Cert Expired by vinaypai on Wednesday February 26, 2020 @11:49AM (#22424712)
https://github.com/caddyserver/caddy/issues/528

It seems like they've fixed their systemd config though to run as a non-privileged user, so that shouldn't be an issue. But it seems like Go processes can't drop privileges because of an open issue with the runtime.

Re:Techcrunch SSL Cert Expired by JdeBP on Thursday February 27, 2020 @07:30AM (#22432644)
It is interesting to read https://github.com/caddyserver/caddy/issues/528#issuecomment... , by the way, and see how all of this was later removed because it did not work with older versions of systemd. Notice the reviewer comments at https://github.com/caddyserver/caddy/pull/1127 .
Re:Techcrunch SSL Cert Expired by JdeBP on Thursday February 27, 2020 @07:25AM (#22432621)
Actually, it is because of a long-standing issue with Linux.

* http://jdebp.uk./FGA/linux-thread-problems.html