T
3

My API key rotation went from quarterly to weekly after a breach scare

We got hit with a leaked key in a public GitHub repo back in March, someone scraped it within 4 hours and ran up a $2,300 bill on our cloud account. Now I rotate every Monday morning with a script that also revokes old keys, has anyone else automated their rotation or are you still doing it manually?
1 comments

Log in to join the discussion

Log In
1 Comment
cameron538
cameron5381mo ago
You could tie key rotation to your deploy pipeline instead of a fixed day so keys only rotate when code actually ships, that way a leaked key has a shorter shelf life without you babysitting a cron job.
3