From 6416f567484c58429085e150e78e25cc75763c3b Mon Sep 17 00:00:00 2001 From: OG T Date: Sun, 29 Mar 2026 21:16:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(e2e):=20=E4=BF=AE=E6=AD=A3=20HMAC=20Header?= =?UTF-8?q?=20=E5=90=8D=E7=A8=B1=20X-Webhook-Signature=20=E2=86=92=20X-Sig?= =?UTF-8?q?nature-256?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - API 期望 X-Signature-256,E2E 腳本使用錯誤的 Header 名稱 - 修復後 Daily E2E Health Check 應能通過 Co-Authored-By: Claude Opus 4.5 --- apps/api/scripts/e2e_tool_call_verification.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/api/scripts/e2e_tool_call_verification.py b/apps/api/scripts/e2e_tool_call_verification.py index b0dd20c7f..6bd025c9e 100644 --- a/apps/api/scripts/e2e_tool_call_verification.py +++ b/apps/api/scripts/e2e_tool_call_verification.py @@ -221,9 +221,10 @@ class E2EVerification: headers = {"Content-Type": "application/json"} # 如果有 HMAC Secret,計算簽名 + # 2026-03-29 Claude Code: 修正 Header 名稱為 X-Signature-256 (與 API 一致) if HMAC_SECRET: signature = compute_hmac_signature(HMAC_SECRET, payload_bytes) - headers["X-Webhook-Signature"] = signature + headers["X-Signature-256"] = signature print_info("HMAC", f"已簽名 ({signature[:20]}...)") else: print_warn("無 HMAC Secret - 僅限測試環境")