Application security
- Require HTTPS outside local development.
- Authenticate protected requests and authorize each action/resource.
- Enforce tenant isolation and object ownership checks.
- Validate and normalize all client input.
- Use parameterized database access and safe ORM query construction.
- Rate-limit authentication, OTP, password reset, and sensitive endpoints.
- Protect against CSRF where cookie-based sessions are used; configure CORS narrowly.
- Verify webhook signatures and reject replayed events where supported.
- Validate uploaded file contents and storage permissions.
