Side page to the start-from-zero pages. Read it after Identity, secrets and zero trust basics and Doppler and secrets (core step 17), and before CI, tests and the cost gate. It does not repeat them. Those pages say what a secret is and how this project keeps its own out of the repository; this one is about your habits: what to set up before the first line of code, where each kind of secret lives, how to catch the one that slipped, and what to do in the first hour after one leaks. Next: CI, tests and the cost gate.
Unfamiliar word or acronym? The Glossary defines it.
Status: the free local lab was run once on Linux; the PowerShell commands, macOS and the Doppler own-account path were not run. On 2026-10-22 the author ran every Bash command in exercises 1 to 5 on a Debian-based Linux machine with git 2.47.3, Python 3.13.5, gitleaks 8.30.1 and the
git-filter-reposcript from that project'smainbranch, as an ordinary user, in a scratch folder, and pasted trimmed output from those runs. Four things were not run and are marked est. (estimate): every PowerShell command (no PowerShell was available), anything on macOS or Windows, the gitleaks download for platforms other than Linux x64, and the whole optional path with your own Doppler account. The Doppler commands in that path were checked only against the--helptext of the Doppler CLI 3.77.0 and against Doppler's documentation; the output you will see there is not shown because it was never seen. Every vendor and standards claim was read on 2026-10-22 unless a row says otherwise, and sits in the claims register at the end of part 4, with its URL. Parts of this page describe things that are planned and not built (the edge assets); those are labeled where they appear. Trust what your terminal prints over this page.Prerequisites. Identity, secrets and zero trust basics and Doppler and secrets for the vocabulary, and APIs and tokens from zero for what a token, a scope and a
401are. The terminal and your first script and Git from zero for the shell and git commands. The free path needsgitand Python 3.11 or newer (3.13 was used), on Linux, macOS (est.) or Windows with PowerShell 5.1 or later (est.).gitleaksandgit filter-repoare optional; the page works without them. About four hours for the reading and the free exercises (est.); the optional Doppler path adds about an hour (est.).Where this runs. Everything in the free path happens in one scratch folder on your own computer. Nothing is sent anywhere and nothing is pushed. The only secrets are dummy values built at the moment you run the exercise, issued by a pretend service that is a short script; no secret-shaped text is stored in this repository. Never push the scratch repository to GitHub or anywhere else, even though the values are fake. The optional path uses your own Doppler account on its free plan and your own time; it starts with the teardown.
This page is split into four parts so each stays readable. Read them in order; the text is unchanged from the single page.
Every exercise follows predict, do, check, undo. All are free and local.