Skip to content

- Blog
- API Security
tag /API Security
06 posts
01
How I know my API didn’t get more permissive this week
Access changes hide in diffs because they are one word. Here is how I commit who can do what, fail CI when it widens,…
OPEN SOURCE /
↗
02
The fields your API leaks without you noticing
select: false hides the password, then populate sends the author's email and roles to every visitor. Where Mongoose field hiding fails, mass assignment, and…
OPEN SOURCE /
↗
03
Stop passing req.query straight into MongoDB
Model.find(req.query) is one line with three risks: private fields, operator injection and unbounded reads. How Express 4 and 5 parse query strings, and the…
OPEN SOURCE /
↗
04
Let the AI agent touch your backend, but give it a leash
Coding agents say "done, all tests pass". Here is how I keep them on a leash on backend code: scopes, a throwaway database, an…
OPEN SOURCE /
↗
05
Test your API as every role before someone else does
Happy-path tests prove what a user can do. Access bugs live in what they cannot do. Here is how I test every route as…
OPEN SOURCE /
↗
06
What I wish someone told me before I wrote my tenth Express API
The setup work every Express API repeats: folders by resource, validation at the edge, one error format, access rules on every route, and a…
OPEN SOURCE /
↗