Repository navigation
Open
Labels
area: integrationsGitHub, Slack and webhooksdead codeSchema or code that ships but nothing usesenhancementA new capability or an improvement to an existing onehelp wantedWe would love a hand with this onep1 highBlocks real work, fix this weekpoints: 8Fibonacci estimate: 8roadmapA tracked item on the public roadmapsize: largeA week or so. Several surfaces, or a schema change
Milestone
Description
Orbit has no outbound webhooks. Inbound works for GitHub and Slack (apps/web/src/app/api/webhooks/), but there is no way to have Orbit tell another system that something happened.
This is the most requested integration feature. The MCP server covers some of it, since an agent can read anything, but it does not cover "tell my system the moment an issue closes".
Wanted:
- Per-workspace endpoint registration, admin only
- A useful event set: issue created, updated, state changed, closed; comment created; project and sprint events
- HMAC signatures, the way Orbit already verifies inbound GitHub and Slack
- Retries with backoff, and a visible delivery log so failures are debuggable
- Deliveries must respect scopes, so a webhook never carries a row its workspace may not read
The SyncAction published to Redis on every mutation is already the right event shape. See docs/architecture.md.
Worth agreeing the event names and payload shape on this thread first, because they are hard to change once anyone depends on them.
Metadata
Metadata
Assignees
Labels
area: integrationsGitHub, Slack and webhooksdead codeSchema or code that ships but nothing usesenhancementA new capability or an improvement to an existing onehelp wantedWe would love a hand with this onep1 highBlocks real work, fix this weekpoints: 8Fibonacci estimate: 8roadmapA tracked item on the public roadmapsize: largeA week or so. Several surfaces, or a schema change
Type
Projects
- StatusShow more project fieldsBacklog
Activity
imshashank commentedon Aug 8, 2026
Worth adding for anyone picking this up: the storage is already built.
packages/db/src/schema/comms.tsdefines two tables that no application code touches:webhook: organisation, url, secret, aneventsJSONB array, an enabled flag, creator,sync_id, and anarchived_atwebhook_log: webhook id, event, status, attempt number, request body, response status, response body, error andduration_ms, indexed on webhook and timeThat covers registration, the HMAC secret, the event subscription list and the delivery log with retry attempts, which is most of what this issue asks for. Grepping the repository outside
packages/db/src/schemaandpackages/db/testsfinds zero references to either table.So the schema decision has already been made and reviewed. What is missing is the dispatcher, the retry policy, the signing, the admin UI and the scope check on outbound payloads.
Two things the existing schema does not answer, and which still need deciding on this thread:
Context on the other dormant tables is in #192.
imshashank commentedon Aug 8, 2026
Shared infrastructure question with #193 and #210.
All three need somewhere for background work to run, and Orbit deploys as one Next.js app with no worker process:
writeCycleSnapshotsinpackages/core/src/analytics/snapshot.tsalready exists and already needs something to call itWhatever mechanism is chosen here should serve all of them. Say what you propose on this thread, because three different answers to the same question would be the worst outcome.
The storage for this issue specifically is already built, see the earlier comment.
imshashank commentedon Aug 15, 2026
Re-verified on
3ba32cb. Still entirely open, and worth recording what does and does not exist, because the table names make it look further along than it is.The schema is there.
packages/db/src/schema/comms.tsdefineswebhook,webhook_logandwebhook_delivery. That is a third table beyond the two named in #192.No code uses them. The only references outside the schema and its tests are
organization-deletion-service.ts, which cascades them on workspace delete, andintegrations-data.ts. Nothing registers an endpoint, nothing signs a payload, nothing delivers, nothing retries. Grepping forcreateHmacor a signature header in the integrations code returns nothing, so the HMAC requirement here has no starting point in the outbound direction. The inbound GitHub and Slack verification this issue points at as the model does exist and is still the right thing to copy.One thing that did land nearby and is easy to mistake for progress. #263, "scope a delivery to the workspace it belongs to", is about inbound GitHub webhook deliveries, not outbound ones. It does not move this issue.
So the description is still accurate in full. The event set, HMAC signatures, retries with backoff, the delivery log and the scope requirement are all unbuilt.
Two notes for whoever picks this up:
The scope requirement is the interesting constraint and it is the one most likely to be got wrong:
SyncActionand the scope model inpackages/shared/src/eventsalready solve exactly this for the realtime fan-out, so the answer is to reuse that resolution rather than to re-derive who may see a row at delivery time.The request to agree event names and payload shape on this thread first still stands and nobody has. That is a comment, not a pull request, and it would unblock the rest.
imshashank commentedon Aug 15, 2026
Correcting two things in my comment above. I searched
packages/coreonly, and the integrations code lives inpackages/services.webhook_deliveryis not dormant. It is actively written by the inbound GitHub webhook route,apps/web/src/app/api/webhooks/github/route.ts, which uses it to claim, deduplicate and record the status of each inbound delivery. Please do not group it withwebhookandwebhook_logor treat it as free to repurpose. It is an inbound delivery ledger, and an outbound one would be a separate table.Only
webhookandwebhook_logare dormant.webhookis referenced solely byorganization-deletion-service.tsfor cascade cleanup, andwebhook_logonly by the schema and its tests.HMAC signing does exist, for inbound.
packages/services/src/github/index.tsandpackages/services/src/slack/index.tsboth verify inbound signatures withcreateHmac('sha256', ...)andtimingSafeEqual. So the statement in my previous comment that grepping forcreateHmacreturns nothing is wrong.That is better news for this issue than what I wrote. The signing and constant-time comparison pattern is already in the codebase, in the same package an outbound dispatcher would live in, so the outbound side is a matter of reusing it rather than establishing it.
The rest of that comment stands: no endpoint registration, no outbound dispatch, no retries, no outbound delivery log, and the scope requirement is still the constraint worth designing around first.
imshashank commentedon Sep 6, 2026
The scheduler question is answered:
apps/web/vercel.jsonalready runs cron routes (/api/cron/notificationsevery minute, analytics snapshots, prune). Outbound delivery and retries should be one more cron-driven route reading a delivery table, not a worker process. Self-hosting needs the equivalent, which #392 already lists.The other open question, event names and payload shape, still needs agreeing before code. Proposal: mirror
SyncAction(entity,action,row,syncId) with atypeof<entity>.<action>, a per-delivery id, and anX-Orbit-SignatureHMAC-SHA256 header computed the way inbound GitHub and Slack are verified. Scope filtering reuses the realtime scope resolution rather than re-deriving who may see a row.This is also the prerequisite for delegating work to agents (#403), which is why it is p1.