
Your AWS Credentials Are Still on GitHub Even After You Delete Them
I thought deleting the file was enough. I was wrong. Here's what actually happens. Originally published on Medium — follow me there for more The Mistake That Haunts Developers You're coding late at night. You hardcode your AWS credentials to test something quickly — just this once. It works. Great. You delete the credentials from the file. Push to GitHub. Safe right? Wrong. Completely wrong. 😰 Your credentials are still on GitHub. Visible to anyone who knows where to look. And automated bots DO know where to look. This happens to developers every single day. Today I'm going to show you exactly why this happens and how to protect yourself completely. How Git History Works Git doesn't just save your current code. Git saves every single version of every file you've ever committed. Think of git like a time machine. Every commit is a snapshot of your entire project at that moment. When you delete credentials and push — git saves: Commit 1 — file WITH credentials ← still here forever Commit
Continue reading on Dev.to Webdev
Opens in a new tab


