From 1546e8a89a4a1ede240bdc552d2449b79dacb9da Mon Sep 17 00:00:00 2001 From: Owen Date: Fri, 5 Jun 2026 17:09:58 -0700 Subject: [PATCH] Quiet some logs --- authdaemon.go | 2 +- authdaemon/server.go | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/authdaemon.go b/authdaemon.go index dc6d313..bd4b29f 100644 --- a/authdaemon.go +++ b/authdaemon.go @@ -63,7 +63,7 @@ func startAuthDaemon(ctx context.Context) error { // Start the auth daemon in a goroutine so it runs alongside newt go func() { - logger.Info("Auth daemon starting (native mode, no HTTP server)") + logger.Debug("Auth daemon starting (native mode, no HTTP server)") if err := srv.Run(ctx); err != nil { logger.Error("Auth daemon error: %v", err) } diff --git a/authdaemon/server.go b/authdaemon/server.go index 224ac9e..0bd114b 100644 --- a/authdaemon/server.go +++ b/authdaemon/server.go @@ -23,13 +23,13 @@ import ( type Config struct { // DisableHTTPS: when true, Run() does not start the HTTPS server (for embedded use inside Newt). Call ProcessConnection directly for connection events. - DisableHTTPS bool - Port int // Required when DisableHTTPS is false. Listen port for the HTTPS server. No default. - PresharedKey string // Required when DisableHTTPS is false. HTTP auth (Authorization: Bearer or X-Preshared-Key: ). No default. - CACertPath string // Required. Where to write the CA cert (e.g. /etc/ssh/ca.pem). No default. - Force bool // If true, overwrite existing CA cert (and other items) when content differs. Default false. - PrincipalsFilePath string // Required. Path to the principals data file (JSON: username -> array of principals). No default. - GenerateRandomPassword bool // If true, set a random password on users when they are provisioned (for SSH PermitEmptyPasswords no). + DisableHTTPS bool + Port int // Required when DisableHTTPS is false. Listen port for the HTTPS server. No default. + PresharedKey string // Required when DisableHTTPS is false. HTTP auth (Authorization: Bearer or X-Preshared-Key: ). No default. + CACertPath string // Required. Where to write the CA cert (e.g. /etc/ssh/ca.pem). No default. + Force bool // If true, overwrite existing CA cert (and other items) when content differs. Default false. + PrincipalsFilePath string // Required. Path to the principals data file (JSON: username -> array of principals). No default. + GenerateRandomPassword bool // If true, set a random password on users when they are provisioned (for SSH PermitEmptyPasswords no). } type Server struct { @@ -136,7 +136,7 @@ func NewServer(cfg Config) (*Server, error) { // When DisableHTTPS is true, Run() blocks on ctx only and does not listen; use ProcessConnection for connection events. func (s *Server) Run(ctx context.Context) error { if s.cfg.DisableHTTPS { - logger.Info("auth-daemon running (HTTPS disabled)") + logger.Debug("auth-daemon running (HTTPS disabled)") <-ctx.Done() s.cleanupPrincipalsFile() return nil