devsecops.observer
← All labs

CI/CD secrets / Beginner / 15–25 min

The debug log that exposed a token

A simulated CI job leaks a dummy token into its output and artifact. Investigate and stop the exposure while preserving the report.

LAB IDdevsecops-01-ci-secret-exposureTRACK / devsecops.observer
Engineer investigating a secure delivery pipeline beside server equipment

The scenario

A local CI simulation is producing a useful report, but debug output is exposing a deliberately fake token. Repair the configuration; do not use real credentials.

Mission objectives

  • Inspect the simulated job output and generated artifact.
  • Stop the dummy token appearing in either output or artifact.
  • Keep the report generation working.

Get the lab

Download and inspect the installer before running it. It checks the archive's SHA-256 digest and refuses to overwrite an existing lab directory.

curl -fsSLO https://devops.download/labs/devsecops-01-ci-secret-exposure.sh
less devsecops-01-ci-secret-exposure.sh
bash devsecops-01-ci-secret-exposure.sh
cd labs/devsecops-01-ci-secret-exposure
./setup.sh

When you've made your changes, run ./verify.sh. Remove lab resources with ./teardown.sh.

Download the archive instead ↗

Need a nudge?

Hint #1

Compare the debug setting in .lab-state with what the job writes to its log and report.

Hint #2

The token is a fixed dummy value; this exercise does not connect to GitHub or any cloud service.

Hint #3 · Deep Dive Runbook on opsbreakfix.com

Read the deep dive runbook ↗

Solved it?

Read the Official Root Cause Analysis & Certification Roadmap on opsbreakfix.com

Continue to opsbreakfix.com ↗

OpsBreakFix ecosystem

Explore the sites.

One connected home for operations knowledge and tools.