01
2026
- Security
- Cloudflare Turnstile
- AWS Lambda
- DynamoDB
- JWT
- Cognito
- LaunchDarkly
Bot and abuse mitigation for consumer endpoints
Hardened registration, login and OTP flows on high-traffic consumer endpoints (1M+ requests a month).
Highlights
- Rolled Cloudflare Turnstile across four surfaces (80K+ challenges/month) with hostname checks, action binding and render-on-click.
- Replaced a fixed-bucket SMS rate limiter with a fail-closed sliding-window log after showing bursts slipped through at window boundaries; it rejects 2,000+ requests/month.
- Diagnosed that DynamoDB TTL only guarantees eventual deletion, so a TTL-based counter reset is not a real reset, and keyed limits by user and phone number instead.
- Hardened JWT session handling, and implemented a feature-flag kill switch for one feature so it can be turned off without a deploy.
- Wrote up my own multi-day rollout, including the reverts and hotfixes, so the team could learn from it.