The revert that brought the password back
A credential was removed from config in one commit and quietly restored by a revert two days later. Use the pickaxe search to list every commit that touched it and find which is current.
- Terminal mission
- Intermediate
- 3 questions
- 0 of 3 solved
Your goal
Your goalShow that a revert quietly brought a removed password back, and why.
Last month’s secrets review closed a finding in billing-worker: an SMTP password in settings.py, removed in a commit titled "remove hardcoded smtp password".
A new scan has flagged the same line again. git log -S <text> lists every commit where the number of occurrences of that text changed, which shows adds, removals, and re-adds.
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
- SMTP
- Simple Mail Transfer Protocol, how mail servers pass messages
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: 286 words, about 2 min. It gives away every answer, so try the steps first.