feat(integrations): push Sentry issue and installation events by webhook
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 18/100
Hướng nghiên cứu
Start by reading the webhook contract delivered by #28 — the route, signature verification and Request-ID dedup this issue builds on — since nothing here can be written before that lands. Then read src/lib/adapters/sentry/ to see what fields the polling adapter already maps, and docs/providers/sentry.md ("Limitations", "Webhooks (Post-MVP)") for the documented gaps. Done means signed issue and installation deliveries enqueue on sync_jobs and reach the timeline via the existing event types, with unit tests over sanitized fixtures and the Playwright simulated-delivery spec passing under npm run lint, npm run typecheck, npm test.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
The Sentry adapter (#117, closed) is polling only, built under the "webhooks are Post-MVP" rule. Eddie's decision on #28 (2026-11-14): webhooks first, polling as the backfill, so timeline events arrive in near real time. Sentry is one of the first two providers, because its webhooks need no scope beyond the three read-only scopes the adapter already holds.
Today a Sentry issue event reaches the timeline up to an hour late, and regressions and resolutions are dated when the sync saw them, not when they happened (docs/providers/sentry.md, "Limitations"). An uninstall is only noticed when the next sync fails.
From Sentry's documentation, checked 2026-11-14:
| Item | Value | Source |
|---|---|---|
| Where the URL lives | One webhook URL on the integration's registration, with resource subscriptions | Webhooks |
| Signature | Sentry-Hook-Signature: HMAC SHA-256 hex digest of the raw body bytes, keyed with the client secret (SENTRY_CLIENT_SECRET, already set) |
Same page |
| Other headers | Sentry-Hook-Resource (installation, issue, ...), Sentry-Hook-Timestamp, Request-ID (unique per request) |
Same page |
| Response time | Within 1 second, or Sentry counts it as a timeout | Same page |
| Issue actions | created, resolved, assigned, archived, unresolved. A regression is unresolved with substatus: "regressed" |
Issue webhooks |
| Mapping | installation.uuid on every request maps a delivery to a connection |
Webhooks |
| Installation actions | created, deleted |
Installation webhooks |
| Releases and error volume | No webhook. Both stay polled | docs/providers/sentry.md, "Webhooks (Post-MVP)" |
Plan
- Implement the Sentry webhook declaration from the contract #28 adds: resources
installationandissue, verified withSentry-Hook-Signatureagainst the raw body in constant time, deduplicated onRequest-ID, replay-checked onSentry-Hook-Timestamp. - Map
installation.uuidto the stored installation id. Unknown installations are acknowledged and dropped. issuedeliveries become the existing event types, so the timeline shows one entry whichever path saw it first:createdtosentry.issue.created,unresolvedwithsubstatus: "regressed"tosentry.issue.regressed,resolvedtosentry.issue.resolved. Ignoreassignedandarchived. Regressions and resolutions are now dated by the delivery, not by the sync.- Read only the fields the adapter reads today (
id,shortId,status,substatus,level,firstSeen,lastSeen,permalink, project id). Never storetitle,culprit,metadata,assignedTo, oractor: they can carry personal data from the user's app. installation.deletedmarks the connection as needing a reconnect at once.- Answer within 1 second by queueing processing on
sync_jobs(#10). - Docs:
docs/providers/sentry.md(rename "Webhooks (Post-MVP)" to "Webhooks", update "Disconnect and revoke" and "Limitations", and change self-hosted registration step 4 to set the Webhook URL and subscribe to Issue).
Acceptance criteria
- A signed
issue.createddelivery puts a "New issue" event on the timeline within a minute, without waiting for a sync. - A regression and a resolution are dated by the delivery.
- The same issue event seen by webhook and then by polling shows once.
- An unsigned, wrongly signed, stale, or repeated delivery is rejected or ignored, and logged without its body.
-
installation.deletedmarks the connection as needing a reconnect. - No issue title, culprit, or actor is stored or logged.
- Polling still runs and still fills in error volume, releases, and any missed delivery.
- Unit tests on recorded, sanitized payloads from Sentry's documented samples. No live calls in CI.
- Playwright e2e: a signed delivery for the simulated Sentry provider appears on the timeline.
Files and areas
src/lib/adapters/sentry/(webhook handler, schemas, fixtures, tests), the webhook route from #28,docs/providers/sentry.md,docs/operations/oauth-apps.md.- Non-goals: new scopes,
error,comment, and alert resources, and pushing error volume (no webhook exists for it).
Verification
npm run lint,npm run typecheck,npm test- The Playwright spec for the simulated delivery.
Depends on
- #28 Ingest provider webhooks (contract, route, deduplication)
- #117 Add the Sentry adapter (closed)
Branch: <issue-number>-sentry-webhooks
Closes with a Closes #<issue-number> footer on the commit or pull request.
Model: anthropic/claude-opus-5-5 | Reasoning effort: unknown
- Ngôn ngữ chính
- TypeScript
- Star
- 1
- Fork
- 1
- Merge trung bình
- 6 giờ 56 phút
- Pull request đã merge (30 ngày)
- 136
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của eddiejaoude/StackDash
-
area: docs documentation priority: P3 size: S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
eddiejaoude/StackDash#462 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: web bug priority: P3 size: XS
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
eddiejaoude/StackDash#432 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: database bug priority: P3 size: S
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
eddiejaoude/StackDash#419 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: docs bug priority: P2 size: XS
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
eddiejaoude/StackDash#418 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility area: timeline bug priority: P3 size: XS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
eddiejaoude/StackDash#389 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của eddiejaoude/StackDash
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
open-webui/tether#52 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`void platform install --app-access public` fails when Cloudflare reports Access is disabledĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
voidzero-dev/void#835 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
AykutSarac/jsoncrack.com#616 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
melgarafael/DeskcommCRM#4679 ·
Maintainer thường phản hồi trong vòng 1 ngày