Skip to content

v2.6.0 — 凭证加密 / Credential Encryption

Choose a tag to compare

@Fly143 Fly143 released this 10 Sep 18:04
· 20 commits to main since this release

快速开始 / Quick Start

项 Item 值 Value
服务地址 URL http://localhost:8080
管理面板 Admin http://localhost:8080
对外 API Key sk-mimo(config.json → api_keys)
管理用户名 Admin user admin(固定 fixed)
管理密码 Admin password admin(config.json → admin_password)
pip install -r requirements.txt
python main.py

更新说明 / What's Changed (v2.6.0)

中文

安全

  • 凭证加密落盘:serviceToken / userId / xiaomichatbot_ph / admin_password 使用 Fernet(enc:v1:),密钥在 .secret_key;旧明文 config.json 启动时自动迁移
  • 导入 / 测试连接不再在账号会话里留下 hi 记录(临时 conversation 验证后删除)
  • /api/config 支持局部更新,只改密码不会清空已导入账号

修复

  • Anthropic 模型映射:补全 Claude 4.7 / 4.5;支持日期后缀与 -latest;未知 Claude 名启发式落到 2.5 系列(仅 mimo-v2.5 / mimo-v2.5-pro)

文档

  • README 补充管理后台默认账号、改密方式、.secret_key 备份说明

升级注意: 备份时必须同时保存 config.json 与 .secret_key,否则密文无法解密。Docker 需一并挂载这两个文件。

English

Security

  • Credentials encrypted at rest: Fernet (enc:v1:) for account cookies and admin password; key in .secret_key; plaintext configs migrate on first start
  • Import / connection test no longer leave a hi conversation on the account (temporary probe is deleted)
  • /api/config supports partial updates — changing only the password will not wipe accounts

Fixes

  • Anthropic model aliases: Claude 4.7 / 4.5, date suffixes, -latest; unknown claude-* falls back to the 2.5 series (mimo-v2.5 / mimo-v2.5-pro only)

Docs

  • README: admin defaults, how to change password, .secret_key backup notes

Upgrade note: Back up config.json and .secret_key together. Docker must mount both files.

Full Changelog: v2.5.8...v2.6.0