parsimony/internal
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 44b3f9d98a fix(web): key the subscribe limit on the real client
Behind a reverse proxy every visitor shared the proxy's address, so the
whole site got 10 signups an hour and one person could block everyone.
Over IPv6 each address of a /64 was a fresh key, so the limit did not
bind and the map grew by one entry per address.

- web.trusted_proxies (addresses or CIDR ranges, default empty) is
  validated at load and passed to the web handler. X-Forwarded-For is
  read only when the TCP peer is a trusted proxy; the client is then the
  right-most entry that is not itself a trusted proxy. An empty or
  malformed header falls back to the peer. With no trusted proxy the
  behaviour is unchanged: the header is ignored.
- IPv6 clients are keyed by their /64, IPv4 clients by address.
- The limiter remembers at most 100000 clients. When full it sweeps
  expired entries first and otherwise answers 429 to new clients until
  the oldest window ends, instead of growing.
2026-11-10 15:11:26 +01:00
..
adminui feat(adminui): embed the admin SPA and serve it next to the API 2026-11-09 15:29:12 +01:00
api Merge branch 'feat/nl-posts-stats' into feat/newsletter 2026-11-10 13:02:41 +01:00
app fix(web): key the subscribe limit on the real client 2026-11-10 15:11:26 +01:00
archive test(archive): give the pathological HTML check headroom under -race 2026-11-10 11:55:14 +01:00
cli Merge branch 'feat/nl-posts-stats' into feat/newsletter 2026-11-10 13:02:41 +01:00
config fix(web): key the subscribe limit on the real client 2026-11-10 15:11:26 +01:00
dkimsign test: close gaps found by mutation checks on DKIM 2026-11-09 20:02:54 +01:00
ingest test(ingest): match the refusal text of a non-publisher by suffix 2026-11-10 12:37:13 +01:00
mbox fix(mbox): stop buffering a line beyond the size limit 2026-11-10 11:53:32 +01:00
outbound test: pin the SMTP command named in a relay error, SMTPUTF8 and thread order 2026-11-10 11:42:19 +01:00
queue Merge branch 'feat/nl-rate-limit' into feat/newsletter 2026-11-10 13:02:41 +01:00
router test: share one SetPolicies-based helper for the newsletter priority tests 2026-11-10 13:02:58 +01:00
store Merge branch 'feat/nl-posts-stats' into feat/newsletter 2026-11-10 13:02:41 +01:00
web fix(web): key the subscribe limit on the real client 2026-11-10 15:11:26 +01:00