- Replace the default
SECRET_KEYwith a strong, random value set via environment variable. - Rotate admin credentials regularly and store them securely (e.g., Azure Key Vault or AWS Secrets Manager).
- Store database passwords and other secrets in environment variables; never commit them to source control.
- Enable HTTPS termination at the Nginx reverse proxy.
- Implement rate limiting with
slowapito mitigate brute‑force attacks. - Use OpenTelemetry to monitor request latency and error rates.
- Perform regular dependency scans with
safetyandbandit. - Apply least‑privilege IAM roles for any cloud resources (e.g., Key Vault, S3 bucket).