News for hackers. Stuff that matters.
Re:Dito – an advanced Layer 7 reverse proxy server written i... by imiric on Wednesday October 09, 2024 @03:23PM (#41791673)
It's good that this exists, but new projects that come into a well established space should make it clear how they differentiate themselves from existing solutions.

For example, it's not clear to me why anyone would choose to use this instead of Caddy, which is a robust server that already has all these features, whether OOB or via plugins.

Re:Dito – an advanced Layer 7 reverse proxy server written i... by deepsun on Wednesday October 09, 2024 @04:18PM (#41792172)
It's written in Go. /s
Re:Dito – an advanced Layer 7 reverse proxy server written i... by pipe01 on Wednesday October 09, 2024 @04:44PM (#41792422)
So is caddy fwiw
Re:Dito – an advanced Layer 7 reverse proxy server written i... by galdor on Wednesday October 09, 2024 @03:37PM (#41791794)
This space may be well established, but it still does not fullfill all needs. For my own:

- NGINX does not support ACME, and I'm fed up with dealing with Lego and other external ACME clients. Also the interactions between locations has never been clear to me.

- Caddy plugins mean I have to download xcaddy and rebuild the server. I really do not want to rebuild services on my servers just because I need a simple layer 4 reverse proxy (e.g. so that I can terminate TLS connections in front of my IRC server).

So I'm building my own server/reverse proxy (https://github.com/galdor/boulevard). Competition is good for everyone!

Re:Dito – an advanced Layer 7 reverse proxy server written i... by ChocolateGod on Wednesday October 09, 2024 @03:49PM (#41791903)
> Caddy plugins mean I have to download xcaddy and rebuild the server. I really do not want to rebuild services on my servers just because I need a simple layer 4 reverse proxy

That's why containers exist.

Re:Dito – an advanced Layer 7 reverse proxy server written i... by galdor on Wednesday October 09, 2024 @04:06PM (#41792079)
You would be surprised by how many infrastructures have software running without any container :) I'm running FreeBSD on my servers so containers are out, but even if I was Linux, why would I use containers for base services?
Re:Dito – an advanced Layer 7 reverse proxy server written i... by MrDarcy on Wednesday October 09, 2024 @04:13PM (#41792126)
I think they meant use a container to build caddy with xcaddy.

It is essentially a one liner to cross compile caddy for all your use cases as long as you have access to a container runtime to build it.

Re:Dito – an advanced Layer 7 reverse proxy server written i... by ChocolateGod on Wednesday October 09, 2024 @05:10PM (#41792665)
> why would I use containers for base services?

This is a supported feature of podman which can generate systemd units to make system services.

But, as for advantages (system has some of them too), sandboxing, resource constraints, ease of distribution, not being broken by system updates (glibc update on RHEL broke some Go binaries iirc).

My rule of thumb is that only system software (e.g. DE, firewall, drivers, etc) belong on the base system, everything else is going in a container. This is very easy to do now on modern Linux distros.

Re:Dito – an advanced Layer 7 reverse proxy server written i... by eikenberry on Wednesday October 09, 2024 @06:18PM (#41793347)
DE?
Re:Dito – an advanced Layer 7 reverse proxy server written i... by trepanne on Thursday October 10, 2024 @01:04AM (#41795699)
Presumably “desktop environment” e.g. KDE plasma or Gnome. You don’t really want to be containerising those.
Re:Dito – an advanced Layer 7 reverse proxy server written i... by ChocolateGod on Thursday October 10, 2024 @03:02AM (#41796316)
Yeh. I know people have run DE/Compositors in containers, but it doesn't really have any benefits outside of testing.
Re:Dito – an advanced Layer 7 reverse proxy server written i... by alphabettsy on Wednesday October 09, 2024 @03:53PM (#41791936)
Boulevard has to be compiled at some point. Wouldn’t it extremely simple to setup a GitHub Action to build Caddy in the way you desire?
Re:Dito – an advanced Layer 7 reverse proxy server written i... by galdor on Wednesday October 09, 2024 @04:05PM (#41792071)
Yes, it can be compiled and packaged so that I can one day install it as any other package, in my case on FreeBSD.

And of course it's not just about avoid recompilation, there are a lot of features I want to add.

Re:Dito – an advanced Layer 7 reverse proxy server written i... by CAP_NET_ADMIN on Wednesday October 09, 2024 @04:24PM (#41792242)
Which Caddy plugins are you using?
Re:Dito – an advanced Layer 7 reverse proxy server written i... by saurik on Wednesday October 09, 2024 @04:54PM (#41792498)
FWIW, it doesn't handle your use case of Layer 4, but for the people at Layer 7, another option is good ol' Apache: it is so flexible and extensible it is almost a problem, people tend to not know it long ago went event-oriented with mpm_event, and it supports ACME internally (as a module, but a first-party module that is seamlessly integrated). (I do appreciate, though, that it is critically NOT written in a memory safe language, lol, but neither is nginx.)
Re:Dito – an advanced Layer 7 reverse proxy server written i... by stackskipton on Wednesday October 09, 2024 @05:51PM (#41793075)
Layer 4 and 7? HAProxy will do that no problem.
Re:Dito – an advanced Layer 7 reverse proxy server written i... by stackskipton on Wednesday October 09, 2024 @05:52PM (#41793084)
HA Proxy already exists and will do both. You can even redirect Layer 4 HTTP/HTTPS Ports to another reverse proxy server if you want to get inception levels of crazy.
Re:Dito – an advanced Layer 7 reverse proxy server written i... by imiric on Wednesday October 09, 2024 @06:19PM (#41793351)
Sure, but c'mon, HAProxy is the 800lb gorilla in this case when you just need something simple.
Re:Dito – an advanced Layer 7 reverse proxy server written i... by imiric on Wednesday October 09, 2024 @06:17PM (#41793341)
> Competition is good for everyone!

Definitely!

But see how in your project the very first paragraph explains why it exists, and what it does differently. This is what I think is missing from Dito. It doesn't have to be super in depth.

I do disagree with your argument against Caddy, though. How often do you realistically rebuild your services? If it's anytime you would upgrade, then it seems manageable. xcaddy makes this trivial, anyway. Though you don't really need to use it. There's a convenient pro-tip[1] about doing this with a static main.go file instead.

Good luck with your project!

[1]: https://github.com/caddyserver/xcaddy#warning-pro-tip

Re:Dito – an advanced Layer 7 reverse proxy server written i... by mholt on Wednesday October 09, 2024 @06:30PM (#41793447)
> - Caddy plugins mean I have to download xcaddy and rebuild the server. I really do not want to rebuild services on my servers just because I need a simple layer 4 reverse proxy (e.g. so that I can terminate TLS connections in front of my IRC server).

I mean, you don't havse to "rebuild services" -- if you need the plugin, just deploy the binary with the plugin. It's not like it changes (other than upgrades, which you'd do regardless of the plugin).

Re:Dito – an advanced Layer 7 reverse proxy server written i... by dizhn on Thursday October 10, 2024 @07:43AM (#41797858)
If the plugin is downloadable from caddy's site, it can also be updated in place along with the caddy binary. (There's an option to keep the same plugins)
Re:Dito – an advanced Layer 7 reverse proxy server written i... by alessioalex on Thursday October 10, 2024 @12:39AM (#41795562)
You can use kamal-proxy, recently released. It handles SSL and zero downtime deployments. It’s small and from what I checked the code is easy to read and understand.
Re:Dito – an advanced Layer 7 reverse proxy server written i... by tomcam on Wednesday October 09, 2024 @06:28PM (#41793430)
> new projects that come into a well established space should make it clear how they differentiate themselves from existing solutions.

You sound like a helpful person. Maybe you're volunteering to create a site to do just that?