Repository navigation
Description
Split from #4664.
The onboard Service row should report a repository webhook that does not send the issues events (#3772).
Why it is deferred: row 12 of devops repos onboard is temporary. The docs mark it "Until #4417" and say #4417 deletes it (docs/repos/onboard.md:58, docs/repos/onboard.md:84), and the row needs the keyring map of the webhook secrets, a secret value that a Service round does not read; the nightly drift Job leaves row 12 out for the same reason (docs/repos/onboard.md:84). The replacement of the hook check must land first.
Acceptance criteria:
- The
onboardrow SHALL report the webhook row of the replacement of feat(service): verify GitHub App webhooks with one secret #4417 and SHALL name a missingissuesevent in the onboarding issue. - The onboarding issue MUST hold no secret value; it names the secret and the command that stores it, not the value.
- A test with the HTTP fake: a repository whose hook does not send
issuesgives 1 onboarding issue line that namesissues, and a repository whose hook sendsissuessends no write.
Proposed design
Problem statement
The Webhook row of devops repos onboard checks the App webhook URL, the content type and the secret. It does not check the events that the App sends. The roadmap then misses issues events. The change reads the events of the App webhook and names a missing issues event in a person step. The person step holds the secret setting and the command, and no secret value.
Acceptance criteria
Requirement: The Webhook row checks the issues event
The Webhook row of devops repos onboard SHALL read the events of the App webhook and SHALL name issues when the App does not send it.
Scenario: An App webhook without the issues event
- WHEN The HTTP fake serves the App with an
eventslist that omitsissues, and the Webhook row runs on an otherwise onboarded repository. - THEN The row state is
PERSON, and the report holds one person step that namesissues.
Requirement: The person step holds no secret value
The person step of a missing issues event MUST name the webhook secret setting and the devops config set command, and MUST hold no secret value.
Scenario: A step for a missing issues event
- WHEN The Webhook row writes the person step for an App webhook that does not send
issues, and the fake webhook config holds a known secret value. - THEN The step text holds
service.github_app.webhook_secretanddevops config set service.github_app.webhook_secret, and it holds no value of the fake secret.
Requirement: A webhook with the issues event gives no step
The Webhook row MUST report PRESENT and MUST give no person step that names issues when the App webhook sends the issues event.
Scenario: An App webhook with the issues event
- WHEN The HTTP fake serves the App with an
eventslist that holdsissues, and the Webhook row runs on an otherwise onboarded repository. - THEN The row state is
PRESENT, and the report holds no person step that namesissues.
Existing Tool Considered
No alternatives check has run. The open, maintained library that covers the GitHub requests is gidgethub. ADR 0006 requires it, and the onboard rows already use it, so the change adds no dependency. No library covers the report of a webhook event in a row of devops repos onboard. The change adds one read of the App events and one person step in src/devops_cli/github/onboard/service_rows.py. The written cost is about 1,000 tokens to build, 200 tokens per later fix, and 1 hour. The row builds no client of its own.
Key questions
- Which module holds the Webhook row and the Service row?:
src/devops_cli/github/onboard/service_rows.pyholdswebhook_row(row 12) andservice_row(row 13).tests/github/onboard/test_onboard_rows.pytests the rows over the fake GitHub. [sources: src/devops_cli/github/onboard/service_rows.py, tests/github/onboard/test_onboard_rows.py] - Has the replacement of row 12 from feat(service): verify GitHub App webhooks with one secret #4417 landed?: Yes.
webhook_rowcites(#4417)and reads the App webhook config throughapp_webhook_config, so row 12 is the replacement and no longer the temporary row. The docs entry of row 12 is the source of the old plan. [sources: src/devops_cli/github/onboard/service_rows.py, docs/repos/onboard.md:58, docs/repos/onboard.md:84] - Which row reports the missing
issuesevent?: The Webhook row (row 12).webhook_rowalready checks the App webhook config, andwebhook_stepalready names the events.service_rowholdsservice.reposand the deploy only. (best practice) [sources: src/devops_cli/github/onboard/service_rows.py, docs/repos/onboard.md:84]- Chosen: Extend the Webhook row.
webhook_rowalready checks the App webhook config, and its step names the events. - Rejected: Add the check to the Service row. Row 13 holds
service.reposand the deploy, and a second webhook read can disagree with row 12. - Rejected: Add a new row. A new row changes the number of each later row and the documented report.
- Chosen: Extend the Webhook row.
- How does the row read the
issuesevent?: From the events of the App webhook, whichGET /appgives. The response ofGET /app/hook/configholds the URL, the content type and the secret, and no event. (best practice) [sources: src/devops_cli/github/onboard/service_rows.py, src/devops_cli/github/app_installation.py, AGENTS.md]- Chosen: Read the App events with
GET /app. The App webhook serves each repository, and its events are on the App. - Rejected: Read each repository hook with
GET /repos/{repo}/hooks. The Service receives events through the App webhook, not a per-repository hook. - Rejected: Read the keyring map of the webhook secrets. A Service round reads no secret value, and the events need none.
- Chosen: Read the App events with
- What does the person step hold?: One step names the missing
issuesevent, the settingservice.github_app.webhook_secretand the commanddevops config set service.github_app.webhook_secret. It holds no secret value. (best practice) [sources: src/devops_cli/github/onboard/service_rows.py, AGENTS.md]- Chosen: Name the event, the setting and the command. The person can store the secret, and the output holds no secret value.
- Rejected: Write the secret value. The issue body forbids it, and AGENTS.md rule 10 forbids a secret in a repository.
- Rejected: Name the missing event only. The person would not know the setting or the command.
- Which constant holds the events that the App must send?:
CONST_ROADMAP_WEBHOOK_EVENTSinsrc/devops_cli/config/constants.py.webhook_stepprints the sorted events of that constant. [sources: src/devops_cli/config/constants.py, src/devops_cli/github/onboard/service_rows.py] - What is the onboarding issue of the body?: The command creates no GitHub issue. It prints a report, and each person step is one line of that report. A test asserts that the report ends with
Person steps: none.when no step exists. [sources: tests/github/onboard/test_onboard_rows.py, src/devops_cli/github/onboard/run.py] - Which test double does the test use for the GitHub requests?: The HTTP fake of the onboard harness in
tests/support/github_repository.py.tests/github/onboard/test_onboard_rows.pyalready uses it, and ADR 0007 permits a double at the HTTP process edge. (best practice) [sources: tests/github/onboard/test_onboard_rows.py, tests/support/github_repository.py, AGENTS.md]- Chosen: The HTTP fake of the onboard harness. The onboard tests already use it, and ADR 0007 permits a double at the HTTP edge.
- Rejected: A mock GitHub client. A mock of an internal client is no process edge.
- Which library sends the GitHub requests?: gidgethub. ADR 0006 requires it for each GitHub request, and the session of the onboard rows already uses it. (best practice) [sources: AGENTS.md, src/devops_cli/github/onboard/routes.py]
- Chosen: gidgethub. ADR 0006 requires it, and the repository already uses it.
- Rejected: PyGithub. A second GitHub client contradicts ADR 0006.
- Rejected: A
gh apishell call. AGENTS.md rule 7 forbids a baregh, and a shell call bypasses the route table.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 28, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies and Watched files in the section Proposed design of the body.
devops-cli-service commentedon Nov 29, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.