| ▲ | ptx 6 hours ago | ||||||||||||||||||||||||||||||||||
Is there a good alternative to Apache and Nginx that's written in a memory-safe language and not full of security holes? I briefly looked at Jetty (written in Java) and Caddy (written in Go) but they seem to have a history of vulnerabilities of other types (e.g. shell injection in Jetty) so I'm not sure they would be any better. | |||||||||||||||||||||||||||||||||||
| ▲ | nobody42 an hour ago | parent | next [-] | ||||||||||||||||||||||||||||||||||
Memory safety is good, but does not protect from every threat. In this day and age infrastructure operators should familiarize themselves with proactive defenses, MAC: SElinux and AppArmor. It required much friction earlier, but there are more tools to ease the usage today. https://presentations.nordisch.org/apparmor/ https://github.com/nobody43/apparmor-profiles/blob/master/ng... https://github.com/nobody43/apparmor-suggest Disclaimer: I'm the author of both repos. | |||||||||||||||||||||||||||||||||||
| ▲ | dgellow 5 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
Any software used at the scale of Apache and nginx will have a history of vulnerabilities. The fact they both survived with their market share for so long is a good sign | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| ▲ | embedding-shape 5 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
Caddy been a breeze to use, bit sucky model with "we have thousands of binaries depending on what combination of plugins you want" instead of a proper plugin system, but if you're building it from source, it's pretty nifty and simple anyways. | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| ▲ | toast0 3 hours ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||
Apache and I think Nginx have a huge list of features and stuff. Most alternate http servers limit the scope a lot, so you'd need to specify what features you're interested in. But I haven't seen a whole lot of discussion of http servers in memory safe languages. The big three C-based servers: Apache, Nginx, and lighttpd are all pretty solid... I don't think there's a lot of people interested in giving that up for a new project just because of the language. I'll also add that when you pick up most memory safe languages, you're also picking up their sometimes extensive runtime / virtual machine and all the accoutrements. A Java webserver probably uses log4j because any random Java project probably does, etc. | |||||||||||||||||||||||||||||||||||
| ▲ | 4 hours ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||
| [deleted] | |||||||||||||||||||||||||||||||||||