News for hackers. Stuff that matters.
Re:HAProxy is not affected by the HTTP/2 Rapid Reset Attack ... by tpmx on Tuesday October 10, 2023 @05:07PM (#37837507)
I'm quite impressed with HAProxy. It takes some effort to fully understand the configuration file format (hint: you've got to read the documentation, not just look at examples to fully grok it), but it's so worth it, IMO.

It's also a nice treat to have the founder (Willy Tarreau) of the HAProxy company being so active in the community, so many years later (the initital release was in 2001). I regularly see him answering newbie questions.

HAproxy docs: https://docs.haproxy.org/ (Suggestion: Pick 2.8 (LTS))

Re:HAProxy is not affected by the HTTP/2 Rapid Reset Attack ... by chaps on Tuesday October 10, 2023 @06:08PM (#37838311)
Agreed. Haproxy is an absolute wonder compared to similar systems. It all just feels so much cleaner, thought out, and built from the ground up for many different use cases. It very much has a feel that reminds me a lot of the spirit of sqlite.
Re:HAProxy is not affected by the HTTP/2 Rapid Reset Attack ... by tpmx on Tuesday October 10, 2023 @06:44PM (#37838705)
Yeah. Stringency and rigor are words that come to mind.
Re:HAProxy is not affected by the HTTP/2 Rapid Reset Attack ... by andyfleming on Tuesday October 10, 2023 @10:54PM (#37840358)
How does it compare with Caddy?
Re:HAProxy is not affected by the HTTP/2 Rapid Reset Attack ... by superq on Wednesday October 11, 2023 @12:08AM (#37840773)
Caddy is a bit quick and dirty, rapidly-developing, with neat plugins but hard to configure for more complex scenarios and too light on the docs (IMO).

HA Proxy is robust, comprehensive, mature, and bulletproof. It's basically boring because it works so well.

If you have to choose only one to learn, choose HA Proxy.

Re:HAProxy is not affected by the HTTP/2 Rapid Reset Attack ... by jiripospisil on Wednesday October 11, 2023 @08:29AM (#37843593)
I wanted to try it out just now but hit a roadblock immediately - it cannot automatically obtain and maintain TLS certificates. You have to use an external client (e.g. acme.sh), set up a cron to check/renew them, and poke HAProxy to reload them if necessary. I'm way past doing this in 2023.

https://www.haproxy.com/blog/haproxy-and-let-s-encrypt

https://github.com/haproxy/haproxy/issues/1864

Re:HAProxy is not affected by the HTTP/2 Rapid Reset Attack ... by nickramirez on Wednesday October 11, 2023 @04:46PM (#37850042)
If getting Let's Encrypt to work with HAProxy is your only struggle, you'll soon overcome it and be loving HAProxy. And there are multiple ways to set up Let's Encrypt, if you don't want to use acme.sh. For example, you could use certbot. There are blog posts that cover that pretty well.
Re:HAProxy is not affected by the HTTP/2 Rapid Reset Attack ... by superq on Friday October 13, 2023 @01:21PM (#37873070)
you may wish to use certbot instead:

https://github.com/acmesh-official/acme.sh/issues/4659

Re:HAProxy is not affected by the HTTP/2 Rapid Reset Attack ... by xiasongh on Wednesday October 11, 2023 @10:19AM (#37844735)
What about nginx? I'm not too familiar but I was under the impression that it was the safe choice
Re:HAProxy is not affected by the HTTP/2 Rapid Reset Attack ... by tpmx on Wednesday October 11, 2023 @02:18PM (#37848213)
It's primary focus is/was being a web server - a faster Apache. This shows.

Also (after the acqusition by F5?) more features are kept away from the open source version compared to HAProxy.

Re:HAProxy is not affected by the HTTP/2 Rapid Reset Attack ... by exabrial on Tuesday October 10, 2023 @07:26PM (#37839076)
It's become my swiss army knife of TCP. I nearly always terminate TCP first with haproxy "out of process" of whatever, then have it proxy over a unix socket to "whatever". This allows an immense amount of flexibility, from being able to "wiretap" whats going on in the real world, to default error pages, alarms, monitoring, handling CORS... tons of uses.
Re:HAProxy is not affected by the HTTP/2 Rapid Reset Attack ... by tpmx on Wednesday October 11, 2023 @03:15PM (#37848995)
Please write a blog post about this and submit it to HN!
Re:HAProxy is not affected by the HTTP/2 Rapid Reset Attack ... by scns on Tuesday October 10, 2023 @07:31PM (#37839128)
That is some very well written documentation IMHO.
Re:HAProxy is not affected by the HTTP/2 Rapid Reset Attack ... by chasingtheflow on Tuesday October 10, 2023 @08:01PM (#37839350)
Can’t seem to read it on mobile.
Re:HAProxy is not affected by the HTTP/2 Rapid Reset Attack ... by rrrix1 on Wednesday October 11, 2023 @06:59AM (#37842973)
You probably don't want to. Usually it needs at least a browser window, an editor and maybe an open TTY.

haproxy.cfg can be ... tricky.

Re:HAProxy is not affected by the HTTP/2 Rapid Reset Attack ... by bkallus on Thursday October 12, 2023 @04:45PM (#37862950)
I had the privilege of reporting a few bugs in HAProxy in the last few months. Willy's a real treasure; he's friendly and knowledgeable, and he clearly cares a ton about HAProxy even after 22 years of development.