learning-it by example

#321 Forward deployed engineer interviews 5.9 min

Support Bundle Without Secrets: Redact and Check It

The obvious redaction rule found nothing, and five secrets were still in the support bundle.

1. Why does the video add a check that looks for planted secrets after the bundle has been redacted?
2. In the support bundle redaction demo with five planted secrets, how many leaked after the naive password rule, and how many after the full rules?
3. Why did the naive rule, which looks for the word password followed by = or :, remove nothing?
4. What does the planted-secret check only find?
5. What does the video advise doing before a support bundle is sent?

Practice only: nothing is saved and no score counts towards anything. Each answer comes with the reason.

  1. Break the IP address rule

    Copy the code folder first. In bundle.py delete the line in RULES that matches IP addresses. Predict what the 'full rules' line and the line below it will say, then run python run.py to check.

    A hint

    Look at the 'full rules' line of the output. The check names the kind of secret, never its value.

  2. Remove the rule for the app's password

    Put the IP line back, then in bundle.py delete the line in RULES that has the comment about the app's password in a log message. The same password also sits inside the database address. Predict whether the check will report a leak. Run python run.py.

    A hint

    One rule can remove a secret from one place and leave it in another. I saw 1 leaked, a database password.

  3. Add one more log line

    Put the rule line back, then in machine.py add this line to LOG_LINES, after the retry line: '2026-03-04 10:01:50 INFO invoice sent to user@example.com'. Predict the first line of the output and how many lines are listed as changed. Run python run.py. Then explain why the check would not notice if this new address were missed by the rules.

    A hint

    The check compares only the PLANTED values. I saw 14 lines in the bundle and 8 changed lines.

These tasks are for you to try on your own machine. Nothing is checked or saved.

What this does not show

A made-up machine with five planted secrets; the rules were written for them and the check finds only planted secrets; a person must still review a real bundle.

Up next in Forward deployed engineer interviews

More in Forward deployed engineer interviews

All Forward deployed engineer interviews videos

Related videos