Commit Graph
6 Commits
Author SHA1 Message Date
fit2cloud-chenywandClaude bbfc4cc8f5 fix(Security): Host header injection auth bypass and forged admin embedded token (CNVD)
- TokenMiddleware/ResponseMiddleware/audit logger use scope['path']
  instead of request.url.path for whitelist checks: a crafted Host
  header (e.g. x/api/v1/mcp) was concatenated into Starlette's URL
  and made protected routes match the /mcp* whitelist entry
- validateEmbedded rejects admin accounts and non-type-4 apps, so a
  self-signed token with account=admin can no longer impersonate the
  administrator
- Add HostValidationMiddleware rejecting malformed Host headers at the
  outermost layer (defense in depth)
- Add regression tests for host validation, whitelist matching and
  source-level guards

Co-Authored-By: Claude <[email protected]>
2026-08-31 11:05:05 +08:00
Iams4kura 6396042795 fix: show errors in execution details 2026-08-26 11:33:12 +08:00
shaojunjie 7155550a86 test: cover startup distributed lock behavior 2026-07-27 14:31:39 +08:00
Sebastion 82b1028305 test: add unit tests for CWE-89 SQL escape fix in row_permission.py 2026-06-11 11:21:37 +08:00
octo-patch b86b70d396 feat: upgrade MiniMax default model to M3
- Add MiniMax-M3 as the new default model
- Retain MiniMax-M2.7 as available alternative
- Remove deprecated MiniMax-M2.5 and MiniMax-M2.5-highspeed
- Update unit and integration tests for the new model list
2026-06-04 17:11:00 +08:00
octo-patch af5680a1e6 feat: add MiniMax as first-class LLM provider
Add MiniMax AI as a built-in LLM supplier alongside existing providers
(OpenAI, DeepSeek, Gemini, Kimi, etc.) via OpenAI-compatible API.

Changes:
- Add MiniMax supplier entry (id=13) in supplier.ts with M2.7, M2.5,
  M2.5-highspeed models and temperature range [0, 1]
- Add MiniMax icon (96x96 PNG) to frontend assets
- Add i18n translations for MiniMax in en, zh-CN, ko-KR locales
- Add supported LLM providers table to both README files
- Add 24 unit tests + 3 integration tests
2026-03-23 17:41:24 +08:00