用途:审计 BTCPay Server 配置,输出带优先级(P0-P3)的结构化发现报告。该技能仅为调查与报告原语,不创建工单;如需建单用 /log-production-issues,做基础设施评审用 /check-production。\n\n主要检查项:\n1. Greenfield API 连通性(健康检查、列出商店)。\n2. 商店配置(商店详情、已启用支付方式)。\n3. Webhook 端点与签名验证。\n4. 支付通知设置(invoice 支付/确认等事件处理、通知 URL 配置)。\n5. 闪电节点连接(支付方式是否启用、节点健康)。\n6. 钱包冷热分离(热钱包、私钥/助记词、xpub 观察钱包线索)。\n7. 深度审计:可派生 btcpay-auditor 智能体,检查 invoice 生命周期、webhook 签名与重放保护、商店策略、闪电与链上回退、钱包密钥托管与备份。\n\n必要用法示例(保持原样):\nexport BTCPAY_URL="https://btcpay.example.com"\nexport BTCPAY_API_KEY="your-api-key"\ncurl -s -H "Authorization: token $BTCPAY_API_KEY" "$BTCPAY_URL/api/v1/health"\ncurl -s -H "Authorization: token $BTCPAY_API_KEY" "$BTCPAY_URL/api/v1/stores" | jq\nexport STORE_ID="store_id_here"\ncurl -s -H "Authorization: token $BTCPAY_API_KEY" "$BTCPAY_URL/api/v1/stores/$STORE_ID" | jq\ncurl -s -H "Authorization: token $BTCPAY_API_KEY" "$BTCPAY_URL/api/v1/stores/$STORE_ID/payment-methods" | jq\ncurl -s -H "Authorization: token $BTCPAY_API_KEY" "$BTCPAY_URL/api/v1/stores/$STORE_ID/webhooks" | jq\n\n适用场景:将 BTCPay 用作支付服务时的配置审查与上线前检查。限制:仅为只读审计报告,不自动修复;未提供默认凭据、价格或平台支持信息,需自行提供 API 密钥与商店 ID。
check-btcpay
安全与审计
更新于 10-16 03:41