Interview practice question
Removing a secret from the entire Git history
Cloud & DevOps · Git and Version Control · Intermediate
An API key was committed months ago and exists throughout history. Security asks you to remove it. How would you do it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Rotate key first.
- git filter-repo or BFG to rewrite history.
- Force push all branches/tags.
- Everyone re-clones; clear caches, forks.
- Contact platform to purge cached views.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.