From 1c6397b1cddb288099ed212a5979732698bd72c2 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Tue, 22 Sep 2026 19:12:29 +0300 Subject: fix: reuse ssh authentication and add machine recovery commands (#4490) * fix: reuse ssh authentication and add in-app mfa recovery refs #3763 * refactor: move ssh recovery to machine cli refs #3763 --- src/cli/machine.rs | 113 +++++++++++ src/cli/spec/machine.rs | 11 ++ src/cli/target.rs | 2 +- src/client/endpoint/supervisor.rs | 25 ++- src/client/mod.rs | 1 + src/client/shell.rs | 1 + src/client/shell/composition.rs | 11 ++ src/client/shell/endpoint_sidebar.rs | 43 +++- src/client/shell/endpoints.rs | 8 + src/client/shell/input.rs | 3 + src/client/shell/machine_diagnostics.rs | 130 ++++++++++++ src/client/shell/render.rs | 1 + src/client/shell/state.rs | 2 + src/client/shell/tests/endpoints.rs | 39 ++++ src/client/shell_runtime.rs | 1 + src/platform/mod.rs | 15 +- src/platform/unix_common.rs | 136 +++++++++++++ src/remote/attach.rs | 340 ++++++++++++++++++++++++++------ 18 files changed, 810 insertions(+), 72 deletions(-) create mode 100644 src/client/shell/machine_diagnostics.rs (limited to 'src') diff --git a/src/cli/machine.rs b/src/cli/machine.rs index 53404c03..9328347e 100644 --- a/src/cli/machine.rs +++ b/src/cli/machine.rs @@ -4,6 +4,8 @@ use crate::client::endpoint::{EndpointCatalog, ProfileId}; const HELP: &str = "Usage: herdr machine list [--json] + herdr machine status [] [--json] + herdr machine reconnect herdr machine add --label