From 19fd062ab11d9998640b6efb0633a6393e6cd155 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Wed, 5 Feb 2025 10:56:53 +0200 Subject: [PATCH] keyfetch: document permissions --- cmd/keyfetch/main.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmd/keyfetch/main.go b/cmd/keyfetch/main.go index 19857de..9f8e349 100644 --- a/cmd/keyfetch/main.go +++ b/cmd/keyfetch/main.go @@ -1,3 +1,12 @@ +// This program must be configured to run as the sshd AuthorizedKeysCommand. +// The format looks something like this: +// Match User git +// AuthorizedKeysCommand /keyfetch -internal-api http://localhost:5444 -repoguard-path /home/git/repoguard +// AuthorizedKeysCommandUser nobody +// +// The command and its parent directories must be owned by root and set to 0755. Hence, the ideal location for this is +// somewhere already owned by root so you don't have to mess with directory perms. + package main import ( -- knotmirror 0.0.1