移除SSH密钥入口并收紧密码认证边界
删除未注册的密钥 CLI、HTTP 处理和前端残留样式,保留 HTTPS 证书私钥路径与历史数据库兼容迁移;更新生产验收记录并记录后端、前端测试和构建结果。
This commit is contained in:
1 parent
1b9b6ecec4
commit
266eea723c
8 files changed
+39
-330
No files matched your search
@@ -1,29 +0,0 @@
|
||||
package cli
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func newSSHKeyCommand() *cobra.Command {
|
||||
return &cobra.Command{
|
||||
Use: "ssh-key",
|
||||
Short: "SSH 密钥登录功能已停用",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return errors.New("SSH 密钥登录功能已永久停用,仅支持 SSH 密码认证")
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func newSSHKeyListCommand() *cobra.Command {
|
||||
return newSSHKeyCommand()
|
||||
}
|
||||
|
||||
func newSSHKeyAddCommand() *cobra.Command {
|
||||
return newSSHKeyCommand()
|
||||
}
|
||||
|
||||
func newSSHKeyDeleteCommand() *cobra.Command {
|
||||
return newSSHKeyCommand()
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
package httpapi
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
func (s *Server) listSSHKeys(c *gin.Context) {
|
||||
c.Status(404)
|
||||
}
|
||||
|
||||
func (s *Server) createSSHKey(c *gin.Context) {
|
||||
c.Status(404)
|
||||
}
|
||||
|
||||
func (s *Server) deleteSSHKey(c *gin.Context) {
|
||||
c.Status(404)
|
||||
}
|
||||
Reference in new issue
Block a user