r/madeinrust • • 19d ago

AI Assisted I built Aralez, a Rust-based reverse proxy and load balancer using Pingora — looking for technical feedback

Post image

I've been working on Aralez, an open-source reverse proxy and load balancer written in Rust, built on top of Cloudflare's Pingora.

The project started as an attempt to build a performant, flexible proxy that could handle more than basic HTTP load balancing. Over time, it has grown into a fairly feature-rich system.

Some of the new features implemented in the latest v0.95.5 release

  • Response Caching: With Memory, Hybrid, RESP (Redis family), TiKV storages

  • Cluster Mode: Master/worker deployment model.

  • Structured logging: Plug-able modules, currently Elasticsearch.

  • Acme DNS-01 Challenge: Plugable currently Cloudflare, Route 53, DigitalOcean

  • The full list of features are here

I'm particularly interested in feedback from people with experience in Rust networking, asynchronous systems, proxies and high-performance services.

Also would be very thankful for code contribution, especially with Acme DNS-01 providers.

Examples are at the bottom this page.

GitHub: https://github.com/sadoyan/aralez
Documentation: https://aralez.rs/

17 Upvotes

11 comments sorted by

1

u/debackerl 19d ago

I think that supporting expressions using a Rust interpreter would be useful. F5 and NGINX can do it. Like to rewrite path, maybe determine upstream pool, block traffic, etc.

2

u/sadoyan 19d ago

If you mean regular expressions in path routing , that's on roadmap .

1

u/SmallDodgyCamel 18d ago

Does this support wildcard certificates under DNS-01 challenges? You might want to document that if it does. And I think custom DNS-01 provider documentation needs its own section instead of throwing it in the middle of the discussion about configuring the DNS-01 challenge.

The wording surrounding the need for “any” working TLS cert and keypair to allow the TLS listener to start is unclear too. Without them would ACME configured with a DNS-01 challenge and provider credentials fail?

This looks interesting though so I’ll take a look.

1

u/sadoyan 18d ago

Yes it's supports wildcard certificates with and without DNS-01 challenge. 

So far I have developed support for only Cloudflare, Route53 and Digitalocean. 

Agreed about custom DNS-01 challenge documentation, will make it. 

"Any working certificate pair" is required to build TLS listener. It will fail to run with HTTPS if there is no certificate, just will not be able to bind on TLS port. 

1

u/fey0n 17d ago

Nice update! Is crowdsec integration possible?

1

u/sadoyan 17d ago

Cam you please create an issue at GitHub for that ? 

I'll see if I can do something :-)

1

u/yehors 17d ago

Add comparison with ferron

2

u/AutoModerator 19d ago

Upvote this comment if you think this project is AI slop. Downvote this comment if you think this project is not AI slop.

This is to indicate to other users of the subreddit and is not used for moderation.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/e-rule 7d ago

Curios, what library behind TLS handshake, is it openssl or RustTLS?