Deleted from the code, still in the history
A commit titled “remove secrets” deleted an AWS key from config. The key is still in Git history. Find the commit that added it, the key ID, and who committed it.
- Terminal mission
- Beginner
- 3 questions
- 0 of 3 solved
Your goal
Your goalShow that a deleted AWS key is still in history, and who added it.
The reporting service’s repository is about to be made public. The last commit message says secrets were removed, so the team believes it is clean.
Git keeps every version of every file. git log -p shows each change, and git log -S <text> lists only commits that added or removed that text.
What’s on screen
- Briefing
- the story: what happened and what evidence you were handed.
- Terminal
- the dark box. It is a pretend Linux shell that runs in your browser. Type a command and press Enter. Nothing you type touches a real system.
- Walkthrough
- the numbered path. Each step says what to type and what you should see. Hints open one at a time.
- Answer boxes
- under each question step. Type what you found and press Check.
Words to know
- AWS
- Amazon Web Services
- SHA
- Secure Hash Algorithm, a fingerprint for data
dev-laptop · Secrets in Git
Type help for the command list and objectives for your tasks. Everything runs in this browser.
Up and down arrows walk your history. Ctrl+L clears the screen. Try help, ls, and objectives.
Read first
More in Secrets in Git
The whole walkthrough
Every step in order: 273 words, about 2 min. It gives away every answer, so try the steps first.