14 comments

  • 1a527dd57 hours ago
    Anyone else got a really weird Chorme pop-up asking which cert to use for su3.io:443?<p>Very bizarre, never seen that before.<p>Thumbprints:<p><pre><code> - 60949a09aab8677f87a0b9eda7099a03ca510fb3 - 1b146798f0dc93773247e86312f1b730c4eeebb3</code></pre>
    • KronisLV6 hours ago
      &gt; Very bizarre, never seen that before.<p>For my own stuff that&#x27;s not meant for a wider audience, I sometimes use mTLS in front of my apps, alongside self-signed certs (my own CA) that shouldn&#x27;t show up in certificate transparency logs.<p>This site also seems to be requesting a certificate from the user. Normally you probably don&#x27;t want that for public facing resources.
    • sunaookami6 hours ago
      Same on Firefox
    • embedding-shape6 hours ago
      Here it attempts to read my personal certificate that sits in the browser that I use for filling my taxes and do government stuff, suspicious indeed.
      • cmgbhm5 hours ago
        That’s likely just the side effect of supporting mtls. Mutual TLS came around at the same time as Microsoft did implicit network auth. Seemed magical at the time and so hare brained for eons of problems. The user side tls never caught on in most circles and still has the ancient sharp edges
        • iknowstuff3 hours ago
          Could probably buff it with passkeys these days<p><a href="https:&#x2F;&#x2F;www.passkeyprf.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.passkeyprf.com&#x2F;</a>
      • naturalmovement3 hours ago
        That&#x27;s literally how client certificates work.<p>It&#x27;s not attempting to &quot;read&quot; anything, nor is it the least bit suspicious or malicious.<p>Your browser was asked if it would like to present a certificate to authenticate, and you were prompted to choose one if you please. You can also hit cancel as client auth can be optional and the server will either serve you the page or a 401&#x2F;403.<p>It&#x27;s like being asked to show ID to enter a pub, you can either show one or decline, and they may or may not let you enter based on that transaction.
        • TurdF3rguson39 minutes ago
          It&#x27;s a <i>little</i> suspicious. Why are they doing something that no other website in the world does? I was curious about zero-whatever but not enough to do whatever this is.
          • naturalmovement29 minutes ago
            Bruh it&#x27;s one line in nginx config.<p>&gt; that no other website in the world does<p>That you know of. Anywhere with stringent security it&#x27;s everywhere.
      • mook5 hours ago
        That&#x27;s because the client certificate interface in browsers is supremely dumb. It always just lists all certificates you have, with very little context in the UI, and hopes that&#x27;s good enough. I believe that&#x27;s part of the reason client certificates are not poplar; having actual users deal with that is terrible, and the browsers (in practice, Chrome because of its overwhelming market share) isn&#x27;t incentivized to fix it.
        • Avamander2 hours ago
          Servers can communicate their preference in terms of CAs they want. But the UX in browsers is unbelievably horrible for no good reason.<p>Not only is it difficult for an user to make a proper selection, it&#x27;s also hard to fix a wrong one. The error pages are also terrible. There&#x27;s no way for the site owner to request that when the navigation to the (auth) page fails, redirect back. Nope, no way to do error handling without some really clever iframe stuff and even then it&#x27;s way too opaque.<p>God forbid you have to deal with CORS + mTLS.
          • elevation1 hour ago
            &gt; God forbid you have to deal with CORS + mTLS<p>As someone who is about to deal with exactly this, what kind of trouble am I in for?
    • linsomniac6 hours ago
      Same on Arc
    • jorl177 hours ago
      Same on Zen
  • codingjoe6 hours ago
    &quot;Caddy compatible&quot; minus everything that matters, like ACME and plugins. And NGINX still steals the show. Not everything needs to be rewritten.
    • __natty__6 hours ago
      Same thoughts. If I need more performant caddy alternative I&#x27;m going to use nginx at least it has some extras.
    • jarym3 hours ago
      Agree on lack of ACME but the codebase is far cleaner than nginx. In theory it&#x27;d be easier to audit?
  • tln7 hours ago
    No ACME! That is a dealbreaker<p><a href="https:&#x2F;&#x2F;github.com&#x2F;losfair&#x2F;zeroserve&#x2F;blob&#x2F;main&#x2F;CADDY_COMPAT.md#intentional-exclusions" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;losfair&#x2F;zeroserve&#x2F;blob&#x2F;main&#x2F;CADDY_COMPAT....</a>
    • codys7 hours ago
      Yes, I agree it would be very nice to have a way to integrate ACME into zeroserve. I&#x27;m not sure if zeroserve&#x27;s plugin system might allow one to add a plugin to support it?
  • augunrik8 hours ago
    I am surprised how well nginx holds up?!
    • phillipseamore7 hours ago
      Why? It&#x27;s one of the most optimized HTTP servers ever. Anything that claims beating nginx in benchmarks should be treated with high suspicion. I think these zeroserve numbers are likely accurate but it doesn&#x27;t have the features and module ecosystem of nginx so the margins aren&#x27;t worth it for me.
      • augunrik6 hours ago
        Because it passes more boundaries and stuff. But hey, I didn’t code a Webserver so far - so what do I know. :D<p>AFAIK eBPF can be hardware offloaded. If you have the use case.
        • someothherguyy4 hours ago
          &gt; But hey, I didn’t code a Webserver so far - so what do I know<p>If you limit the scope, its worth doing and might not take as much effort as you might think. You could possibly find some enjoyment and learn a few things doing so.
    • miladyincontrol3 hours ago
      I mean, nginx dang well should? This is just an incredibly synthetic http(s)&#x2F;1.1 test for what its worth.<p>Like you totally could turn off garbage collection for caddy especially since this is only testing incredibly short single response queries that would never need GC. Shockingly you would actually get better performance than either nginx or zeroserve, but like the uselessness of this benchmark it&#x27;d mean nothing to the real world usage of these web servers.
      • chucky_z3 hours ago
        Unfortunately that is likely untrue. Try it yourself, Go with GC disabled isn’t some magic bullet for performance as much as I’d like it to be.
  • pbohun2 hours ago
    I looked into writing an http server based on iouring myself, but all the resources I could find said iouring is less safe from a cybersecurity perspective.<p>Is there a safe way to use iouring for a webserver, or is libuv the better way to go, even though it has less performance?
  • smallerize7 hours ago
    I still think of eBPF as not being Turing-complete. There is still a complexity limit in the verifier. Even if someone did implement Game of Life by having the program set a timer to run itself. <a href="https:&#x2F;&#x2F;isovalent.com&#x2F;blog&#x2F;post&#x2F;ebpf-yes-its-turing-complete&#x2F;" rel="nofollow">https:&#x2F;&#x2F;isovalent.com&#x2F;blog&#x2F;post&#x2F;ebpf-yes-its-turing-complete...</a>
    • codys7 hours ago
      zeroserve doesn&#x27;t use the Linux kernel&#x27;s eBPF runtime to run the eBPF it uses, so the constraints of the Linux kernel&#x27;s eBPF runtime (chosen because of how the Linux kernel thinks about protecting the Linux kernel from user space) don&#x27;t apply to zeroserve (or other tools that use the eBPF instruction set but don&#x27;t use the Linux kernel&#x27;s particular implementation)
  • zsoltkacsandi8 hours ago
    From a technical standpoint, these are always impressive projects, but I&#x27;ve always wondered: has anyone ever encountered a use case where the Caddy was the bottleneck?
    • keynha4 hours ago
      For most apps the backend is slower than the proxy by a wide margin, so Caddy is nowhere near the bottleneck. Where it flips is high connection churn, since TLS handshakes are the expensive part and a flood of short lived connections without session resumption burns proxy CPU well before steady state proxying does. Very high RPS of tiny responses is the other case, where allocation and header parsing start to show.
    • sieabahlpark7 hours ago
      [dead]
  • BoingBoomTschak6 hours ago
    Interesting. Trying to get some of the performance advantages of TUX&#x2F;IIS without as much insecurity makes sense for some big players, I guess.<p>The usual 3400 lines lock file and AGENTS.md raise some questions about the aforementioned security, though.
  • bastawhiz3 hours ago
    The idea of jit compilation of a web server in a small project is pretty terrifying to me. The attack surface here is enormous.<p>And for what? My back end on a single host isn&#x27;t pumping at 35k qps. If each request is 500 bytes, 35k qps is nearly 20mbps sustained with zero other io (in each direction). And this is using only two threads!<p>I think you&#x27;d be hard pressed to find an application where this is meaningfully useful versus just scaling horizontally. On a box that can run many threads in parallel, Caddy still vastly exceeds my ability to respond to pretty much any useful traffic. It&#x27;s optimizing for a metric that wasn&#x27;t a bottleneck in the first place.
    • cowsandmilk1 hour ago
      Why does jit compilation here scare you? eBPF has had a ton of research on how to limit its resource usage and how to sandbox it.
    • 10000truths1 hour ago
      &gt; The idea of jit compilation of a web server in a small project is pretty terrifying to me. The attack surface here is enormous.<p>Does Spring Boot terrify you, then? Or Lua scripts in nginx? Or PHP? All of these use JIT compilation to run code that handles web requests.<p>Attack surface is a property of the JIT implementation, not of JIT itself. And eBPF is specifically designed to be very simple to implement and audit.
    • eptcyka3 hours ago
      Except CDNs, where it is.
      • bastawhiz1 hour ago
        CDNs aren&#x27;t running Caddy
  • ok1234564 hours ago
    Exposing services that use io_uring is a hard pass. It&#x27;s only been a handful of weeks since the last security advisory.
  • Thaxll5 hours ago
    Another vibe coded, dead in 6 month Rust project.<p>People that trully need performance are not going to use a random server that has 0 support&#x2F; track record.
    • ianm2183 hours ago
      Isn&#x27;t there a chicken and egg problem where projects need to start with 0 track record? Nginx had zero track record at one point as well
      • chucky_z3 hours ago
        Nginx was developed to scale a lot of Russian sites, starting with Rambler. As a second point, Envoy was made by Lyft. A lot of web server OSS goes back to big (at the time) corps.
    • 4ndrewl3 hours ago
      Never mind cooldowns for dependencies, we need cooldowns for these adhd vibe projects.
  • nullstyle8 hours ago
    Fudge, I really need to carve out time today to play with zeroserve. Very cool stuff
  • dshat5 hours ago
    No thanks