Skip to content

Plugin inbound webhooks: verified endpoints that call a handler #3550

Open

Description

@integry

Goal

Let an external service call a plugin (a chat mention, a tracker update, an error alert), with ProPR verifying the request before any plugin code runs.

What to build

  • Manifest: contributes.webhooks: [{ name, handler, verification }] where verification is one of the built-in schemes: hmac-sha256 (header name, optional prefix, signing secret connection), slack-v0 (timestamp + signature), or token-header (constant-time comparison with a secret). Verification is done by ProPR before any plugin code runs; an unverified request gets 401 and is counted, not logged with its body.
  • Route: POST /api/plugins/<installation key>/hooks/<name> with raw body, the existing webhook rate limiter, a body size limit, timestamp tolerance where the scheme has one, and de-duplication by delivery id when the service sends one. The route answers quickly and runs the handler from the queue as a delivery of kind webhook (recorded in Activity like event deliveries, with the same retry rules). A handler may declare a synchronous response for services that require a challenge echo (kept to a pure function of the request).
  • The URL contains an unguessable installation key, shown on the Plugins page Connect step for copying, with a Regenerate action.
  • Requests for a disabled or uninstalled plugin get 404 and run nothing.

Acceptance criteria

  • Valid signature runs the handler once; bad signature, stale timestamp, replayed delivery id and oversized body are rejected without running plugin code; the rate limiter applies.
  • Each verification scheme has a test with a documented test vector.
  • The synchronous challenge response works and cannot call ctx.
  • A disabled plugin's URL answers 404; regenerating the key invalidates the old URL.
  • Request bodies and signature headers are never stored or logged (sentinel test).
  • The Plugins page shows the URL per webhook with copy and Regenerate.
  • Docs: webhook verification schemes and the URL in docs/docs/features/plugins.md and docs/docs/architecture/plugin-runtime.md.

Implementation

  1. Core: packages/core/src/plugins/pluginWebhooks.ts (verification schemes, installation key, de-duplication).
  2. API: webhook route registered next to /webhook in packages/api/server.ts using the same raw-body and rate-limit pattern; deliveries enqueued for the dispatcher's delivery runner.
  3. UI: webhook URLs in PluginConnections.
  4. Tests in packages/core/test and packages/api/test.

Notes

Depends on the dispatcher issue.

Activity

  1. added
    base-3542-epic-plugin-system-xu8
    on Nov 14, 2026
  2. propr-dev commented on Nov 15, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3550/claude-opus-5-5-plugin-inbound-webhooks-v-20261115-1755-x67
    • Base Branch: 3542-epic-plugin-system-xu8
    • Worktree: issue-3550-20261115-1755-claude-opus-5-5-x67

    🔍 Track Task Execution

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

    AI-doneauto-mergebase-3542-epic-plugin-system-xu8llm-claude-opus55propr-planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions