Add SSH-managed node registry with connection testing and reauth.

Register hosts under Containers/VMs/Docker with encrypted key storage, and require re-authentication for sensitive account changes.
This commit is contained in:
2026-07-18 16:39:10 +02:00
parent b93b7519ec
commit f4dc8f63d7
31 changed files with 4801 additions and 223 deletions
+19
View File
@@ -0,0 +1,19 @@
package auth
import (
"testing"
)
func TestTestSSHConnectionRejectsEmptyHost(t *testing.T) {
err := TestSSHConnection("", "clustercanvas", "not-a-key", "")
if err == nil {
t.Fatal("expected error")
}
}
func TestTestSSHConnectionRejectsInvalidKey(t *testing.T) {
err := TestSSHConnection("127.0.0.1", "clustercanvas", "not-a-key", "")
if err == nil {
t.Fatal("expected error")
}
}