# A production deploy names its missing secrets and stops first

The first step of deploy-prod.yml fails with the names of the required secrets that are not set, before checkout, migrations and upload. It never receives a secret's value.

- **A missing secret stops the production deploy in its first step.** `deploy-prod.yml` now begins with a check of its eight required secrets: `CF_API_TOKEN`, `ACCOUNT_ID`, `DATABASE_URL`, `BETTER_AUTH_SECRET` and the four `STORAGE_*`. When one is not set, the run fails with `missing required secrets: <names>` before it checks out, migrates the production database or uploads a Worker. Until now the `STORAGE_*` secrets were first read by the last step, after the migrations. The step is handed only whether each secret is set, never its value. See [deploy](/docs/deploy#production). ([#239](https://github.com/CarlosZiegler/template-cloudflare/pull/239))
- **A test keeps the list honest.** `scripts/deploy-secrets.test.mjs` (in `pnpm test`) runs the step's script and fails when its list differs from the secrets the job uses, so a workflow that starts to need a new secret must add it to the check. ([#239](https://github.com/CarlosZiegler/template-cloudflare/pull/239))
