Cybersecurity
API security
Object-level authorization, rate limits, input validation, CORS and safe tokens.
Article
The pierogi shop's API serves a mobile app, an in-store kiosk and a courier company's webhooks. We go through the OWASP API Security Top 10 (2023 edition) with working code – object and function level authorization in NestJS, JWT verification with jose, protection against mass assignment, rate limits, signed webhooks with replay protection, safe consumption of third-party APIs and secrets that never reach the logs.
Related articles
- OWASP Top 10:2025 in practice – vulnerable and fixed code in Node.js, Express and React (with live XSS examples)
We walk through the current OWASP Top 10:2025 using the pierogi shop's online store – for every category a real bug in Node.js/Express or React and its fix. IDOR and SSRF (now in A01),…
- Authorization in NestJS 12 – guards, roles and permissions with CASL, JWT with refresh, and multi-tenancy
Authentication says who you are; authorization says what you may do with this particular resource. We build an API for a SaaS platform serving dumpling-restaurant chains: a global JWT guard, roles…
- A complete HLD by example: the VoltGo charging network – document, diagrams, ADRs and tools
A full, realistic High-Level Design document walked through section by section on the VoltGo electric-vehicle charging platform: a driver app, 4,000 chargers over OCPP, reservations, ad hoc payments…
Around the topic
- Rate Limiting Pattern article · web · Microsoft Azure Architecture Center
- Good API Design leads to better Rate Limiting video · youtube · CodeOpinion
- Scaling your API with rate limiters article · web · stripe.com
- Top 10 Rest API Design Pitfalls by Victor Rentea @ Spring I/O 2025 video · youtube · Spring I/O
- Microservices Security in Action with Prabath Siriwardena - .NET 201 podcast · apple-podcasts · Adventures in .NET