Skip to content

docs(spec): plan #7308 Guard the webhook row against the default URL - #7375

Merged
dan-petty merged 4 commits into
mainfrom
fix/7308-onboard-writes-no-webhook-from-a
Nov 27, 2026
Merged

dan-petty merged 4 commits into
mainfrom
fix/7308-onboard-writes-no-webhook-from-a

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

Row 12 of devops repos onboard plans the Service webhook from service.webhook_url, which defaults to the example host. A workstation without the cluster values thus plans a hook to that host, and a confirmed run would create it. The row also patched a new secret onto a live hook from a run that never pushed the secret to the cluster, so the Service refused deliveries until a deploy. Row 12 now reports person with a step that names the setting when the URL is the default, and sends no request to a hooks route. It patches an existing hook only in a run that does row 13 and passes row 13's checks. Else it reports the difference and writes nothing.

Plans #7308

Change: openspec/changes/7308-onboard-writes-no-webhook-from-a/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/spec labels Nov 27, 2026
@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 27, 2026 02:25
@dan-petty
dan-petty marked this pull request as draft November 27, 2026 04:20
@devops-cli-service
devops-cli-service Bot marked this pull request as ready for review November 27, 2026 04:21
@dan-petty
dan-petty force-pushed the fix/7308-onboard-writes-no-webhook-from-a branch from 748f04e to fb04cf7 Compare November 27, 2026 04:21
@dan-petty

Copy link
Copy Markdown
Owner

Plan vetted (80eeff1, rebased on main after #7300). Independent review: no blocker. Every rule and proof of #7308 maps to a task, the cited lines match, group sizes are 5/3/1, and the #3770 plan on main changes other requirements (only the test files need a simple rebase for the second PR to merge).

Fixed in the plan from the review:

  • The deploy plan is read lazily and at most once, inside the guarded row lambdas (row 12 only in the PATCH branch, row 13 only after its early returns). A read before row 12 would run git fetch in every confirmed run with nothing to change, and an error there would end the run after rows 0-11 wrote. Two tests pin it (one git fetch when both rows need the plan; none on a second confirm with nothing to change).
  • DeployPlan.reason (refuses row 13) is kept apart from withheld (row 13 not in --only, --no-deploy, or the refusal), and the step text names devops repos onboard <repo> --confirm --only 12,13 and no deploy-stack. A new spec requirement covers the step.
  • The fail-to-pass replay: the tests read the default from ServiceConfig.model_fields["webhook_url"].default, not from the new constant, so the head tests still collect on the base source.
  • docs/repos/onboard.md "What stays with a person" gets the two new steps.
  • Workflow follow-up: feat(service): verify GitHub App webhooks with one secret #4417 for the partial service.webhook_secrets map hazard (a push from a workstation that lacks the other repositories' secrets), and a person check with --all --plan.
  • Nits: the guard test that passes on the base is named as such; the repeated "write the two tests" and document task are removed; Existing Tool says it deletes no code.

Not changed (pre-existing, outside #7308): docs/CLUSTER.md says devops has no command that changes a hook, which row 12 already contradicts.

@dan-petty
dan-petty enabled auto-merge (squash) November 27, 2026 04:39
@dan-petty
dan-petty merged commit eeaa42f into main Nov 27, 2026
25 checks passed
@dan-petty
dan-petty deleted the fix/7308-onboard-writes-no-webhook-from-a branch November 27, 2026 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/spec type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant