协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
salesloft-webhooks-events【开发与工程】Verify and process Salesloft webhooks using exact raw-body SHA-1 HMAC, callback-token validation, event routing, durable deduplication, and reconciliation. Use when building or auditing a webhook receiver. Trigger with "Salesloft webhook", "Salesloft signature", or "Salesloft event handler".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: salesloft-webhooks-events description: >- Verify and process Salesloft webhooks using exact raw-body SHA-1 HMAC, callback-token validation, event routing, durable deduplication, and reconciliation. Use when building or auditing a webhook receiver. Trigger with "Salesloft webhook", "Salesloft signature", or "Salesloft event handler". argument-hint: "[repository-path] [event-type]" allowed-tools: Read, Glob, Grep, WebFetch, Write, Edit version: 1.6.0 author: Jeremy Longshore jeremy@intentsolutions.io license: MIT tags:
This skill accepts a delivery only after authenticating its exact bytes and subscription secret. It makes side effects idempotent even though the general delivery contract does not expose a timestamp replay header.
Use Read, Glob, and Grep to inspect body parsing, signature comparison, queues, and side effects. Use WebFetch only for current official Salesloft webhook documentation. Use Write or Edit after the handler boundary is confirmed.
x-salesloft-event identifies the delivered event type.x-salesloft-signature is the hexadecimal SHA-1 HMAC of the exact response/request body using callback_token as the key.Protect the callback token as a secret. Compute the expected HMAC from the exact raw body, decode hex safely, require equal lengths, and use constant-time comparison before parsing or queuing.
Do not create or change a subscription, callback URL, event scope, or production token without owner approval. Reject unverifiable events rather than accepting them for debugging convenience.
Return event type, signature and callback-token verdicts, dedup key, queue receipt, processing result, retry state, and reconciliation status without payload data.
| Condition | Response |
|---|---|
| Signature mismatch | Reject before parsing and record redacted metadata. |
| Duplicate delivery | Return prior outcome without repeating side effects. |
| Handler failure | Preserve receipt and use bounded internal retry. |
| Missed event suspected | Reconcile through the relevant read endpoint or cursor poller. |
The example below shows the minimum redacted evidence expected from a successful invocation of this operator workflow.
event=person_updated; signature=pass; callback-token=pass; duplicate=no; queued=yes