What problem does it solve? Securing a Node.js Fastify API requires coordinating many layers—HTTP headers, CORS, rate limiting, JWT authentication, role-based authorization, input validation, and secret management—and missing any one of them leaves the application exposed to OWASP Top 10 vulnerabilities. ## Core Features & Use Cases - Layered Security Setup: Configure @fastify/helmet security headers, @fastify/cors origin policies, and @fastify/rate-limit with stricter limits on authentication endpoints. - JWT Authentication & Authorization: Implement short-lived access tokens, refresh token rotation with server-side revocation, and declarative role-based authorization preHandlers. - Input Validation & Secret Management: Validate request bodies and params with Zod, enforce body size limits, and validate environment secrets at startup with fail-fast behavior. - Use Case: When building a new Fastify API, apply this Skill to wire up helmet, CORS, rate limiting, and a complete JWT login/refresh flow with role-based route protection, then audit the result against the included OWASP Top 10 coverage matrix. ## Quick Start Ask the AI to set up JWT authentication with refresh token rotation, CORS, rate limiting, and helmet security headers for your Fastify API.