Field notes
Thinking, made visible.
Practical notes on scoping, designing, building, and running software from the team doing the work.
Archive
Notes from the work.
Fixing our rate limiter's memory leak almost created a way to bypass it
Our limiter could be used to attack itself, and the obvious fix handed attackers a fresh quota. The difference is which end of a Map you delete from.
The redirect we did not add, and the loop it would have caused
Next.js matches redirect sources case-insensitively, so a rule for the old /Insights would have caught the real /insights route and sent it to itself.
Mail scanners were confirming newsletter subscriptions nobody clicked
Our double opt-in confirmation mutated state on GET, so every corporate link scanner that followed the link subscribed the recipient automatically.
Our bot honeypot told every bot exactly where the trap was
A one-character validation rule made the silent-success branch unreachable and returned a field error naming the hidden field. The trap worked in reverse.
