This project demonstrates baseline application security practices:
- Passwords are hashed with Werkzeug.
- Authentication uses Flask-Login.
- Staff-only operations are protected by role checks.
- Secrets are loaded from environment variables.
- Database queries use SQLAlchemy rather than string-built SQL.
- Production deployment should use HTTPS.
Before public deployment, add:
- CSRF protection for state-changing forms.
- Secure cookie configuration.
- Rate limiting.
- Account lockout / suspicious login monitoring.
- Strong password policy and password reset.
- Security headers.
- PostgreSQL with restricted database credentials.
- Centralized logging and alerting.
- Regular dependency updates.