Repository navigation
ONE-488: nav deploy 资源 ID 改走 Secrets(删 add-mask 步 + vars→secrets) - #16
Merged
Merged
Conversation
todosdev Bot
added a commit
that referenced
this pull request
Nov 6, 2026
…8-9bb5f498b9e1 nav 场景维度·后端实现:scenes 迁移 + DTO + 场景/分类接口(引用 #16 契约)
todosdev Bot
added a commit
that referenced
this pull request
Nov 6, 2026
…b-2e4ccec50704 nav 场景维度·前端实现:场景切换胶囊 + 后台场景管理 + 前后台收口(引用 #16 契约)
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.
ONE-488(方案变更):nav deploy 资源 ID 改走 Secrets
取代已合并的 add-mask 方案(PR #15 /
65ab0ac)。按父单 ONE-484 冻结的新契约实现:删掉Mask resource IDs整步,CLOUDFLARE_ACCOUNT_ID与D1_DATABASE_ID改从 GitHub Secrets 读取。改动(单文件
.github/workflows/deploy.yml,+3 / -15)Mask resource IDs整步(含其 3 行注释与尾随空行)——掩码步自身 env 回显会先漏一份明文的时序缺口随之消失。CLOUDFLARE_ACCOUNT_ID:vars.→secrets.,共 2 处(Materialize secrets + wrangler config、Deploy Worker)。D1_DATABASE_ID:vars.→secrets.,共 1 处(Materialize secrets + wrangler config)。未动(守红线)
D1_DATABASE_NAME、TABLE_PREFIX保持vars.。KV_NAMESPACE_ID任何行。SESSION_SECRET/SETUP_SECRET/CLOUDFLARE_API_TOKEN原本就是 secrets,未动;步骤顺序、其他 env 均未动。ci.yml或其他工作流;未触碰 Cloudflare 配置、D1/KV 数据、任何既有 Secret 值;本 PR 与讨论中不出现任何 ID 真实值。与父单 §4 附表的差异
nav 只涉及两项(
CLOUDFLARE_ACCOUNT_ID、D1_DATABASE_ID),无 KV 项;D1_DATABASE_NAME因不敏感仍走 vars。除这两点外与通用规格一致。自测
actionlint .github/workflows/deploy.yml→ exit 0。vars.CLOUDFLARE_ACCOUNT_ID/vars.D1_DATABASE_ID/vars.KV_NAMESPACE_ID→ 0 处残留;KV_NAMESPACE全仓 0 处;剩余vars.仅D1_DATABASE_NAME、TABLE_PREFIX。checkjob:lint / format / typecheck / build / test)见本 PR 检查结果。合并前置(重要)
CI 全绿后本 PR 停住不合。需用户在 GitHub 组织设置页创建 Secrets:
CLOUDFLARE_ACCOUNT_ID、D1_DATABASE_ID(团队不代建、不经手任何值)。用户确认建好后由 指挥官 合并部署;合并前合入会导致 Deploy 里这两个 env 为空、materialize/secrets 步骤拿不到值。