Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cyera-webhooks

БесплатноЗапускает вложенные скриптыНе проверен

Receive and verify Cyera Privacy webhooks (the privacy-request product, not Cyera's DSPM platform). Use when setting up a Cyera Privacy webhook integration…

hookdeckот hookdeck★ 104 звезды на GitHub

Об этом скилле

Cyera Webhooks

Cyera Privacy (privacy.cyera.io, the privacy-request product) automates data-subject privacy requests across integrated systems. Its webhook integration POSTs privacy-request notifications (access, deletion, opt-out), identifier retrieval requests, health checks and readiness checks to your endpoint.

Not Cyera's DSPM platform. This skill covers the Cyera Privacy webhook integration documented at https://integrations.privacy.cyera.io/docs/integrations/webhooks.

Hookdeck setup note for the Cyera source: For Cyera Privacy's privacy-request webhooks. Paste the Webhook Secret from the webhook integration.

When to Use This Skill

  • How do I receive Cyera Privacy webhooks?
  • How do I verify a Cyera webhook signature (X-Webhook-Signature)?
  • Why does my Cyera signature verification fail?
  • How do I handle access, deletion and opt_out privacy requests?
  • How should I answer Cyera's health_check and readiness_check requests?
  • What status code does Cyera expect (201 vs 200)?

Verification (core)

Cyera sends X-Webhook-Signature (the bare, padded, standard-base64 HMAC-SHA256 digest, no prefix) and X-Webhook-Timestamp. The signed message is {X-Webhook-Timestamp}:{raw body} with a colon separator, keyed with the Webhook Secret's UTF-8 bytes (not hex- or base64-decoded). Build it as bytes and never parse the body first.

const crypto = require('crypto');

function verifyCyera(rawBody /* Buffer */, headers, secret) {
  const sig = headers['x-webhook-signature'];
  const ts = headers['x-webhook-timestamp'];
  if (!sig || !ts || !/^[A-Za-z0-9+/]{43}=$/.test(sig)) return false; // validate before decoding
  const expected = crypto
    .createHmac('sha256', Buffer.from(secret, 'utf8'))
    .update(Buffer.concat([Buffer.from(ts, 'latin1'), Buffer.from(':'), rawBody]))
    .digest();
  const received = Buffer.from(sig, 'base64');
  if (received.toString('base64') !== sig) return false; // non-canonical encoding
  return received.length === expected.length && crypto.timingSafeEqual(received, expected);
}

Python equivalent: hmac.new(secret.encode(), ts.encode('latin-1') + b':' + raw, hashlib.sha256).digest(), base64.b64decode(sig, validate=True), a re-encode check that it gives back sig (decoders ignore stray low bits in the last character), then hmac.compare_digest on bytes.

  • Missing or empty signature or timestamp, malformed signature, or mismatch: respond 401.
  • Read the raw body (express.raw({ type: '*/*' }), await request.arrayBuffer(), await request.body()); parse JSON only after the check.
  • Compare the whole header as one digest: no prefix, no list splitting.

For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.

Timestamp window (opt-in)

Do not reject old timestamps by default. Hookdeck retries and replays resend the original headers and timestamp, so a fixed window would reject legitimate redeliveries. The examples offer an opt-in CYERA_WEBHOOK_TOLERANCE_SECONDS (unset or 0 = off; X-Webhook-Timestamp is Unix seconds). Cyera's webhook docs describe no freshness window.

Event Types

Dispatch on the body's request_type:

request_type Meaning Respond with
health_check Liveness ping 200
access Data-subject access request 201 Created (200 for a privacy_request:reminder)
deletion Data-subject deletion request 201 Created (200 for a privacy_request:reminder)
opt_out Opt-out request (topic: opt_out:create) 201 Created (200 for an opt_out:reminder)
readiness_check Asks the readiness question configured on the integration; answer it with a callback 200 (the docs give no code for readiness checks)
identifiers Identifier retrieval, when that capability is enabled; answer with a callback carrying results_token 200 (the docs name 200 for reminders and give no code for identifiers:create)

Access, deletion and opt-out bodies carry topic (privacy_request:create or privacy_request:reminder, opt_out:create or opt_out:reminder), identifiers, webhook_callback_url and request ids (privacy_request_id or opt_out_request_id, plus webhook_request_id). Use 4xx/5xx only when the request was not created. Completion is reported later by a PUT to webhook_callback_url with an API key (outside the scope of this skill). Retries are not documented.

Setup in Hookdeck

For Cyera Privacy's privacy-request webhooks. Paste the Webhook Secret from the webhook integration.

The Hookdeck source type is CYERA (labelled "Cyera").

Environment Variables

CYERA_WEBHOOK_SECRET=dgwebhook_your_webhook_secret   # Webhook Secret from the integration
# CYERA_WEBHOOK_TOLERANCE_SECONDS=300                # optional; unset or 0 = off

Local Develo

Полный SKILL.md на GitHub

Установить cyera-webhooks в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/express/.env.exampleexamples/express/README.mdexamples/express/package.jsonexamples/express/src/index.jsexamples/fastapi/.env.exampleexamples/fastapi/README.mdexamples/fastapi/main.pyexamples/fastapi/requirements.txtexamples/fastapi/test_webhook.pyexamples/nextjs/.env.exampleexamples/nextjs/README.mdexamples/nextjs/app/webhooks/cyera/route.tsexamples/nextjs/lib/cyera.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

Что делает скилл cyera-webhooks?

Receive and verify Cyera Privacy webhooks (the privacy-request product, not Cyera's DSPM platform). Use when setting up a Cyera Privacy webhook integration, debugging X-Webhook-Signature / X-Webhook-Timestamp verification, or handling data-subject privacy requests (request_type access, deletion, opt_out) plus health_check, readiness_check and identifiers deliveries.

Как установить скилл cyera-webhooks?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cyera-webhooks запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить cyera-webhooks с