security(jd): add persona-only SSH closure actions

This commit is contained in:
冰朔 2026-07-27 14:33:03 +08:00
commit 7c3c8e9238
7 changed files with 80 additions and 1 deletions

View file

@ -96,6 +96,8 @@ node server-tools/lake-lamp-authz/authorize-repo-push.js \
## 登录恢复动作不得混用
- `inspect-owner-ssh-login` 只回读 SSH 的有效密码认证、交互式认证和 root 登录策略,不读取密钥或密码。
- `disable-owner-password-login` 关闭 SSH 密码认证与交互式认证,并把 root 登录限制为仅密钥;人格体仍只能通过主人批准的工单调用固定动作,不能取得任意 shell。
- `restore-owner-password-login` 只恢复京东服务器的 SSH 密码认证开关;它不读取、不重置,也不验证光湖代码频道账号。
- `restore-code-channel-owner-login` 只把京东本机旧第五域数据库中的 `bingshuo` 密码摘要恢复到新代码频道,同时校正启用、管理员和禁止登录状态。它不读取明文密码,不修改 SSH并在变更前使用 SQLite backup API 生成一致性备份。
- 登录问题先执行 `inspect-code-channel-owner-auth`。只有确认新旧频道凭证不一致时,才申请后一项恢复动作;不得绕到新加坡灾备节点,不得向冰朔索要密码。