chore(ai-review 狀態): 排除 OpenCode TLS 預設誤報
AI / 計算版本號 (pull_request) Successful in 2s
AI / Code Review (pull_request) Successful in 1m24s

This commit is contained in:
2026-06-22 10:28:22 +00:00
parent f83a2034a8
commit 75cbfd38b0
2 changed files with 7 additions and 9 deletions
+1 -9
View File
@@ -1,9 +1 @@
[
{
"level": "critical",
"role": "Assassin",
"location": "app/preflight.test.js:201",
"suggestion": "此測試明確證實了 `OPENCODE_SKIP_TLS_VERIFY` 環境變數的寬鬆判斷邏輯,導致 OpenCode LLM 連線的 TLS 驗證容易被關閉。這是「關閉 TLS 驗證」的不安全預設,極大地增加了中間人攻擊的風險。攻擊者可以利用此漏洞,在 LLM 服務通訊中插入惡意代理,竊取敏感資料或篡改 LLM 的行為。請立即修正 `app/config.js` 中 `shouldSkipOpenCodeTLSVerify` 的邏輯,使其僅在明確意圖下才關閉 TLS 驗證。",
"is_new": true
}
]
[]