Receives and authenticates Rubrik Security Cloud webhooks. Handles PD-CEF payloads, backup events, anomaly (ransomware) alerts, and custom JSON templates.
Ships in webhook-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
summary, class, custom_details)?There is no HMAC, no signature header and no signing secret. Any code that runs
createHmac / hmac.new over a Rubrik webhook body is wrong. Instead, each webhook carries a
credential chosen with authInfo.authType (AuthenticationTypeV2):
authType | What Rubrik sends | Use it? |
|---|---|---|
CUSTOM_HEADER | <headerKey>: <headerValue> (you choose both) | Recommended |
BEARER | A bearer token, presumably Authorization: Bearer <token> (Rubrik's docs don't show the header) | Yes |
BASIC | A username/password pair, presumably Authorization: Basic base64(username:password) (not shown either) | Yes |
OAUTH2 | Bearer token Rubrik mints from your IdP (client credentials) | Needs JWT validation; not covered |
URL | Token embedded in the webhook URL | Avoid: URLs end up in logs |
Your handler must fail closed: if no credential is configured, reject every request.
Compare the configured header against your secret in constant time. Hashing both sides first
means timingSafeEqual never throws on a length mismatch:
const crypto = require('crypto');
const secureEquals = (a, b) => crypto.timingSafeEqual(
crypto.createHash('sha256').update(String(a), 'utf8').digest(),
crypto.createHash('sha256').update(String(b), 'utf8').digest()
);
// CUSTOM_HEADER: header name and value are whatever you set in Rubrik.
function verifyRubrikHeader(headers) {
const name = (process.env.RUBRIK_WEBHOOK_HEADER_NAME || 'X-Rubrik-Webhook-Token').toLowerCase();
const secret = process.env.RUBRIK_WEBHOOK_SECRET;
const value = headers[name]; // Node lowercases incoming header names
if (!secret || typeof value !== 'string') return false; // fail closed
return secureEquals(value, secret);
}
// BEARER: same compare on the value after "Bearer " in the Authorization header.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
The examples accept CUSTOM_HEADER, BEARER and BASIC (whichever you configure) and return
401 otherwise. There is no Rubrik SDK helper for receiving webhooks: the Rubrik SDKs
(PowerShell, Python, Go) call the RSC GraphQL API and don't authenticate incoming requests. See
references/verification.md.
The default payload is PagerDuty Common Event Format (PD-CEF). The event details sit under
custom_details:
{
"summary": "Failed backup of vSphere VM 'sh1-EncryptMe-05-Group1'.",
"source": "Rubrik Security Cloud",
"severity": "critical",
"timestamp": "2024-07-18T06:39:40.46Z",
"class": "Backup",
"custom_details": {
"id": "c2b47274-6323-4025-b307-afed1cfb7574",
"type": "Event",
"objectName": "sh1-EncryptMe-05-Group1",
"objectType": "VmwareVm",
"status": "Failure",
"eventName": "Snapshot.BackupFailed",
"clusterName": "sh1-PaloAlto"
}
}
Custom JSON templates (Go-template variables such as {{.Status}}, {{.ObjectName}},
{{.UUID}}) can produce any shape, so the examples read custom_details when present and
fall back to top-level fields.
There is no single event.type string. Route on class and status:
| Field | Values (from Rubrik's docs) | Use |
|---|---|---|
custom_details.status | Final: Success, Failure, PartialSuccess, Canceled. In progress: Running, Queued, Canceling, TaskSuccess, TaskFailure, Info, Warning | Act only on final outcomes |
class | Backup in Rubrik's example. ActivityTypeEnum spells the rest (Anomaly, Recovery, LOG_BACKUP, ...), but no webhook example confirms them | Which kind of activity |
custom_details.type | Event (audit webhooks carry audit fields instead) | Event vs audit |
severity | critical, warning or info | Decide what needs attention: a critical ransomware detection arrives with status Success |
custom_details.eventName | e.g. Snapshot.BackupFailed | Fine-grained, treat as opaque |
Subscriptions filter on EventType enum values (BACKUP, ANOMALY, RECOVERY, ...) and
EventSeverity (SEVERITY_CRITICAL, SEVERITY_WARNING, SEVERITY_INFO). Full list in
references/overview.md.
# CUSTOM_HEADER (recommended) — the header key/value you entered in Rubrik
RUBRIK_WEBHOOK_HEADER_NAME=X-Rubrik-Webhook-Token
RUBRIK_WEBHOOK_SECRET=a-long-random-string
# BEARER — optional
RUBRIK_WEBHOOK_BEARER_TOKEN=
# BASIC — optional
RUBRIK_WEBHOOK_USERNAME=
RUBRIK_WEBHOOK_PASSWORD=
AUTO_DISABLED).200 quickly. Deduplicate on custom_details.id.For local webhook testing, run the Hookdeck CLI via npx — no install required:
npx hookdeck-cli listen 3000 rubrik --path /webhooks/rubrik
No account required — the CLI creates a guest account on first run and provides a local tunnel plus a web UI for inspecting requests. Because Rubrik drops events after 3 quick retries, putting Hookdeck in front of your endpoint also gives you a durable queue and replay.
createWebhookV2For production-ready webhook handling, also install the webhook-handler-patterns skill:
examples/express/README.md (opens in a new tab)examples/express/package.json (opens in a new tab)examples/express/src/index.js (opens in a new tab)examples/express/test/webhook.test.js (opens in a new tab)examples/fastapi/README.md (opens in a new tab)examples/fastapi/main.py (opens in a new tab)examples/fastapi/requirements.txt (opens in a new tab)examples/fastapi/test_webhook.py (opens in a new tab)examples/nextjs/README.md (opens in a new tab)examples/nextjs/app/webhooks/rubrik/route.ts (opens in a new tab)examples/nextjs/lib/rubrik-auth.ts (opens in a new tab)examples/nextjs/package.json (opens in a new tab)examples/nextjs/test/webhook.test.ts (opens in a new tab)examples/nextjs/vitest.config.ts (opens in a new tab)references/overview.md (opens in a new tab)references/setup.md (opens in a new tab)references/verification.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/webhook-skills:rubrik-webhooksfrom webhook-skills
npx claudepluginhub hookdeck/webhook-skills --plugin webhook-skills219 skills in this plugin
/ada-webhooksReceive and verify Ada (ada.cx) AI customer service webhooks, delivered through Svix. Use when setting up an Ada webhook endpoint, getting the per-endpoint whsec_ signing secret, debugging svix-id / svix-timestamp / svix-signature verification, or handling events like v1.conversation.created, v1.conversation.message, v1.conversation.ended, v1.conversation.handoff.ended, v1.end_user.created, v1.end_user.updated, v1.audit_log.emitted and v1.proactive_call.* voice outreach events.
/adyen-webhooksReceive and verify Adyen webhooks (standard notifications). Use when setting up Adyen webhook handlers, debugging HMAC signature verification, or handling payment events like AUTHORISATION, CAPTURE, REFUND, CANCELLATION, and CHARGEBACK.
/2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026
Other plugins' skills for the same job