{"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","requestedLang":"pl","theme":{"hero":"classic","heroMedia":null,"accent":"rose","background":"dots","weaveResources":true,"toc":"right"},"seoDescription":"Bezpieczeństwo REST API – OWASP API Security Top 10 2023 (BOLA, Broken Authentication, BOPLA, Unrestricted Resource Consumption, BFLA, SSRF, Security Misconfiguration, Improper Inventory Management, Unsafe Consumption of APIs), weryfikacja JWT (jose, alg, aud, exp), mass assignment (ValidationPipe, ","wordCount":3310,"doc":{"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"API pierogarni ma dziś trzech głównych klientów: aplikację mobilną, kiosk do zamawiania w lokalu i firmę kurierską, która wysyła webhooki o statusie dostaw. API nie ma interfejsu, który „ukrywa” przyciski – każdy endpoint jest dostępny dla każdego, kto potrafi wysłać żądanie HTTP. Dlatego OWASP prowadzi osobną listę ryzyk dla API. W tym poradniku przechodzimy przez nią z kodem, który uruchomiłem lokalnie – razem z prawdziwymi odpowiedziami serwera."}]},{"type":"callout","attrs":{"variant":"info","title":"W skrócie"},"content":[{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Autoryzacja na każdym obiekcie i każdej funkcji.","marks":[{"type":"bold"}]},{"type":"text","text":" BOLA (dostęp do cudzych obiektów) i BFLA (dostęp do cudzych funkcji, np. administracyjnych) to razem najczęstsze podatności API."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Ufaj tylko temu, co sprawdziłeś.","marks":[{"type":"bold"}]},{"type":"text","text":" Token JWT: algorytm z listy, wystawca, odbiorca, czas życia. Body: tylko pola z DTO, nieznane pola to błąd. Odpowiedź cudzego API: walidacja jak danych od użytkownika."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Każdy zasób ma budżet.","marks":[{"type":"bold"}]},{"type":"text","text":" Limity żądań per klient i per operacja, rozmiar body, paginacja, czasy oczekiwania – inaczej jeden skrypt zużyje bazę, kolejkę i rachunek."}]}]}]}]},{"type":"callout","attrs":{"variant":"tip","title":"Co zbudujesz"},"content":[{"type":"paragraph","content":[{"type":"text","text":"Moduł NestJS zamówień z kontrolą właściciela (BOLA), strażnikiem ról (BFLA), DTO z "},{"type":"text","text":"ValidationPipe","marks":[{"type":"code"}]},{"type":"text","text":" (mass assignment) i limitami "},{"type":"text","text":"@nestjs/throttler","marks":[{"type":"code"}]},{"type":"text","text":"; weryfikację JWT z jose i demo, które pokazuje odrzucenie tokenów z "},{"type":"text","text":"alg: none","marks":[{"type":"code"}]},{"type":"text","text":", złym odbiorcą i po terminie; endpoint profilu z walidacją wejścia i wyjścia (zod); limity w express-rate-limit z nagłówkami "},{"type":"text","text":"RateLimit","marks":[{"type":"code"}]},{"type":"text","text":"; odbiór webhooków z podpisem HMAC, oknem czasowym i idempotencją; logger z redakcją sekretów. Kod (9 plików) pobierzesz jako ZIP."}]}]},{"type":"paragraph","content":[{"type":"text","text":"Wymagania wstępne:","marks":[{"type":"bold"}]},{"type":"text","text":" NestJS lub Express ("},{"type":"text","text":"poradnik NestJS","marks":[{"type":"link","attrs":{"href":"/pl/articles/nestjs"}}]},{"type":"text","text":", "},{"type":"text","text":"poradnik Express","marks":[{"type":"link","attrs":{"href":"/pl/articles/express"}}]},{"type":"text","text":"), podstawy JWT i OAuth ("},{"type":"text","text":"poradnik o logowaniu","marks":[{"type":"link","attrs":{"href":"/pl/articles/authentication"}}]},{"type":"text","text":"), TypeScript."}]},{"type":"stats","attrs":{"items":[{"value":"2023","label":"aktualna edycja","hint":"OWASP API Security Top 10"},{"value":"API1","label":"BOLA","hint":"autoryzacja na poziomie obiektu – miejsce 1."},{"value":"15 min","label":"maks. wiek access tokenu","hint":"w tym poradniku"},{"value":"5 min","label":"okno podpisu webhooka","hint":"starsze żądanie = podejrzenie powtórki"}]}},{"type":"table","content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"ID"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Ryzyko (2023)"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"W skrócie"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Gdzie w poradniku"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"API1"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Broken Object Level Authorization"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"cudze zamówienie po zmianie ID"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"NestJS – BOLA"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"API2"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Broken Authentication"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"słaba weryfikacja tokenów, brak limitów logowania"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"JWT z jose"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"API3"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Broken Object Property Level Authorization"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"mass assignment i zbyt dużo pól w odpowiedzi"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"DTO, zod"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"API4"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Unrestricted Resource Consumption"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"brak limitów żądań, rozmiaru, paginacji"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"rate limiting"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"API5"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Broken Function Level Authorization"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"klient wywołuje endpoint dla obsługi"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"strażnik ról"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"API6"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Unrestricted Access to Sensitive Business Flows"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"boty wykupujące limitowaną ofertę"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"limity biznesowe"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"API7"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Server Side Request Forgery"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"API pobiera adres podany przez klienta"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"OWASP Top 10","marks":[{"type":"link","attrs":{"href":"/pl/articles/owasp-top-10-in-practice"}}]}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"API8"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Security Misconfiguration"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"CORS, szczegółowe błędy, brak TLS"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"nagłówki, CORS"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"API9"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Improper Inventory Management"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"zapomniane wersje i „cienie” API"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"OpenAPI, wersje"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"API10"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"Unsafe Consumption of APIs"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"ślepe zaufanie do odpowiedzi partnera"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1},"content":[{"type":"paragraph","content":[{"type":"text","text":"webhooki, walidacja"}]}]}]}]},{"type":"diagram","attrs":{"kind":"mermaid","code":"flowchart LR\n  C([Klient: app, kiosk, kurier]) --> W[WAF / CloudFront<br/>limity per IP]\n  W --> AU[Uwierzytelnienie<br/>JWT albo podpis HMAC]\n  AU --> RL[Limity per klient<br/>i per operacja]\n  RL --> V[Walidacja DTO<br/>whitelist pól]\n  V --> AZ[Autoryzacja<br/>funkcja + obiekt]\n  AZ --> BL[Logika biznesowa]\n  BL --> OUT[Kształt odpowiedzi<br/>tylko publiczne pola]\n  BL -.zdarzenia, bez sekretów.-> LOG[(Logi)]","caption":"Droga żądania przez warstwy obrony API pierogarni"}},{"type":"heading","attrs":{"level":2,"id":"api1-i-api5-autoryzacja-obiektow-i-funkcji-nestjs"},"content":[{"type":"text","text":"API1 i API5: autoryzacja obiektów i funkcji (NestJS)"}]},{"type":"paragraph","content":[{"type":"text","text":"BOLA","marks":[{"type":"bold"}]},{"type":"text","text":" to IDOR w świecie API: "},{"type":"text","text":"GET /orders/{id}","marks":[{"type":"code"}]},{"type":"text","text":" zwraca zamówienie, nie sprawdzając, czy należy do pytającego. "},{"type":"text","text":"BFLA","marks":[{"type":"bold"}]},{"type":"text","text":" to to samo dla funkcji: klient wywołuje "},{"type":"text","text":"PATCH /orders/{id}/status","marks":[{"type":"code"}]},{"type":"text","text":", przeznaczone dla obsługi kuchni, bo endpoint sprawdzał tylko, czy ktoś jest zalogowany."}]},{"type":"codeGroup","attrs":{"title":"Moduł zamówień NestJS: właściciel, role, DTO i limity"},"content":[{"type":"codeBlock","attrs":{"language":"typescript","filename":"src/orders.module.ts"},"content":[{"type":"text","text":"import {\n  Body, CanActivate, Controller, ExecutionContext, ForbiddenException, Get, Injectable, Module,\n  NotFoundException, Param, ParseUUIDPipe, Patch, Req, SetMetadata,\n} from '@nestjs/common';\nimport { APP_GUARD, Reflector } from '@nestjs/core';\nimport { Throttle, ThrottlerGuard, ThrottlerModule } from '@nestjs/throttler';\nimport { IsIn, IsOptional, IsString, MaxLength } from 'class-validator';\n\ninterface User { id: string; role: 'customer' | 'staff' | 'admin' }\ninterface Order { id: string; customerId: string; status: string; total: number; note?: string }\ntype AuthedRequest = { user: User }; // set by the JWT guard (verifyAccessToken)\n\nexport const Roles = (...roles: User['role'][]) => SetMetadata('roles', roles);\n\n/** API5 BFLA: endpoints marked @Roles(...) are closed to everyone else. */\n@Injectable()\nclass RolesGuard implements CanActivate {\n  constructor(private readonly reflector: Reflector) {}\n  canActivate(ctx: ExecutionContext): boolean {\n    const roles = this.reflector.getAllAndOverride<User['role'][]>('roles', [ctx.getHandler(), ctx.getClass()]);\n    if (!roles) return true;\n    const { user } = ctx.switchToHttp().getRequest<AuthedRequest>();\n    if (!roles.includes(user.role)) throw new ForbiddenException();\n    return true;\n  }\n}\n\nclass UpdateNoteDto {\n  @IsOptional() @IsString() @MaxLength(300) note?: string;\n}\nclass UpdateStatusDto {\n  @IsIn(['preparing', 'ready', 'collected']) status!: string;\n}\n\n@Injectable()\nclass OrdersService {\n  private readonly orders = new Map<string, Order>([\n    ['0b9c6a1e-2f4d-4c55-9a7e-3c1f8d2b6a10', { id: '0b9c6a1e-2f4d-4c55-9a7e-3c1f8d2b6a10', customerId: 'cus_42', status: 'new', total: 64.5 }],\n    ['7d41e2c3-8a9b-4f0e-b6d5-1a2b3c4d5e6f', { id: '7d41e2c3-8a9b-4f0e-b6d5-1a2b3c4d5e6f', customerId: 'cus_77', status: 'new', total: 38 }],\n  ]);\n  /** API1 BOLA: the owner is part of the lookup, not an afterthought. */\n  findForCustomer(id: string, customerId: string) {\n    const order = this.orders.get(id);\n    return order?.customerId === customerId ? order : undefined;\n  }\n  findAny(id: string) { return this.orders.get(id); }\n}\n\n@Controller('orders')\nclass OrdersController {\n  constructor(private readonly orders: OrdersService) {}\n\n  @Get(':id')\n  get(@Param('id', ParseUUIDPipe) id: string, @Req() req: AuthedRequest) {\n    const order = this.orders.findForCustomer(id, req.user.id);\n    if (!order) throw new NotFoundException();\n    return order;\n  }\n\n  // API3: the DTO has only \"note\" – \"status\" or \"total\" in the body is rejected by the ValidationPipe.\n  @Patch(':id/note')\n  updateNote(@Param('id', ParseUUIDPipe) id: string, @Body() dto: UpdateNoteDto, @Req() req: AuthedRequest) {\n    const order = this.orders.findForCustomer(id, req.user.id);\n    if (!order) throw new NotFoundException();\n    order.note = dto.note;\n    return order;\n  }\n\n  // API5 + API4: staff only, with a tighter rate limit than the global one.\n  @Patch(':id/status')\n  @Roles('staff', 'admin')\n  @Throttle({ default: { limit: 30, ttl: 60_000 } })\n  updateStatus(@Param('id', ParseUUIDPipe) id: string, @Body() dto: UpdateStatusDto) {\n    const order = this.orders.findAny(id);\n    if (!order) throw new NotFoundException();\n    order.status = dto.status;\n    return order;\n  }\n}\n\n@Module({\n  imports: [ThrottlerModule.forRoot([{ ttl: 60_000, limit: 100 }])], // API4: a global budget per client\n  controllers: [OrdersController],\n  providers: [\n    OrdersService,\n    { provide: APP_GUARD, useClass: ThrottlerGuard },\n    { provide: APP_GUARD, useClass: RolesGuard },\n  ],\n})\nexport class OrdersModule {}"}]},{"type":"codeBlock","attrs":{"language":"typescript","filename":"src/main.ts"},"content":[{"type":"text","text":"import 'reflect-metadata';\nimport { ValidationPipe } from '@nestjs/common';\nimport { NestFactory } from '@nestjs/core';\nimport type { NextFunction, Request, Response } from 'express';\nimport { OrdersModule } from './orders.module.js';\n\nconst app = await NestFactory.create(OrdersModule, { logger: ['error'] });\n// API3: strip unknown properties AND fail loudly when someone sends them.\napp.useGlobalPipes(new ValidationPipe({ whitelist: true, forbidNonWhitelisted: true, transform: true }));\n// Demo only – in the real app a JWT guard sets req.user from a verified token.\napp.use((req: Request & { user?: unknown }, _res: Response, next: NextFunction) => {\n  const [id, role] = String(req.headers['x-demo-user'] ?? 'cus_42:customer').split(':');\n  req.user = { id, role };\n  next();\n});\nawait app.listen(3009);"}]}]},{"type":"output","attrs":{"title":"Odpowiedzi serwera NestJS (uruchomione lokalnie, polecenia skrócone)","language":"bash","content":"$ curl -s localhost:3009/orders/7d41e2c3-8a9b-4f0e-b6d5-1a2b3c4d5e6f   # cus_42 pyta o cudze zamówienie\n{\"message\":\"Not Found\",\"statusCode\":404}\n$ curl -s -X PATCH localhost:3009/orders/0b9c6a1e-…/note -H 'Content-Type: application/json' \\\n    -d '{\"note\":\"bez cebulki\",\"status\":\"collected\",\"total\":0}'\n{\"message\":[\"property status should not exist\",\"property total should not exist\"],\"error\":\"Bad Request\",\"statusCode\":400}\n$ curl -s -X PATCH localhost:3009/orders/0b9c6a1e-…/status -d '{\"status\":\"collected\"}'   # jako klient\n{\"message\":\"Forbidden\",\"statusCode\":403}\n$ curl -s -X PATCH localhost:3009/orders/0b9c6a1e-…/status -H 'x-demo-user: emp_3:staff' -d '{\"status\":\"ready\"}'\n{\"id\":\"0b9c6a1e-2f4d-4c55-9a7e-3c1f8d2b6a10\",\"customerId\":\"cus_42\",\"status\":\"ready\",\"total\":64.5}"}},{"type":"bulletList","content":[{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Właściciel w zapytaniu","marks":[{"type":"bold"}]},{"type":"text","text":" ("},{"type":"text","text":"findForCustomer(id, req.user.id)","marks":[{"type":"code"}]},{"type":"text","text":") – a nie „pobierz, a potem sprawdź”, o którym łatwo zapomnieć w nowym endpoincie."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"404 dla cudzych obiektów","marks":[{"type":"bold"}]},{"type":"text","text":" – nie zdradzasz, że zamówienie istnieje."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Role jako metadane + globalny strażnik","marks":[{"type":"bold"}]},{"type":"text","text":" ("},{"type":"text","text":"APP_GUARD","marks":[{"type":"code"}]},{"type":"text","text":") – nowy endpoint administracyjny bez "},{"type":"text","text":"@Roles","marks":[{"type":"code"}]},{"type":"text","text":" to ryzyko, dlatego w większych projektach warto odwrócić logikę: domyślnie odmawiaj, a endpointy publiczne oznaczaj jawnie ("},{"type":"text","text":"@Public()","marks":[{"type":"code"}]},{"type":"text","text":")."}]}]},{"type":"listItem","content":[{"type":"paragraph","content":[{"type":"text","text":"Testy z dwoma kontami","marks":[{"type":"bold"}]},{"type":"text","text":" – najskuteczniejszy test BOLA to automatyczny test, w którym użytkownik B próbuje każdego endpointu z identyfikatorami użytkownika A."}]}]}]}]},"toc":[{"id":"api1-i-api5-autoryzacja-obiektow-i-funkcji-nestjs","text":"API1 i API5: autoryzacja obiektów i funkcji (NestJS)","level":2,"locked":false},{"id":"api2-uwierzytelnianie-i-pulapki-jwt","text":"API2: uwierzytelnianie i pułapki JWT","level":2,"locked":true},{"id":"api3-mass-assignment-i-nadmiar-danych-w-odpowiedzi","text":"API3: mass assignment i nadmiar danych w odpowiedzi","level":2,"locked":true},{"id":"api4-i-api6-limity-zasobow-i-wrazliwe-przeplywy","text":"API4 i API6: limity zasobów i wrażliwe przepływy","level":2,"locked":true},{"id":"webhooki-podpis-okno-czasowe-idempotencja","text":"Webhooki: podpis, okno czasowe, idempotencja","level":2,"locked":true},{"id":"api7-api8-api9-api10-ssrf-konfiguracja-inwentarz-cudze-api","text":"API7, API8, API9, API10: SSRF, konfiguracja, inwentarz, cudze API","level":2,"locked":true},{"id":"sekrety-i-dane-osobowe-poza-logami","text":"Sekrety i dane osobowe poza logami","level":2,"locked":true},{"id":"typowe-bledy","text":"Typowe błędy","level":2,"locked":true},{"id":"sprawdz-sie","text":"Sprawdź się","level":2,"locked":true},{"id":"co-dalej","text":"Co dalej","level":2,"locked":true}],"locked":true,"paywall":null,"previewRatio":0.3,"totalBlocks":51,"visibleBlocks":12,"resources":[{"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":"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":"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"}],"challenges":[],"attachments":[],"hasCode":true,"repoUrl":null,"series":[],"prev":null,"next":null,"featured":false,"authorCard":{"id":"6b08bd2e80884893657cc8cf","name":"Redakcja Art of Devs","avatar":null,"handle":"redakcja","headline":"Wzorce projektowe · Architektura · AI i LLM","community":false,"reputation":{"points":3900,"level":{"key":"mentor","label":"Mentor"}},"articles":104,"skills":[{"key":"typescript","title":"TypeScript","level":5,"levelLabel":"Autorytet","articles":90},{"key":"dotnet","title":".NET","level":5,"levelLabel":"Autorytet","articles":61},{"key":"python","title":"Python","level":5,"levelLabel":"Autorytet","articles":59},{"key":"java","title":"Java","level":5,"levelLabel":"Autorytet","articles":46}]}}