Repository navigation
Conversation
- 进程内错误 ring buffer(diag),统一错误出口写入,message 经 logx.Redact;含 error_id/user_id - GET /api/admin/diagnostics(Bearer allowPAT=false + RequireAdmin):JSON 默认,?format=tar.gz 归档;含 version/commit/build_time/迁移水位/健康/配置键快照(键名+是否设置,绝不值)/sentry/auth_enforce/最近错误 - 脱敏红线:logx 增补 SECURITY_KEY=/secret= 规则;配置快照只出键名;CI 单测覆盖 - 前端 关于/自检 页:版本、就绪、下载诊断包(管理员)、最近错误编号+复制、报障链接;页脚入口;client 记录最近 error_id - 路由分类守卫加入 /api/admin
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.
R-104(issue #229)。\n\n- 进程内错误 ring buffer(含 error_id/user_id,message 经 logx.Redact)\n- GET /api/admin/diagnostics(Bearer allowPAT=false + admin):JSON 默认 / ?format=tar.gz;含版本/迁移水位/健康/配置键快照(键名+是否设置,绝不值)/sentry/auth_enforce/最近错误\n- 脱敏红线:logx 增补 SECURITY_KEY=/secret=;配置仅键名;单测覆盖\n- 前端 关于/自检页:版本、就绪、管理员下载诊断包、最近错误编号+复制、报障链接;页脚入口\n\n门禁:后端 go test(33)/-race 全绿;前端 tsc/biome/vitest 全绿。E2E:unauth 20200、非管理员/PAT 20202、admin JSON+tar.gz 导出、grep 无 DATABASE_URL=/password=/SECURITY_KEY=/di_pat_/sk-。Closes #229