收紧SSH密码认证并明确证书私钥边界

移除 SSH 密钥登录相关生产提示与入口,强制服务器连接使用密码认证,明确 HTTPS 证书私钥仅用于 TLS 部署,并更新安全复审记录。
This commit is contained in:
xuans committed 2026-10-02 09:57:46 +08:00
1 parent 266eea723c
commit 81b84acadb
10 files changed
+45 -8

No files matched your search

+3
View File
@@ -41,6 +41,9 @@ func (f SSHFactory) connect(ctx context.Context, server Server, requireSFTP bool
if err := server.Validate(); err != nil {
return nil, err
}
if server.AuthMethod != SSHAuthPassword {
return nil, errors.New("服务器连接仅支持 SSH 密码认证")
}
if f.Secrets == nil {
return nil, errors.New("SSH 敏感信息存储未初始化")
}