fix: harden profile imports and release dependencies

This commit is contained in:
Andy Dixon
2026-06-15 19:39:16 +01:00
parent b2fc84846c
commit 9bbd9ceccf
20 changed files with 1493 additions and 135 deletions
+3 -3
View File
@@ -69,10 +69,10 @@ func (c *Client) sshConf() models.SSHConfig {
return models.SSHConfig{}
}
// Connect establishes the SSH connection using the default (insecure)
// host-key callback. Prefer ConnectWithHostKeyCallback for production use.
// Connect refuses to connect without an explicit host-key callback. Use
// ConnectWithHostKeyCallback so all callers make host-key policy visible.
func (c *Client) Connect(getPassword func() (string, error), getPassphrase func() (string, error)) error {
return c.connectInternal(ssh.InsecureIgnoreHostKey(), getPassword, getPassphrase)
return fmt.Errorf("sshclient: host key callback is required; use ConnectWithHostKeyCallback")
}
// ConnectWithHostKeyCallback applies a custom HostKeyCallback (e.g. from