Exposed secrets and keys
CriticalAI assistants confidently inline service-role keys, OpenAI tokens, and database passwords into client-side code or commit them to git. Once it's in a commit, it's in the history forever — and bots scrape public repos within minutes.
Use environment variables and a secret manager. Rotate every key that's ever been committed. Add a pre-commit hook (gitleaks, trufflehog) to catch the next one.