From 4a3de923de1a4e18c827276ab49ddb607e07f3b0 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Sun, 21 Dec 2025 09:57:35 -0500 Subject: [PATCH] Remove debug logging, keep fingerprint passthrough --- libplugin/skel/skel.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libplugin/skel/skel.go b/libplugin/skel/skel.go index 438f12a4..8c1f57cf 100644 --- a/libplugin/skel/skel.go +++ b/libplugin/skel/skel.go @@ -193,8 +193,6 @@ func (p *SkelPlugin) PasswordCallback(conn libplugin.ConnMetadata, password []by } func (p *SkelPlugin) PublicKeyCallback(conn libplugin.ConnMetadata, publicKey []byte) (*libplugin.Upstream, error) { - log.Infof("PublicKeyCallback called for user %s, key len=%d", conn.User(), len(publicKey)) - pubKey, err := ssh.ParsePublicKey(publicKey) if err != nil { return nil, err @@ -274,13 +272,11 @@ func (p *SkelPlugin) PublicKeyCallback(conn libplugin.ConnMetadata, publicKey [] } // Pass the client's public key so their fingerprint can be included in the upstream username - log.Infof("Creating upstream with client key len=%d", len(publicKey)) u, err := p.createUpstreamWithClientKey(conn, to, nil, publicKey) if err != nil { return nil, err } - log.Infof("Upstream created with username=%s", u.UserName) return u, nil } @@ -307,9 +303,7 @@ func (p *SkelPlugin) createUpstreamWithClientKey(conn libplugin.ConnMetadata, to // Replace any dots in fingerprint with underscores to avoid parsing issues fingerprint = strings.ReplaceAll(fingerprint, ".", "_") user = "fp:" + fingerprint + "." + user - log.Infof("passing client fingerprint in username: %s", user) - } else { - log.Infof("no client public key provided, using original username: %s", user) + log.Debugf("passing client fingerprint in username: %s", user) } p.cache.SetDefault(conn.UniqueID(), to)