Removing API Keys from Git History: BFG + Force Push (A Security Incident Response)

Reading time: 5 min

Tags: #security #git #devops #secrets

The Situation

API keys were committed to .env file in Git history. Anyone with repo access could do git log and see them.