Careeroza
API Security Checklist
Checklist
- HTTPS only; set
Strict-Transport-Securityat the proxy. - Hash passwords (Argon2/bcrypt); never log passwords or tokens.
- Validate all input with Pydantic models and constraints.
- Use parameterised queries / an ORM (no SQL string building).
- Restrict CORS to known origins.
- Rate-limit login and expensive endpoints (e.g.
slowapior an API gateway). - Return generic error messages for auth failures; do not reveal which part was wrong.
- Check permissions on every resource (user can only see their own orders).