sentry-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Sentry webhooks (sentry.io — the error-monitoring and application-performance platform). Use when setting up a Sentry Integration Platform…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Sentry Webhooks
Sentry (sentry.io) is the error-monitoring and application-performance platform. This skill covers Sentry's Integration Platform webhooks — the webhooks emitted by a Sentry internal integration (org-scoped, the common case) or public integration, configured under Settings → Developer Settings.
Canonical docs: Webhooks and Sentry Hook Signature.
Self-hosted Sentry runs the same code, so the scheme below is identical on a self-hosted host — only the domain changes.
Not Sentry Insurance (sentry.com), not the Sentry login/identity products, and not
@sentry/*SDK ingest — events POSTed to Sentry at/api/{project}/store/go the other direction and authenticate with DSN keys, not HMAC. None of this applies there.
When to Use This Skill
- How do I receive Sentry webhooks?
- How do I verify a Sentry webhook signature?
- Why is my
Sentry-Hook-Signatureverification failing? - What is
Sentry-App-Signatureand why do I get it on some requests? - How do I know which event a Sentry webhook is — there's no
typefield? - How do I handle
issue.created,issue.resolvedorissue.ignored? - How do I handle
event_alert.triggeredandmetric_alert.critical? - Does Sentry retry a failed webhook? Why did Sentry disable my webhook?
- What's the difference between Integration Platform webhooks, service hooks and the legacy WebHooks plugin?
The Single Most Important Routing Fact
The resource is only in the Sentry-Hook-Resource header. The JSON body
has no type and no event field — only action. To recover the event
token you must combine them:
event = request.headers['sentry-hook-resource'] + '.' + body.action
// e.g. 'issue' + '.' + 'created' → 'issue.created'
Any handler that switches on a body field alone is wrong and will never fire.
Verification (core)
HMAC-SHA256, lowercase hex, over the raw request body bytes, keyed with
the integration's Client Secret used as raw UTF-8. No prefix, no v1=, no
comma-separated list — the header value is a bare 64-character hex digest.
The timestamp is not part of the signed string.
const crypto = require('crypto');
// Sentry's own server: hmac.new(key=secret.encode(), msg=body.encode(),
// digestmod=sha256).hexdigest() — SentryApp.build_signature
function verifySentrySignature(rawBody, headers, clientSecret) {
if (!clientSecret) return false; // fail closed
// Try Sentry-Hook-Signature, then fall back to Sentry-App-Signature:
// UI-component requests sign identically but use the second header name.
const received = headers['sentry-hook-signature'] || headers['sentry-app-signature'];
if (!received) return false;
const body = Buffer.isBuffer(rawBody) ? rawBody : Buffer.from(rawBody ?? '', 'utf8');
const expected = crypto
.createHmac('sha256', clientSecret) // Client Secret AS-IS, never decoded
.update(body) // RAW bytes — never re-serialized JSON
.digest('hex'); // lowercase hex, NOT base64
const a = Buffer.from(String(received).trim(), 'utf8');
const b = Buffer.from(expected, 'utf8');
return a.length === b.length && crypto.timingSafeEqual(a, b); // length guard FIRST
}
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Why manual HMAC and not an SDK
The @sentry/* packages are error-reporting SDKs. None of them — and no
official Sentry client library in any language — ships a webhook-signature
verification helper. There is nothing to call. Do the HMAC directly with
node:crypto or Python hmac + hashlib, as the examples here do. Do not
add @sentry/node as a dependency for this.
Gotchas That Actually Bite
Never re-serialize a parsed body — use the raw bytes. Sentry's docs say so
explicitly: "Compute the digest over the raw body as received. Don't parse the
JSON and serialize it again, because the result won't always match the bytes
Sentry signed." Their JS snippet takes the raw body from
express.raw({ type: "application/json" }) and the Python one passes
request.get_data(). The reason is byte-level: Sentry serializes with
simplejson configured separators=(",", ":") (compact) but leaves
ensure_ascii=True in place, so it emits \uXXXX escapes for any non-ASCII
character. Python's json.dumps defaults to ", " / ": " separators (never
matches), and JSON.stringify emits the literal UTF-8 character, so an issue
title, comment or username with an accent or an emoji produces a different
byte string and a re-serializing handler rejects a perfectly valid
delivery. Float and large-int formatting can dive
Установить sentry-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sentry-webhooks?
Receive and verify Sentry webhooks (sentry.io — the error-monitoring and application-performance platform). Use when setting up a Sentry Integration Platform webhook handler for an internal or public integration, debugging Sentry-Hook-Signature verification, or handling events like issue.created, issue.resolved, event_alert.triggered, metric_alert.critical, error.created, comment.created, seer.pr_created or preprod_artifact.size_analysis_completed. Sentry signs with HMAC-SHA256 over the RAW body, lowercase hex, keyed with the integration's Client Secret, and sends the digest as Sentry-Hook-Signature (or Sentry-App-Signature on UI-component requests). The resource is only in the Sentry-Hook-Resource header — the body has no event/type field. Not Sentry Insurance (sentry.com), not @sentry/* SDK event ingest.
Как установить скилл sentry-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sentry-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic