修复应用状态调试输出密钥泄漏 #150

Merged
kdletters merged 3 commits from codex/fix-issue-148 into master 2026-08-07 23:56:02 +08:00
Member

修复 Issue #148。

  • AppConfig、AppState、AppStateInner 改为封闭的手写 Debug 安全摘要
  • SpacetimeClientConfig 隐藏 token、URL 与数据库自由字符串,SpacetimeClient 复用安全摘要
  • 唯一哨兵覆盖五条独立 Debug 路径,并精确锁定 AppConfig 允许输出字段
  • 补充运行时日志规约与项目排障记忆

验证:

  • cargo test -p api-server debug_summaries_redact_all_runtime_credentials
  • cargo check -p spacetime-client -p api-server --all-targets
  • cargo fmt --all --check
  • npm run check:encoding
  • git diff --check

剩余边界:报告第二档中的历史 provider 配置类型独立 Debug 脱敏另行处理,本 PR 聚焦第一档主泄漏链。

Closes #148

修复 Issue #148。 - AppConfig、AppState、AppStateInner 改为封闭的手写 Debug 安全摘要 - SpacetimeClientConfig 隐藏 token、URL 与数据库自由字符串,SpacetimeClient 复用安全摘要 - 唯一哨兵覆盖五条独立 Debug 路径,并精确锁定 AppConfig 允许输出字段 - 补充运行时日志规约与项目排障记忆 验证: - cargo test -p api-server debug_summaries_redact_all_runtime_credentials - cargo check -p spacetime-client -p api-server --all-targets - cargo fmt --all --check - npm run check:encoding - git diff --check 剩余边界:报告第二档中的历史 provider 配置类型独立 Debug 脱敏另行处理,本 PR 聚焦第一档主泄漏链。 Closes #148
kdletters added 1 commit 2026-08-07 18:15:40 +08:00
修复应用状态调试输出泄漏
Project CI / Backend tests (pull_request) Successful in 4m8s
Project CI / Repository checks (pull_request) Successful in 58s
Project CI / Native shell tests (pull_request) Failing after 41s
Project CI / Frontend tests (pull_request) Successful in 2m58s
1f56885b08
为 AppConfig、AppState 和 AppStateInner 提供封闭安全摘要
为 SpacetimeClientConfig 和 SpacetimeClient 脱敏独立调试路径
增加唯一哨兵回归覆盖五条 Debug 链
补充运行时日志规约与排障记忆
Author
Member

CI 说明:Native shell tests 的失败来自当前 master 6c53eda71 的 AGC Cargo.lock 漂移,并非本 PR 改动。job 在执行测试前的 cargo fetch --locked --manifest-path apps/ai-game-creator-shell/src-tauri/Cargo.toml 阶段失败;本 PR 未修改该 manifest 或 lock,在当前 master 上本地执行同一命令可稳定复现 cannot update the lock file ... because --locked was passed。其余已完成 CI 均通过;该 master 基线问题应独立修复,避免重复混入两个安全修复。

CI 说明:Native shell tests 的失败来自当前 master `6c53eda71` 的 AGC Cargo.lock 漂移,并非本 PR 改动。job 在执行测试前的 `cargo fetch --locked --manifest-path apps/ai-game-creator-shell/src-tauri/Cargo.toml` 阶段失败;本 PR 未修改该 manifest 或 lock,在当前 master 上本地执行同一命令可稳定复现 `cannot update the lock file ... because --locked was passed`。其余已完成 CI 均通过;该 master 基线问题应独立修复,避免重复混入两个安全修复。
kdletters added a new dependency 2026-08-07 19:22:52 +08:00
kdletters added 1 commit 2026-08-07 19:56:01 +08:00
Merge branch 'master' into codex/fix-issue-148
Project CI / Repository checks (pull_request) Successful in 1m2s
Project CI / Frontend tests (pull_request) Successful in 3m12s
Project CI / Backend tests (pull_request) Successful in 3m35s
Project CI / Native shell tests (pull_request) Successful in 14m25s
cb7f587824
kdletters removed a dependency 2026-08-07 19:56:55 +08:00
kdletters scheduled this pull request to auto merge when all checks succeed 2026-08-07 19:57:05 +08:00
kdletters added 1 commit 2026-08-07 20:47:01 +08:00
Merge branch 'master' into codex/fix-issue-148
Project CI / Repository checks (pull_request) Successful in 45s
Project CI / Frontend tests (pull_request) Successful in 3m0s
Project CI / Native shell tests (pull_request) Successful in 14m54s
Project CI / Backend tests (pull_request) Successful in 3m39s
2d74a0a506
kdletters merged commit 4974844090 into master 2026-08-07 23:56:02 +08:00
kdletters deleted branch codex/fix-issue-148 2026-08-07 23:56:02 +08:00
Sign in to join this conversation.