Scenarios · Docker · DS3.4 · 12 min · L0

The leaked API key

You never pushed the key to GitHub. You pushed it inside the image.

✓ Validated on Docker Engine 29.9.3 · Run 1 · 2026-11-20Preview

The story

Meera builds a weather widget for the campus fest app. The weather service wants an API key, and the demo is in ten minutes. Her quick hack: pass the key into the build and save it in a config file in the image. She keeps the key out of Git. The widget runs, and she shares the image with the team. Ravi asks, half joking: "Meera, is that your key I can read?" (The key in this scenario is fake on purpose. Never use a real key to try this.)

🔒 Free account

Sign up free to play this scenario

A free account unlocks every scenario, journey and exam, and saves your progress. No payment, ever.