Skip to content

fix(service): the webhook route refuses an unsigned or oversized delivery before it reads the body, and a rate limit guards it #2476

Description

@dan-petty

Problem or Motivation

A go-live review of the roadmap Service (origin/main 960e357, 2026-10-28) found that its public webhook endpoint has no rate limit, and that it reads the whole body before it checks the signature (src/devops_cli/server/routes/webhooks.py:230-301; k8s/devops/roadmap-service/ingress.yaml). A flood of forged deliveries costs the Service CPU and log volume, and no alert shows it. The repositories' hooks are also wider than the Service needs: on 2026-10-28 all 8 were active, three sent every event (*), and k8s/README.md (Roadmap service, step 8) asks for the Issues event only.

Proposed Solution & Architectural Design

Target Subsystem

Webhook route, ingress, monitoring rules, k8s/README.md.

Existing Tool Considered

Traefik's RateLimit middleware, which the cluster's ingress controller ships. Nothing is built.

Acceptance criteria

  • A test sends a delivery with no signature header and a body above the cap, and the route refuses both before it reads the body.
  • The rendered ingress names the middleware.

Activity

  1. added
    source/agent
    type/security
    status/new
    value/medium
    effort/medium
    on Oct 28, 2026
  2. dan-petty commented on Oct 28, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/security. The change hardens the public webhook endpoint against forged and oversized deliveries.
    • Priority: P2-Medium. A go-live review found the gap, but no active exploit or failed run is cited.
    • Value: Medium. It stops a flood of forged deliveries from consuming CPU and log volume on the Service.
    • Effort: Medium. It spans a Traefik middleware, a route guard, an alert rule, and a README step, but each part is small.
    • Related: feat(service): one webhook router verifies each provider its own way, parses a typed payload and delivers each event only to the consumers subscribed to it #1386, which asks for a different change. Both work on the webhook route, but #1386 builds the routing and verification logic while this candidate adds a protective layer (rate limit, size cap, early rejection) in front of it.
  3. added
    priority/p2-medium
    on Oct 28, 2026
  4. removed
    status/new
    on Oct 30, 2026
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-mediumsource/agenttype/securityvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions