Five security headers my static site still sends
No logins, no forms, no database — so why bother with security headers? A walk through how the browser handles a response, what each header switches on, and why some of them can't live in your HTML.
Things I run into while building full-stack products — architecture decisions, hard-won lessons, and the occasional opinion about TypeScript.
No logins, no forms, no database — so why bother with security headers? A walk through how the browser handles a response, what each header switches on, and why some of them can't live in your HTML.
Application code has bugs; a CHECK constraint doesn't. How a one-line constraint made negative stock impossible in an inventory app, and how to test it by forcing the race.
A box holds N boxes of M blisters, and N and M change with every order. How one conversation with the clinic replaced my nested-box design with something far simpler.
When an admin deactivates someone, their access should end now, not when a token expires. Opaque tokens, hashed storage, and expiry rules for an app with a few dozen users.
Three ways to isolate tenant data in a NestJS API, why I stopped passing tenantId around by hand, and the request-scoped approach I settled on.
Roles are easy to add and almost impossible to remove. A look at permission-first access control, and why the role list should stay boring.
How replacing a pile of scheduled jobs with per-key queues fixed our ordering bugs, flattened a nasty traffic spike, and made failures debuggable.