From 8d15b8401744fb9eb5664ef94b722857a7b6163d Mon Sep 17 00:00:00 2001 From: Florian Preinstorfer Date: Thu, 14 Aug 2025 20:29:11 +0200 Subject: [PATCH] Log registrationID to simplify interactive node registration Some clients such as Android make it hard to transfer the registrationID to the server, its easier to get it from the server logs. --- hscontrol/auth.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hscontrol/auth.go b/hscontrol/auth.go index dcf248d4..cb284173 100644 --- a/hscontrol/auth.go +++ b/hscontrol/auth.go @@ -11,6 +11,7 @@ import ( "github.com/juanfont/headscale/hscontrol/types" "github.com/juanfont/headscale/hscontrol/types/change" + "github.com/rs/zerolog/log" "gorm.io/gorm" "tailscale.com/tailcfg" @@ -264,6 +265,7 @@ func (h *Headscale) handleRegisterInteractive( nodeToRegister, ) + log.Info().Msgf("Starting node registration using key: %s", registrationId) return &tailcfg.RegisterResponse{ AuthURL: h.authProvider.AuthURL(registrationId), }, nil