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:
Jon Chery
2026-08-04 11:38:39 +00:00
parent 08481d35ce
commit 7cb12c52ce
2 changed files with 13 additions and 7 deletions
+8 -7
View File
@@ -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)
+5
View File
@@ -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
}