-15
cmd/keyfetch/format.go
-15
cmd/keyfetch/format.go
···-func formatKeyData(repoguardPath, gitDir, logPath, endpoint string, data []map[string]interface{}) string {-`command="%s -base-dir %s -user %s -log-path %s -internal-api %s",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty %s`+"\n",
-46
cmd/keyfetch/main.go
-46
cmd/keyfetch/main.go
···-// AuthorizedKeysCommand /keyfetch -internal-api http://localhost:5444 -repoguard-path /home/git/repoguard-// The command and its parent directories must be owned by root and set to 0755. Hence, the ideal location for this is-repoguardPath := flag.String("repoguard-path", "/home/git/repoguard", "Path to the repoguard binary")
+33
cmd/knot/main.go
+33
cmd/knot/main.go
···
-207
cmd/repoguard/main.go
-207
cmd/repoguard/main.go
···
+1
go.mod
+1
go.mod
+2
go.sum
+2
go.sum
···github.com/vmihailenco/go-tinylfu v0.2.2/go.mod h1:CutYi2Q9puTxfcolkliPq4npPuofg9N9t8JVrjzwa3Q=
+208
guard/guard.go
+208
guard/guard.go
···
+121
keyfetch/keyfetch.go
+121
keyfetch/keyfetch.go
···+func formatKeyData(repoguardPath, gitDir, logPath, endpoint string, data []map[string]any) string {+`command="%s -base-dir %s -user %s -log-path %s -internal-api %s",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty %s`+"\n",
+84
knotserver/server.go
+84
knotserver/server.go
···