zsh · 404human@dev:~Tab complete · ↑↓ history · type help
#security
Tag
#security
Articles
33 posts
Headless CMS architecture diagram (real design)A complete headless CMS architecture diagram built from a live Rust, PostgreSQL, and SvelteKit CMS—covering RLS, immutable releases, and MCP auth.
5 min
Webhook security best practices: sender & appHow to secure both sides of webhooks: HMAC-SHA256 signing, replay timestamp windows, constant-time verify, idempotency, and SSRF/DNS rebinding.
4 min
API rate limiting implementation: real guideHow to implement API rate limiting that survives production: token buckets, bounded maps, real client IPs behind proxies, and IPv6 /64 bucketing.
5 min
OAuth PKCE explained (with real code & traps)What PKCE is in OAuth 2.1, why S256 stops authorization-code interception, runnable Python verifier/challenge code, and real remote MCP pitfalls.
5 min
API security checklist with concrete testsA practical API security checklist backed by real tests—auth before body buffering, tenant RLS, rate limits, SSRF, idempotency, and audit logs.
6 min
AI agent security: threat model and defensesThe seven real security threats in production AI agents—from indirect prompt injection to secret exfiltration—and the code-level defenses that hold.
6 min
CLAUDE.md and AGENTS.md: what actually worksHow to write a short, high-signal CLAUDE.md or AGENTS.md file—what belongs in instructions vs CI tests, a real template, and the hijack risks.
5 min
How to build an MCP server (without the traps)Build a working MCP server in ~85 lines of Python over stdio JSON-RPC 2.0, plus the real OAuth, Cloudflare 1010, and approval bugs we hit live.
5 min
How to build an AI agent without a frameworkBuild a working AI agent in ~90 lines of code—with step budgets, output caps, approval gates, and the real production bugs toy loops hide.
7 min
How draft preview actually works on a static siteMost headless CMS preview guides assume SSR. Here is what breaks when you add draft preview to a static Astro site on Cloudflare Pages—and how to fix it.
4 min
Preventing webhook SSRF and DNS rebinding in RustValidating a URL before calling reqwest is broken by DNS rebinding, redirects, and IPv6 tricks. Enforce SSRF checks inside reqwest's custom Resolve.
3 min
Why every rate limiter behind Caddy saw 127.0.0.1Behind Caddy on loopback, peer-IP rate limits collapse every user into one bucket. Here is how to trust proxy headers safely and stop IPv6 bucket sprays.
Cloudflare Pages vs Vercel for static sites and docsCloudflare Pages vs Vercel for static blogs, landing pages, and Astro/Zola docs: bandwidth limits, HTTP _headers CSP/HSTS, deploy workflows, and vendor lock-in.
The fixes landed, and the reviews found bugs in the fixes2026-11-17: every project's review round landed on main, most with a final "ship". The best finds weren't in the original code. They were in the fixes: an honest peer banned, a restore that charged twice, a parser crash anyone could reach. Plus the load runs that finally ran.