Files
Nexus/docs/audit/2026-06-21-btpanel-temp-login-24h.md
T
r 0ec0aaf174 feat(btpanel): 一键登录临时 token 有效期改为 24 小时
API set_temp_login 传 expire_time=86400;SSH 回退用自定义脚本替代 tools.py 3 小时默认。
2026-06-22 05:48:15 +08:00

821 B
Raw Blame History

审计 — 2026-06-21 宝塔临时登录 24 小时

Changelog: docs/changelog/2026-06-21-btpanel-temp-login-24h.md

Step 3 规则扫描

文件 规则 结论
constants.py 单点 TTL 常量 PASS
btpanel_service.py API 传 expire_timetoken 拼 URL PASS
ssh_login.py base64 远程脚本,无静默吞错 PASS

Closure

状态 说明
默认 3h 临时登录 FIXED API + SSH 均 86400s

文件清单

  • server/infrastructure/btpanel/constants.py
  • server/application/services/btpanel_service.py
  • server/infrastructure/btpanel/ssh_login.py
  • tests/test_btpanel_temp_login_ttl.py
  • docs/changelog/2026-06-21-btpanel-temp-login-24h.md

DoD

  • expire_time = now + 86400
  • pytest 通过