confluence-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify Confluence Data Center webhooks. Use when setting up Confluence admin webhook handlers, debugging X-Hub-Signature verification, or handling…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Confluence Webhooks
Scope: Confluence Data Center (self-managed) admin webhooks only. Confluence Cloud does not offer these; it uses app (Connect) webhooks authenticated with JWTs, which this skill does not cover.
When to Use This Skill
- How do I receive Confluence Data Center webhooks?
- How do I verify the Confluence
X-Hub-Signatureheader? - How do I handle
page_created,page_updated, orcomment_createdevents? - Why is my Confluence webhook signature verification failing?
Verification (core)
When you set a secret on the webhook, Confluence signs each request with HMAC (default HMAC-SHA256, keyed on the secret) over the raw request body and puts the result in the X-Hub-Signature header. The Confluence page only says the header "contains the HMAC"; the sha256=<hex> value format is taken from the identically worded Bitbucket Data Center page. Accept the digest with or without the sha256= prefix.
const crypto = require('crypto');
function verify(rawBody, signatureHeader, secret) {
let sig = (signatureHeader || '').trim().toLowerCase();
const eq = sig.indexOf('=');
if (eq !== -1) {
if (sig.slice(0, eq) !== 'sha256') return false; // only sha256 is documented
sig = sig.slice(eq + 1);
}
const expected = crypto.createHmac('sha256', secret).update(rawBody).digest('hex');
try {
return crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected));
} catch {
return false; // length mismatch
}
}
Read the body as raw bytes before any JSON parsing. In Express use express.raw({ type: '*/*' }) so every content type is verified against the exact bytes sent.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Common Event Types
The event name is in the JSON body's event field. Payloads are mostly IDs (e.g. {"timestamp":..., "event":"page_trashed", "userKey":"...", "page":{"id":309264476}}); look details up via the REST API.
| Event | Triggered when |
|---|---|
page_created |
A page is published for the first time |
page_updated |
A page is edited (when changes are published) |
page_removed |
A page is deleted (sent to the trash) |
page_trashed |
A page is purged from the trash |
blog_created |
A blog post is published |
comment_created |
A page, inline, or file comment is made |
space_created |
A new space is created |
See references/overview.md for the full list.
Important Headers
| Header | Description |
|---|---|
X-Hub-Signature |
HMAC of the raw body, sha256=<hex> (only sent when a secret is set) |
No event header is documented, so read the event from the body's event field.
Environment Variables
CONFLUENCE_WEBHOOK_SECRET=your_webhook_secret # The secret (up to 255 chars) you entered on the webhook
Local Development
# Start tunnel (no account needed)
npx hookdeck-cli listen 3000 confluence --path /webhooks/confluence
Reference Materials
- references/overview.md - Webhook concepts, events, payload, circuit breaking
- references/setup.md - Creating the webhook in the admin console
- references/verification.md - Signature verification details and gotchas
Recommended: webhook-handler-patterns
We recommend installing the webhook-handler-patterns skill alongside this one for handler sequence, idempotency, error handling, and retry logic. Key references (open on GitHub):
- Handler sequence — Verify first, parse second, handle idempotently third
- Idempotency — Prevent duplicate processing
- Error handling — Return codes, logging, dead letter queues
- Retry logic — Provider retry schedules, backoff patterns
Related Skills
- bitbucket-webhooks - Bitbucket webhooks (same
X-Hub-Signature: sha256=scheme) - jira-webhooks - Jira webhook handling
- github-webhooks - GitHub repository webhook handling
- gitlab-webhooks - GitLab reposit
Установить confluence-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл confluence-webhooks?
Receive and verify Confluence Data Center webhooks. Use when setting up Confluence admin webhook handlers, debugging X-Hub-Signature verification, or handling events like page_created, page_updated, page_removed, blog_created, comment_created, and space_created. Does not cover Confluence Cloud.
Как установить скилл confluence-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл confluence-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic