feat(proxmox): HostKeyFingerprint field on Options (T02.4, REQ-058)
---ci--- project: orca phase: 2 milestone: v0.8 status: execute ---/ci---
This commit is contained in:
@@ -160,13 +160,14 @@ func joinProxmox(cmd *cobra.Command) error {
|
||||
defer cancel()
|
||||
|
||||
result, err := proxmox.BootstrapProxmox(ctx, proxmox.Options{
|
||||
Host: joinHost,
|
||||
SSHUser: joinSSHUser,
|
||||
Password: password,
|
||||
ProxmoxUser: proxmoxUser,
|
||||
ProxmoxRole: proxmoxRole,
|
||||
SSHPort: joinSSHPort,
|
||||
Logger: newLogger(),
|
||||
Host: joinHost,
|
||||
SSHUser: joinSSHUser,
|
||||
Password: password,
|
||||
ProxmoxUser: proxmoxUser,
|
||||
ProxmoxRole: proxmoxRole,
|
||||
SSHPort: joinSSHPort,
|
||||
HostKeyFingerprint: joinHostKeyFP,
|
||||
Logger: newLogger(),
|
||||
})
|
||||
if err != nil {
|
||||
return fmt.Errorf("proxmox bootstrap: %w", err)
|
||||
|
||||
@@ -68,6 +68,11 @@ type Options struct {
|
||||
ProxmoxRole string
|
||||
// SSHPort is the SSH port (default 22).
|
||||
SSHPort int
|
||||
// HostKeyFingerprint is the operator-pinned SSH host key fingerprint
|
||||
// in `SHA256:base64` form (REQ-058, D-044). When non-empty, the
|
||||
// bootstrap dialer uses a pinned-host-key callback instead of the
|
||||
// TOFU known_hosts capture path. Empty falls back to TOFU.
|
||||
HostKeyFingerprint string
|
||||
// Logger receives audit-log entries. If nil, slog.Default() is used.
|
||||
Logger *slog.Logger
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user