The following files contain sensitive data and are NEVER committed to git:
.env- Your personal API keys and secrets.env.*(except.env.example) - Alternative configurations.env.local,.env.backup- Local backups
*.key,*.pem,*.p12- Certificate filescredentials.json- Service account keyssecrets/,.secrets/- Secret directories
.backup/- Contains archived sensitive files and logs
-
Initial Setup
cp .env.example .env # Edit .env with your API keys -
Verify Protection
git check-ignore .env # Should output: .env -
Never Commit
- Always check
git statusbefore committing - Ensure
.envis not listed in changes - Use
.env.examplefor documentation
- Always check
Choose at least one provider:
- Gemini API: https://makersuite.google.com/app/apikey
- Ollama: Local installation (https://ollama.ai)
- Nebius: https://nebius.com
- HuggingFace: https://huggingface.co/settings/tokens
If you accidentally commit a key:
- Immediately revoke the exposed key in the provider dashboard
- Generate a new key
- Update your
.envfile - Use
git filter-branchor BFG Repo-Cleaner to remove from history - Force push (coordinate with team first!)
-
.envfile exists locally -
.envcontains valid API key(s) -
.envis listed in.gitignore -
git statusdoes not show.env -
.env.examplehas no real keys -
.backup/directory is ignored
Contact the maintainer if you have security concerns.