Repository navigation
Open
Labels
AI-doneauto-mergebase-3542-epic-plugin-system-xu8Base branch label for Epic: Plugin system: manifest, handlers, commands and official pluginsllm-claude-opus55propr-planned
Description
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 }]whereverificationis one of the built-in schemes:hmac-sha256(header name, optional prefix, signing secret connection),slack-v0(timestamp + signature), ortoken-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 kindwebhook(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.mdanddocs/docs/architecture/plugin-runtime.md.
Implementation
- Core:
packages/core/src/plugins/pluginWebhooks.ts(verification schemes, installation key, de-duplication). - API: webhook route registered next to
/webhookinpackages/api/server.tsusing the same raw-body and rate-limit pattern; deliveries enqueued for the dispatcher's delivery runner. - UI: webhook URLs in
PluginConnections. - Tests in
packages/core/testandpackages/api/test.
Notes
Depends on the dispatcher issue.
Metadata
Metadata
Assignees
Labels
AI-doneauto-mergebase-3542-epic-plugin-system-xu8Base branch label for Epic: Plugin system: manifest, handlers, commands and official pluginsllm-claude-opus55propr-planned
Activity
propr-dev commentedon Nov 15, 2026
🤖 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:
claudeclaude-opus-5-53550/claude-opus-5-5-plugin-inbound-webhooks-v-20261115-1755-x673542-epic-plugin-system-xu8issue-3550-20261115-1755-claude-opus-5-5-x67🔍 Track Task Execution