From 8e603f9d67084a253947c280a4d0bdea93ad69e8 Mon Sep 17 00:00:00 2001
From: Runxi Yu <me@runxiyu.org>
Date: Sun, 16 Feb 2025 17:19:51 +0800
Subject: [PATCH] ssh_server.go: Update comment about SSH auth

---
 ssh_server.go | 5 +++--

diff --git a/ssh_server.go b/ssh_server.go
index 5a14b0f5e2ae3d0c0a732a9e83d3718edc5ff2d1..206bf721cc04e261f8fe82cc1c46a12010444d02 100644
--- a/ssh_server.go
+++ b/ssh_server.go
@@ -75,8 +75,9 @@ 		},
 		PublicKeyHandler:           func(ctx glider_ssh.Context, key glider_ssh.PublicKey) bool { return true },
 		KeyboardInteractiveHandler: func(ctx glider_ssh.Context, challenge go_ssh.KeyboardInteractiveChallenge) bool { return true },
 		// It is intentional that we do not check any credentials and accept all connections.
-		// This allows all users to connect and clone repositories; when pushing is added later,
-		// we will check their public key in the session handler, not in the auth handlers.
+		// This allows all users to connect and clone repositories. However, the public key
+		// is passed to handlers, so e.g. the push handler could check the key and reject the
+		// push if it needs to.
 	}
 
 	server.AddHostKey(host_key)

-- 
2.48.1