fastapi-templates
Pass
Audited by Gen Agent Trust Hub on Jul 27, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill implements standard security practices including password hashing with
passlibandbcryptincore/security.py, and JWT-based authentication inapi/dependencies.py.- [SAFE]: The project template correctly usespydantic-settingsto manage sensitive configuration likeDATABASE_URLandSECRET_KEYthrough environment variables (via.envfile), which is the recommended practice for avoiding credential exposure.- [SAFE]: The CORS middleware inmain.pyis configured withallow_origins=["*"]. While this is common for initial development, it should be restricted to specific domains in production to prevent unauthorized cross-origin access.- [SAFE]: The SQLAlchemy engine incore/database.pyis initialized withecho=True. This logs all SQL queries to the console, which is helpful for debugging but should be disabled in production to avoid leaking sensitive data or schema information into application logs.
Audit Metadata