bugfix(#24 #25):PBKDF2 600k→100k(CF Workers runtime 上限,真雲 bootstrap 500)+http_request 補 global_fetch_strictly_public(1042) #56
Reference in New Issue
Block a user
Delete Branch "fix-pbkdf2-cf-limit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
修什麼(#24 #25 bugfix + 1042 flag)
T6-cloud 部署抓到的框架蟲:portal-auth 的 PBKDF2 設 600,000 迭代,但 Cloudflare Workers 正式 runtime 的 PBKDF2 上限是 100,000——超過時
crypto.subtle.deriveBits直接拒絕 →/portal/admin/bootstrap在真雲端 500。miniflare 無此限制=本機測試全綠的假象。真雲實撞證據:2026-07-14 uncle6 部署排練,見 arcrun-rag
docs/manual/uncle6-deploy-record.md。改動
cypher-executor/src/lib/portal-auth.ts:PBKDF2_ITERATIONS600_000 → 100_000,註解寫明平台封頂(OWASP 建議 600k 但 CF 只給 100k);儲存格式pbkdf2-sha256$<iterations>$…自帶迭代數,未來平台放寬可無痛升。verifyPassworditerations 從儲存值解析——新增測試「驗 600k 舊 hash 仍通」(miniflare 造,綠)。誠實邊界:真雲 deriveBits 同樣封頂、600k hash 真雲仍拒;所幸真雲 bootstrap 從未成功過 → 雲端零存量 600k hash、無實際遷移面。.component-builds/http_request/wrangler.tomlcompatibility_flags 補global_fetch_strictly_public——self-hosted 同帳號 fetch 1042 的正解(Arcrun#33 同族);官方部署本就跨 zone、加 flag 行為不變,原理同 cypher 前例(rules/03 的 1042 段)。驗證
tscexit 0;全套 169/170(唯一失敗=executor「不存在的零件」pre-existing,wiki 記載)wrangler deploy --dry-run打包過不 merge,待總管審(B 類流程);merge 後部署走 gated wrangler 直推。
🤖 Generated with Claude Code