{"slug":"api-security","group":"security","title":"Bezpieczeństwo API","short":"Autoryzacja na poziomie obiektu, limity zapytań, walidacja wejścia, CORS i bezpieczne tokeny.","icon":"lock-keyhole","aliases":["API security","OWASP API Security","rate limiting","BOLA","CORS"],"order":952,"status":"available","articleCount":4,"groupTitle":"Cyberbezpieczeństwo","intro":"","servedLang":"pl","primaryArticle":{"id":"6b09a4b1ff996234422a266a","slug":"api-security","title":"Bezpieczeństwo API w praktyce – OWASP API Security Top 10, BOLA, JWT, mass assignment, limity żądań i podpisy webhooków (NestJS, Express)","summary":"API pierogarni obsługuje aplikację mobilną, kiosk w lokalu i webhooki firmy kurierskiej. Przechodzimy przez OWASP API Security Top 10 (edycja 2023) z działającym kodem – autoryzacja obiektów i funkcji w NestJS, weryfikacja JWT z jose, ochrona przed mass assignment, limity żądań, podpisane webhooki z ochroną przed powtórzeniem, bezpieczne korzystanie z cudzych API i sekrety, które nie trafiają do logów.","servedLang":"pl","availableLangs":["pl","en"],"topics":["api-security","authentication","nestjs","express"],"techs":["node","typescript"],"tags":["owasp-api-security-top-10","bola","bfla","mass-assignment","jwt","jose","rate-limiting","webhooks","hmac","nestjs","express","zod","pino"],"level":"intermediate","kind":"tutorial","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":17,"stats":{"views":0,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T15:41:37.635Z","updatedAt":"2026-11-27T15:41:37.741Z","challengeCount":0,"quizCount":0},"articles":[{"id":"6b09a4b7ff996234422a26ce","slug":"owasp-top-10-in-practice","title":"OWASP Top 10:2025 w praktyce – podatny i poprawiony kod w Node.js, Express i React (z działającymi przykładami XSS)","summary":"Przechodzimy przez aktualną listę OWASP Top 10:2025 na przykładzie sklepu internetowego pierogarni – dla każdej kategorii realny błąd w Node.js/Express albo React i jego poprawka. IDOR i SSRF (teraz w A01), błędna konfiguracja, łańcuch dostaw, kryptografia, SQL i NoSQL injection z działającym demo, XSS w dwóch interaktywnych placach zabaw, wady projektu, uwierzytelnianie, integralność (SRI), logowanie zdarzeń bezpieczeństwa i obsługa wyjątków „fail closed”.","servedLang":"pl","availableLangs":["pl","en"],"topics":["web-security","api-security","react","express"],"techs":["node","typescript","javascript"],"tags":["owasp-top-10","owasp-2025","xss","sql-injection","nosql-injection","ssrf","idor","broken-access-control","supply-chain","dompurify","sri","react","express"],"level":"intermediate","kind":"tutorial","access":"public","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":18,"stats":{"views":0,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T15:41:43.532Z","updatedAt":"2026-11-27T15:41:43.579Z","relation":{"position":1,"primary":false,"mainTopic":{"slug":"web-security","title":"Bezpieczeństwo aplikacji webowych"}}},{"id":"6b09aa805a5e2dbc3f20a48f","slug":"nestjs-auth-rbac","title":"Autoryzacja w NestJS 12 – guardy, role i uprawnienia z CASL, JWT z odświeżaniem i wielodostępność (multi-tenant)","summary":"Uwierzytelnienie mówi, kim jesteś, autoryzacja – co wolno Ci zrobić z tym konkretnym zasobem. Budujemy API platformy SaaS dla sieci pierogarni: globalny guard JWT, role zamienione w reguły CASL z warunkami (lokal, kurier, status) i uprawnieniami do pól, polityki na trasach, natychmiastowe odebranie uprawnień po zmianie roli, rotacja refresh tokenów i izolacja najemców – z prawdziwymi odpowiedziami HTTP.","servedLang":"pl","availableLangs":["pl","en"],"topics":["nestjs","authentication","api-security"],"techs":["node","typescript"],"tags":["nestjs-12","authorization","rbac","abac","casl","jwt","refresh-token-rotation","multi-tenant","row-level-security","bola","guards"],"level":"advanced","kind":"tutorial","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":19,"stats":{"views":1,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T16:06:24.765Z","updatedAt":"2026-11-27T16:08:50.676Z","relation":{"position":2,"primary":false,"mainTopic":{"slug":"nestjs","title":"NestJS"}}},{"id":"6b09ab659843bccb708a3ca3","slug":"hld-complete-example","title":"Kompletny HLD na przykładzie: sieć ładowarek VoltGo – dokument, diagramy, ADR i narzędzia","summary":"Pełny, realistyczny dokument High-Level Design omówiony sekcja po sekcji na przykładzie platformy do ładowania aut elektrycznych VoltGo: aplikacja kierowcy, 4 000 ładowarek przez OCPP, rezerwacje, płatności ad hoc przez operatora płatności i panel operatora sieci. NFR w liczbach, C4 Context i Container, trzy diagramy sekwencji, diagram wdrożenia, macierz wariantów z wagami, fragmenty ADR i rejestr ryzyk – plus szablon HLD i cały przykładowy dokument do pobrania oraz przegląd narzędzi: Structurizr, Mermaid, PlantUML, draw.io, Excalidraw, IcePanel, arc42, ADR, OpenAPI/AsyncAPI, Threat Dragon i kalkulatory kosztów.","servedLang":"pl","availableLangs":["pl","en"],"topics":["solution-architecture","event-driven-architecture","modular-monolith","api-security"],"techs":["general","typescript"],"tags":["solution-architect","hld","c4-model","architecture-documentation","adr","structurizr","arc42","ev-charging","ocpp","threat-modeling"],"level":"intermediate","kind":"tutorial","access":"members","status":"published","cover":null,"author":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","community":false},"readingMinutes":45,"stats":{"views":2,"likes":0,"bookmarks":0,"comments":0},"publishedAt":"2026-11-27T16:10:13.676Z","updatedAt":"2026-11-27T16:12:50.856Z","relation":{"position":3,"primary":false,"mainTopic":{"slug":"solution-architecture","title":"Solution Architect – rola i warsztat"}}}],"challenges":[],"resources":[{"id":"6b0857bf3c96f2d34d0b42f3","type":"article","provider":"web","url":"https://learn.microsoft.com/en-us/azure/architecture/patterns/rate-limiting-pattern","embedUrl":null,"title":"Rate Limiting Pattern","description":"Control the rate at which your application sends requests to a service so that you stay within the service's throttling limits and overall capacity.","author":"Microsoft Azure Architecture Center","thumbnailUrl":"https://learn.microsoft.com/en-us/media/open-graph-image.png","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["azure","cloud"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":57,"verifiedAt":"2026-11-26T11:07:59.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857c83c96f2d34d0b49f5","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=PGreK-A0C6Y","embedUrl":"https://www.youtube-nocookie.com/embed/PGreK-A0C6Y","title":"Good API Design leads to better Rate Limiting","description":"Rate Limiting to protect your API and system from being degraded when clients make too many requests. But why are they making too many requests? Look at your API design because it might be causing your clients to make unnecessary requests. Rate Limiting is still needed but likely configured…","author":"CodeOpinion","thumbnailUrl":"https://i.ytimg.com/vi/PGreK-A0C6Y/hqdefault.jpg","durationSec":null,"lang":"en","topics":["event-sourcing"],"techs":["dotnet"],"tags":["api-design","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2024-08-28T13:31:42.000Z","popularity":59,"verifiedAt":"2026-11-26T10:53:40.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:10.095Z","updatedAt":"2026-11-26T16:01:10.095Z"},{"id":"6b0857b53c96f2d34d0b3896","type":"article","provider":"web","url":"https://stripe.com/blog/rate-limiters","embedUrl":null,"title":"Scaling your API with rate limiters","description":"Online payment processing for internet businesses. Stripe is a suite of payment APIs that powers commerce for businesses of all sizes.","author":"stripe.com","thumbnailUrl":null,"durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["hacker-news"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"hn","publishedAt":"2017-03-30T16:58:10.000Z","popularity":73,"verifiedAt":"2026-11-26T11:19:34.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:52.228Z","updatedAt":"2026-11-26T16:00:52.228Z"},{"id":"6b0857c73c96f2d34d0b491e","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=u_5JppAExDs","embedUrl":"https://www.youtube-nocookie.com/embed/u_5JppAExDs","title":"Top 10 Rest API Design Pitfalls by Victor Rentea @ Spring I/O 2025","description":"Spring I/O 2025 - 22-23 May, Barcelona An entertaining review of the most common mistakes in designing an API, from the most outrageous goofs to the most dangerous “innocent” shortcuts. You’ll see examples of: Breaking Changes, Domain Model Leak, Sensitive Data Exposure, Performance Issues…","author":"Spring I/O","thumbnailUrl":"https://i.ytimg.com/vi/u_5JppAExDs/hqdefault.jpg","durationSec":null,"lang":"en","topics":["cqrs"],"techs":["java"],"tags":["api-design","performance","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2025-09-03T21:03:59.000Z","popularity":66,"verifiedAt":"2026-11-26T10:56:51.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:10.095Z","updatedAt":"2026-11-26T16:01:10.095Z"},{"id":"6b0857bc3c96f2d34d0b4057","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/microservices-security-in-action-with-prabath/id1478997569?i=1000673444208","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1478997569?i=1000673444208","title":"Microservices Security in Action with Prabath Siriwardena - .NET 201","description":"Microservice architecture is very popular today. The panel talks with microservice security authors about their book and all aspects of securing microservices. Links Microservices Security in Action: Design secure network and API endpoint security for Microservices applications, with examples…","author":"Adventures in .NET","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts211/v4/6a/4e/3b/6a4e3bdb-bbf1-8601-a403-086ce24cb18f/mza_1088513295079016608.jpg/600x600bb.jpg","durationSec":3194,"lang":"en","topics":["microservices"],"techs":["dotnet","java"],"tags":["podcast","kubernetes","security","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2024-10-15T10:00:00.000Z","popularity":44,"verifiedAt":"2026-11-26T11:07:22.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:59.965Z","updatedAt":"2026-11-26T16:00:59.965Z"}],"resourceGroups":[{"type":"video","items":[{"id":"6b0857c83c96f2d34d0b49f5","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=PGreK-A0C6Y","embedUrl":"https://www.youtube-nocookie.com/embed/PGreK-A0C6Y","title":"Good API Design leads to better Rate Limiting","description":"Rate Limiting to protect your API and system from being degraded when clients make too many requests. But why are they making too many requests? Look at your API design because it might be causing your clients to make unnecessary requests. Rate Limiting is still needed but likely configured…","author":"CodeOpinion","thumbnailUrl":"https://i.ytimg.com/vi/PGreK-A0C6Y/hqdefault.jpg","durationSec":null,"lang":"en","topics":["event-sourcing"],"techs":["dotnet"],"tags":["api-design","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2024-08-28T13:31:42.000Z","popularity":59,"verifiedAt":"2026-11-26T10:53:40.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:10.095Z","updatedAt":"2026-11-26T16:01:10.095Z"},{"id":"6b0857c73c96f2d34d0b491e","type":"video","provider":"youtube","url":"https://www.youtube.com/watch?v=u_5JppAExDs","embedUrl":"https://www.youtube-nocookie.com/embed/u_5JppAExDs","title":"Top 10 Rest API Design Pitfalls by Victor Rentea @ Spring I/O 2025","description":"Spring I/O 2025 - 22-23 May, Barcelona An entertaining review of the most common mistakes in designing an API, from the most outrageous goofs to the most dangerous “innocent” shortcuts. You’ll see examples of: Breaking Changes, Domain Model Leak, Sensitive Data Exposure, Performance Issues…","author":"Spring I/O","thumbnailUrl":"https://i.ytimg.com/vi/u_5JppAExDs/hqdefault.jpg","durationSec":null,"lang":"en","topics":["cqrs"],"techs":["java"],"tags":["api-design","performance","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"youtube-rss","publishedAt":"2025-09-03T21:03:59.000Z","popularity":66,"verifiedAt":"2026-11-26T10:56:51.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:10.095Z","updatedAt":"2026-11-26T16:01:10.095Z"}]},{"type":"podcast","items":[{"id":"6b0857bc3c96f2d34d0b4057","type":"podcast","provider":"apple-podcasts","url":"https://podcasts.apple.com/us/podcast/microservices-security-in-action-with-prabath/id1478997569?i=1000673444208","embedUrl":"https://embed.podcasts.apple.com/us/podcast/id1478997569?i=1000673444208","title":"Microservices Security in Action with Prabath Siriwardena - .NET 201","description":"Microservice architecture is very popular today. The panel talks with microservice security authors about their book and all aspects of securing microservices. Links Microservices Security in Action: Design secure network and API endpoint security for Microservices applications, with examples…","author":"Adventures in .NET","thumbnailUrl":"https://is1-ssl.mzstatic.com/image/thumb/Podcasts211/v4/6a/4e/3b/6a4e3bdb-bbf1-8601-a403-086ce24cb18f/mza_1088513295079016608.jpg/600x600bb.jpg","durationSec":3194,"lang":"en","topics":["microservices"],"techs":["dotnet","java"],"tags":["podcast","kubernetes","security","software-architecture"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"itunes","publishedAt":"2024-10-15T10:00:00.000Z","popularity":44,"verifiedAt":"2026-11-26T11:07:22.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:59.965Z","updatedAt":"2026-11-26T16:00:59.965Z"}]},{"type":"article","items":[{"id":"6b0857bf3c96f2d34d0b42f3","type":"article","provider":"web","url":"https://learn.microsoft.com/en-us/azure/architecture/patterns/rate-limiting-pattern","embedUrl":null,"title":"Rate Limiting Pattern","description":"Control the rate at which your application sends requests to a service so that you stay within the service's throttling limits and overall capacity.","author":"Microsoft Azure Architecture Center","thumbnailUrl":"https://learn.microsoft.com/en-us/media/open-graph-image.png","durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["azure","cloud"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"manual","publishedAt":null,"popularity":57,"verifiedAt":"2026-11-26T11:07:59.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:01:02.417Z","updatedAt":"2026-11-26T16:01:02.417Z"},{"id":"6b0857b53c96f2d34d0b3896","type":"article","provider":"web","url":"https://stripe.com/blog/rate-limiters","embedUrl":null,"title":"Scaling your API with rate limiters","description":"Online payment processing for internet businesses. Stripe is a suite of payment APIs that powers commerce for businesses of all sizes.","author":"stripe.com","thumbnailUrl":null,"durationSec":null,"lang":"en","topics":[],"techs":["general"],"tags":["hacker-news"],"price":"free","featured":false,"featuredOrder":0,"packageName":null,"source":"hn","publishedAt":"2017-03-30T16:58:10.000Z","popularity":73,"verifiedAt":"2026-11-26T11:19:34.000Z","curated":false,"addedBy":"6b0857a15a2625e44ecaabe6","createdAt":"2026-11-26T16:00:52.228Z","updatedAt":"2026-11-26T16:00:52.228Z"}]}],"siblings":[{"slug":"web-security","title":"Bezpieczeństwo aplikacji webowych","icon":"shield-alert","status":"available","current":false},{"slug":"api-security","title":"Bezpieczeństwo API","icon":"lock-keyhole","status":"available","current":true},{"slug":"secrets-management","title":"Zarządzanie sekretami","icon":"vault","status":"available","current":false},{"slug":"secure-sdlc","title":"DevSecOps i bezpieczny SDLC","icon":"shield-ellipsis","status":"available","current":false}]}