FORGE-433: make the deploy's Worker secret sync work and fail loudly #1245
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
gmackie/ForgeGraph!1245
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "forge-433-secret-sync"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
FORGE-433 — https://tasks.gmac.io/gmacko/issue/FORGE-433
Problem
The production deploy's "Sync secrets to CF Worker" step failed on every run (
wrangler secret list: exit status 1). Because it wascontinue-on-error, deploys stayed green and new store secrets never reached theforgegrafWorker.Root cause
It was the only wrangler step in
deploy.ymlwithoutCLOUDFLARE_ACCOUNT_ID. The CI API token reaches more than one Cloudflare account, and wrangler cannot choose one non-interactively (deploy-staging.ymlalready notes this).listCFSecretsusedexec.Command(...).Output(), which discarded wrangler's stderr, so the log never said why.Changes
deploy.yml: passCLOUDFLARE_ACCOUNT_IDto the sync step (and to the rollback step, which had the same gap). Dropcontinue-on-error. Give the step the idsecret_sync, and have "Report deploy failure" record it. A sync failure does not roll back the healthy Worker.forge secret sync:--stageand--nameso other Workers can be filled through the same pathscripts/test-secret-sync-step.mjs(wired into CI) pins the workflow contract; Go unit tests cover the CLI changes.deploy-source-report.test.tsnow pins the sync as blocking instead of advisory.Acceptance criteria
🤖 Generated with Claude Code
0a9104f13edaa7f2f220daa7f2f2207cf9de2d50