feat: seed SSH users from env var and authorized_keys file #31

Merged
lerko merged 3 commits from feat/onboarding-keys into main 2026-05-27 21:15:01 +00:00
Showing only changes of commit c8e9893b59 - Show all commits
+2 -1
View File
@@ -10,6 +10,7 @@ import (
"net/url" "net/url"
"os" "os"
"os/signal" "os/signal"
"path/filepath"
"strconv" "strconv"
"strings" "strings"
"sync" "sync"
@@ -576,7 +577,7 @@ func seedKeysFromEnv(s store.Store) {
} }
if path := os.Getenv("UPTOP_KEYS"); path != "" { if path := os.Getenv("UPTOP_KEYS"); path != "" {
f, err := os.Open(path) f, err := os.Open(filepath.Clean(path))
if err == nil { if err == nil {
scanner := bufio.NewScanner(f) scanner := bufio.NewScanner(f)
for scanner.Scan() { for scanner.Scan() {