← 返回 Skills 市场
carloscbrls

CC3PO Webhook

作者 Carlos J Cabrales III · GitHub ↗ · v1.0.0 · MIT-0
linuxmacoswin32 ✓ 安全检测通过
27
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cc3po-webhook
功能描述
Implement secure webhook receivers and senders with proper verification and reliability.
使用说明 (SKILL.md)

Receiving: Signature Verification

  • Always verify HMAC signature—payload can be forged; don't trust without signature
  • Common pattern: HMAC-SHA256(secret, raw_body) compared to header value
  • Use raw body bytes—parsed JSON may reorder keys, breaking signature
  • Timing-safe comparison—prevent timing attacks on signature check
  • Reject missing or invalid signature with 401—log for investigation

Receiving: Replay Prevention

  • Check timestamp in payload or header—reject if too old (>5 minutes)
  • Combine with signature—timestamp without signature can be forged
  • Store processed event IDs—reject duplicates even within time window
  • Clock skew tolerance: allow 1-2 minutes past—but not hours

Receiving: Idempotency (Critical)

  • Webhooks can arrive multiple times—sender retries on timeout, network issues
  • Use event ID for deduplication—store processed IDs in database/Redis
  • Make handlers idempotent—same event twice should have same effect
  • Idempotency window: keep IDs for 24-72h—balance storage vs protection

Receiving: Fast Response

  • Return 200/202 immediately—process asynchronously in queue
  • Senders timeout (5-30s typical)—slow processing = retry = duplicates
  • Minimal validation before 200—signature check, then queue
  • Background job for actual processing—failures don't affect acknowledgment

Receiving: Error Handling

  • 2xx = success, sender won't retry
  • 4xx = permanent failure, sender may stop retrying—use for bad signature, unknown event type
  • 5xx = temporary failure, sender will retry—use for downstream issues
  • Log full payload on error—helps debugging; redact sensitive fields

Sending: Retry Strategy

  • Exponential backoff: 1min, 5min, 30min, 2h, 8h—then give up or alert
  • Cap retries (5-10 attempts)—don't retry forever
  • Record delivery attempts—show status to user
  • Different retry for 4xx vs 5xx—4xx often means stop retrying

Sending: Signature Generation

  • Include timestamp in signature—prevents replay of captured webhooks
  • Sign raw JSON body—document exact signing algorithm
  • Header format: t=timestamp,v1=signature—allows versioned signatures
  • Provide verification code examples—reduce integration friction

Sending: Timeouts

  • 5-10 second timeout—don't wait forever for slow receivers
  • Treat timeout as failure—retry later
  • Don't follow redirects—or limit to 1-2; prevents redirect loops
  • Validate HTTPS certificate—don't skip verification

Event Design

  • Include event type: {"type": "order.created", ...}—receivers filter by type
  • Include timestamp: ISO 8601 with timezone—for ordering and freshness
  • Include full resource or ID—prefer full data; saves receiver a lookup
  • Version events: api_version field—allows breaking changes

Delivery Tracking

  • Log every attempt: URL, status code, response time, response body
  • Dashboard for retry queue—let users see pending/failed deliveries
  • Manual retry button—for stuck webhooks after receiver fix
  • Webhook logs retention: 7-30 days—balance debugging vs storage

Security Checklist

  • HTTPS only—never send webhooks to HTTP endpoints
  • Rotate secrets periodically—support multiple active secrets during rotation
  • IP allowlisting optional—document your IP ranges if offered
  • Don't include secrets in payload—webhook URL should be secret enough
  • Rate limit per endpoint—one slow receiver shouldn't affect others

Common Mistakes

  • No signature verification—anyone can POST fake events to your endpoint
  • Processing before responding—timeout causes retries, duplicate processing
  • No idempotency handling—double charges, duplicate records
  • Trusting event data blindly—always verify by fetching from source API for critical actions
安全使用建议
This looks safe to install as an instruction-only webhook guidance skill. Before using its advice in production, confirm the listing provenance if the metadata mismatch concerns you, and make sure any webhook logging avoids storing secrets or unnecessary personal data.
功能分析
Type: OpenClaw Skill Name: cc3po-webhook Version: 1.0.0 The skill bundle contains high-quality security documentation and best practices for implementing webhook receivers and senders. The instructions in SKILL.md correctly emphasize critical security controls such as HMAC-SHA256 signature verification, timing-safe comparisons, replay prevention via timestamps, and the use of HTTPS. There is no evidence of malicious intent, data exfiltration, or prompt injection; the content is entirely focused on guiding the agent to build secure and reliable integrations.
能力评估
Purpose & Capability
The stated purpose is to help implement secure webhook receivers and senders, and the content is coherent guidance about signatures, replay prevention, idempotency, retries, timeouts, and delivery tracking.
Instruction Scope
The instructions are advisory and security-focused; they do not direct the agent to override user intent, execute commands, contact hidden services, or perform automatic high-impact actions.
Install Mechanism
There is no install spec or code to execute. The bundled _meta.json identity differs from the registry listing, which is a minor provenance inconsistency but not evidence of unsafe behavior.
Credentials
The artifacts declare no required binaries, environment variables, credentials, config paths, or local system access, which is proportionate for an instruction-only webhook guidance skill.
Persistence & Privilege
The guidance recommends queues, processed event ID storage, delivery logs, and log retention; this is purpose-aligned for reliable webhooks but should be implemented with redaction, access controls, and retention limits.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cc3po-webhook
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cc3po-webhook 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Secure webhook receivers and senders: HMAC verification, replay prevention, retry strategies, and reliability patterns.
元数据
Slug cc3po-webhook
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

CC3PO Webhook 是什么?

Implement secure webhook receivers and senders with proper verification and reliability. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 27 次。

如何安装 CC3PO Webhook?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cc3po-webhook」即可一键安装,无需额外配置。

CC3PO Webhook 是免费的吗?

是的,CC3PO Webhook 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

CC3PO Webhook 支持哪些平台?

CC3PO Webhook 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, macos, win32)。

谁开发了 CC3PO Webhook?

由 Carlos J Cabrales III(@carloscbrls)开发并维护,当前版本 v1.0.0。

💬 留言讨论