Repository navigation
hop→waker 简化:删三变量、改为 key 启停(someday 极简形态) - #163
Merged
todosdev[bot] merged 1 commit intoOct 28, 2026
Merged
Conversation
- Drop WAKER_MODE/WAKER_URL/WAKER_TRIGGERS from the deploy pipeline, the turbo env list and the README; nothing rewrites wrangler.toml any more. - [triggers] stays static: dual run is the default, and switching to waker alone is a separate change that deletes the section. - WAKER_SIGNING_KEY is injected when present and deploys still succeed when absent (receiver fails closed); verify asserts bound/absent. Checkpoint: 8ecyONV4q3YURaBr6u2z9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WAKER_MODE、WAKER_URL、WAKER_TRIGGERS三个变量。WAKER_SIGNING_KEY单一开关:Secret 存在则验签执行同一份 cleanup,不存在则 fail closed(回 500signing_key_missing),绝不穿透至 SPA 200 HTML。wrangler.toml的[triggers]静态留存,双跑为默认态;切换至 waker 单调度器作为后续独立小变更(删[triggers])操作。Changes
apps/worker):src/routes/waker.ts:移除callbackEnabled/isWakerEnabled/WAKER_URL门禁,/_waker恒转 SDK receiver;加host.notFound拦截未知路径为 JSON 404,杜绝 SPA 200 穿透。src/types.ts、src/index.ts、src/services/waker.ts、src/waker/README.md、.dev.vars.example:清理模式变量声明与注释,更新为仅认 signing key 启停。wrangler.toml:[triggers]改为静态配置,移除流水线覆写与变量说明。test/waker-callback.test.ts:更新测试覆盖 key 缺失/空白(500 fail closed)、未挂载路由(JSON 404)与验签正常执行两态。.github):deploy.yml:移除Configure waker mode步骤及相关变量;Write secrets file支持可选注入WAKER_SIGNING_KEY并输出waker_signing_key=bound|absent。verify-deployment.sh:移除模式分支,WAKER_SIGNING_KEY_EXPECTED=bound时断言版本绑定存在,排期固定校验0 3 * * *。.github/scripts/configure-waker-mode.mjs与.github/scripts/test-waker-mode.mjs,新增.github/scripts/test-waker-deploy.mjs。turbo.json、ci.yml:清理透传环境变量与 CI 测试清单。README.md与README.zh-CN.md:改写为单 Secret 配置说明与双跑/切换/回滚操作指南。Testing
pnpm test:通过全部 55 项 web 测试与 129 项 worker 单元测试(涵盖 key 两态、防 SPA 穿透、验签/防重放/幂等)。node --test .github/scripts/test-deploy-checks.mjs:45 项部署验证脚本测试全绿。node --test .github/scripts/test-waker-deploy.mjs:8 项 waker 部署契约及配置不变量测试全绿。