Recurnix docs

Docs › Releases › 1.16 › Release notes

Recurnix 1.16 release notes

Released 2026-07-31. Recurnix 2.11 is newer.

Recurnix has had rate limiting since v0.5. Behind a proxy it was counting everybody as one person.

trusted proxies            request->ip()    rate-limit key
(none) - before v1.16      203.0.113.7      rx-throttle:login|5fd478312571
203.0.113.7                198.51.100.55    rx-throttle:login|328f35f3ffe2
203.0.113.0/24             198.51.100.55    rx-throttle:login|328f35f3ffe2
*                          198.51.100.55    rx-throttle:login|328f35f3ffe2

EnforceRateLimit keys on sha1($request->ip()). With no trusted proxy configured, $request->ip() is whatever connects to PHP — and self-hosted almost always means something is in front. Cloudflare, nginx, a load balancer: the same address for every visitor, so one bucket for the entire internet. One attacker's failed logins throttle every real customer, and the attacker looks exactly like them. Turnstile got that address as remoteip, order fraud screening scored it, last_login_ip recorded it. Fourteen call sites.

Why it ships switched off

The obvious fix — trust everything — is a worse bug. X-Forwarded-For is just a header; anyone can send one. Trust it without knowing which machine it came from and a visitor simply declares their own address, gets a fresh rate-limit bucket per request, and the login throttle stops counting altogether.

So neither default is safe in general, and the only party who knows which applies is the operator. Settings → Security → Trusted proxies ships empty, and its hint states both failure modes rather than just the one we fixed. Addresses or CIDR ranges, one per line; anything that is not a valid address is discarded when you save, rather than quietly becoming a proxy nobody meant to trust.

The probe caught a bug in the fix

Worth writing down, because it nearly shipped.

Laravel translates the wildcard by comparing against a string: $trustedIps === ''. The parser returned [''], an array. That comparison fails, the literal * is handed to Symfony, it matches no address, and the result is byte-for-byte identical to trusting nobody — a setting that reads "trust every hop" and does precisely nothing.

Nothing about the code looked wrong. It was visible only because the probe printed the wildcard row next to the other three instead of assuming it worked, and that row came back with the proxy's address in it. There is now a forMiddleware() translation and a test that asserts a string comes out, not an array.

130 committed tests, 472 assertions.


Last modified: 16 November 2026 · This page documents Recurnix, self-hosted billing and automation. Ask a question.