Writing
Engineering notes
Practical writing on security, AI systems, and shipping software that holds up under real use.
Zero-Trust Edge Defense: Rate-Limiting and Token-Bucket Ingress on Distributed Workers
Defending public API endpoints against automated brute-force attacks and credential stuffing using Cloudflare Workers edge enforcement without adding latency.
Multi-Tenant Data Isolation with PostgreSQL Row-Level Security in Production SaaS
Moving tenant authorization out of brittle application WHERE clauses and into the database engine: how PostgreSQL RLS guarantees zero cross-tenant data leakage in multi-user applications.
Deterministic AI Agents: Eliminating State Drift with Strict Schema Guardrails
How to architect production AI workflow orchestrators that execute multi-step tool calls reliably, prevent system prompt extraction, and fail closed under ambiguity.
Hardening Webhook Receivers Against Timing Side-Channels and Replay Attacks
Why standard string comparison operators in webhook receivers leak HMAC secrets through microsecond timing variations, and how constant-time comparisons with timestamp tolerance windows eliminate exploitation vectors.