Skip to content
Opsfolk

Secure coding, topic 20 of 70

Secure API design

APIs fail in their own ways. The most common is broken object-level authorisation: the API checks who you are, then returns record 42 without checking that it is yours. Others are returning whole objects with fields the client should not see, no rate limits, and old versions left running.

Check authorisation on every request and object, return DTOs with named fields, limit requests per client, and keep an inventory of every endpoint.

On Opsfolk

Nothing of ours for this topic yet: an article is on its way.

Elsewhere

Your progress