Skip to content

feat(roadmap): check the repository webhook in the onboard row #7274

Backlog

Description

@devops-cli-service

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 onboard row SHALL report the webhook row of the replacement of feat(service): verify GitHub App webhooks with one secret #4417 and SHALL name a missing issues event 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 issues gives 1 onboarding issue line that names issues, and a repository whose hook sends issues sends 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 events list that omits issues, and the Webhook row runs on an otherwise onboarded repository.
  • THEN The row state is PERSON, and the report holds one person step that names issues.

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_secret and devops 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 events list that holds issues, and the Webhook row runs on an otherwise onboarded repository.
  • THEN The row state is PRESENT, and the report holds no person step that names issues.

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.py holds webhook_row (row 12) and service_row (row 13). tests/github/onboard/test_onboard_rows.py tests 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_row cites (#4417) and reads the App webhook config through app_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 issues event?: The Webhook row (row 12). webhook_row already checks the App webhook config, and webhook_step already names the events. service_row holds service.repos and 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_row already checks the App webhook config, and its step names the events.
    • Rejected: Add the check to the Service row. Row 13 holds service.repos and 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.
  • How does the row read the issues event?: From the events of the App webhook, which GET /app gives. The response of GET /app/hook/config holds 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.
  • What does the person step hold?: One step names the missing issues event, the setting service.github_app.webhook_secret and the command devops 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_EVENTS in src/devops_cli/config/constants.py. webhook_step prints 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.py already 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 api shell call. AGENTS.md rule 7 forbids a bare gh, and a shell call bypasses the route table.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/feature
    source/agent
    scope/roadmap
    status/new
    value/medium
    effort/medium
    priority/p2-medium
    on Nov 26, 2026
  2. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    ContributorAuthor

    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.

  3. devops-cli-service commented on Nov 29, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/mediumpriority/p2-mediumscope/roadmapsource/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions