docs: record ecosystem issue split and local credential guard #58

Merged
cflmy merged 1 commits from docs/ecosystem-issues-credential-guard into main 2026-11-30 10:51:05 +08:00
Owner

变更

  • docs/REPOSITORY-TASKS.md:新增 marqdo#55 / marqdo#56 全生态 P0 的跨仓子工单导航(状态以 Gitea issue 为准)。
  • docs/DEVELOPMENT-CREDENTIALS.md:主仓库本地开发凭据的唯一位置、变量、加载方式、真实模型 smoke、子仓库禁令、防泄漏与轮换规则;不含任何凭据值。
  • scripts/check-dev-secrets.py:扫描主仓库与全部已初始化子模块(index、tracked worktree、未忽略 untracked、.git/config、.gitmodules)的防泄漏 guard;命中只报路径、不打印值。
  • .gitignore:忽略 /.secrets/(与子仓库约定一致)。
  • docs/DEVELOPMENT.md:本地环境一节链接凭据规范。

关联工单

  • 父工单:marqdo#55(AI 可读文档架构)、marqdo#56(构建/发布/验收/反馈)
  • 密钥边界:marqdo#56 §8;主仓库真实模型工作流:marqdo#57
  • 本批子工单:cli#25/#26、view#19、lint#13/#14、prove#9、knowledge#13/#14、ext-ai#3/#4、app-harness#15/#16

验证

  • python3 scripts/check-dev-secrets.py --generic:PASS(36 个 git 仓库,无凭据值泄漏;凭据文件被忽略)。
  • 负例:在 extensions/ai 工作区注入含凭据值的临时文件 → guard 以退出码 1 报告仓库/文件名(不打印值),删除后恢复 PASS。
  • python3 scripts/check-layout.py:exit 0。
  • python3 -m unittest discover -s tests/integration:exit 0。
  • 未提交任何凭据:暂存区无 .env/.secrets/密钥文件;子仓库工作区无凭据文件。

说明

本地凭据仅存在于主仓库根目录的 git 忽略文件;子仓库永不持有。CI 真实模型密钥走受保护 Secrets,由 marqdo#57 跟踪,不在本 PR 配置。

## 变更 - `docs/REPOSITORY-TASKS.md`:新增 marqdo#55 / marqdo#56 全生态 P0 的跨仓子工单导航(状态以 Gitea issue 为准)。 - `docs/DEVELOPMENT-CREDENTIALS.md`:主仓库本地开发凭据的唯一位置、变量、加载方式、真实模型 smoke、子仓库禁令、防泄漏与轮换规则;**不含任何凭据值**。 - `scripts/check-dev-secrets.py`:扫描主仓库与全部已初始化子模块(index、tracked worktree、未忽略 untracked、`.git/config`、`.gitmodules`)的防泄漏 guard;命中只报路径、不打印值。 - `.gitignore`:忽略 `/.secrets/`(与子仓库约定一致)。 - `docs/DEVELOPMENT.md`:本地环境一节链接凭据规范。 ## 关联工单 - 父工单:marqdo#55(AI 可读文档架构)、marqdo#56(构建/发布/验收/反馈) - 密钥边界:marqdo#56 §8;主仓库真实模型工作流:marqdo#57 - 本批子工单:cli#25/#26、view#19、lint#13/#14、prove#9、knowledge#13/#14、ext-ai#3/#4、app-harness#15/#16 ## 验证 - `python3 scripts/check-dev-secrets.py --generic`:PASS(36 个 git 仓库,无凭据值泄漏;凭据文件被忽略)。 - 负例:在 `extensions/ai` 工作区注入含凭据值的临时文件 → guard 以退出码 1 报告仓库/文件名(不打印值),删除后恢复 PASS。 - `python3 scripts/check-layout.py`:exit 0。 - `python3 -m unittest discover -s tests/integration`:exit 0。 - 未提交任何凭据:暂存区无 `.env`/`.secrets`/密钥文件;子仓库工作区无凭据文件。 ## 说明 本地凭据仅存在于主仓库根目录的 git 忽略文件;子仓库永不持有。CI 真实模型密钥走受保护 Secrets,由 marqdo#57 跟踪,不在本 PR 配置。
cflmy added 1 commit 2026-11-30 10:39:39 +08:00
Map the cross-repository sub-issues created for marqdo#55 (AI-readable
document architecture) and marqdo#56 (ecosystem build/release/feedback)
in the repository task navigation, and document the local-only credential
policy: credentials live only in the git-ignored root files, submodules
never hold them, and CI uses protected Secrets (marqdo#56 §8).

Add scripts/check-dev-secrets.py, which scans the main repository and
every initialized submodule (index, worktree, untracked non-ignored
files, git config, .gitmodules) for the local credential values and
fails without printing them. No credential value is committed.
cflmy merged commit 5b1c19b01c into main 2026-11-30 10:51:05 +08:00
cflmy deleted branch docs/ecosystem-issues-credential-guard 2026-11-30 10:51:05 +08:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cflmy/marqdo#58