- Never commit secrets (API keys, tokens, passwords, private keys).
- Secrets must live in local
.envfiles:backend/.envfrontend/.env
- Only commit the templates:
backend/.env.examplefrontend/.env.example
This repo ignores common secret files, including:
.env,.env.**.key,*.pem
- Assume it is compromised.
- Rotate/revoke it immediately in the provider dashboard.
- Rewrite git history if it was committed (force-push only if you understand the impact).