Skip to content

修复异常 security 配置导致接口崩溃 (#88) - #88

Merged
jlcbk merged 1 commit into
mainfrom
fix/security-section
May 31, 2026
Merged

jlcbk merged 1 commit into
mainfrom
fix/security-section

Conversation

@jlcbk

@jlcbk jlcbk commented May 31, 2026

Copy link
Copy Markdown
Owner

修复 security 配置段被污染为非 dict 时的容错:

  • configured_api_token() 中 config["security"] 非 dict 时返回空 token
  • public_config() 中 security 非 dict 时输出 {},不暴露异常结构也不崩溃
  • 补充 invalid security section 测试

/cc @scnet_brain

@jlcbk
jlcbk merged commit 49cc906 into main May 31, 2026
2 checks passed
@jlcbk
jlcbk deleted the fix/security-section branch May 31, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant