What problem does it solve?
This Skill helps developers identify and mitigate common security vulnerabilities in FastAPI applications, ensuring robust authentication, secure configurations, and protection against common web attacks.
Core Features & Use Cases
- Authentication Auditing: Reviews the use of
Depends() and Security() for proper route protection.
- CORS Configuration Review: Checks for overly permissive CORS settings, especially when credentials are used.
- Middleware Security: Verifies the implementation of
TrustedHostMiddleware and HTTPSRedirectMiddleware.
- API Key Security: Advises on secure handling of API keys, preferring headers over query parameters.
- Use Case: Proactively audit an existing FastAPI application to ensure all sensitive endpoints are protected by authentication dependencies and that CORS policies are correctly configured for production environments.
Quick Start
Run the security scan script to check for common FastAPI security issues.