From bb35e1e366fa1d0680866be26a28eadecba74c3b Mon Sep 17 00:00:00 2001 From: Jesper Jensen Date: Sun, 15 Nov 2026 16:00:42 +0100 Subject: Cleanup from the AI slop --- entrypoint.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'entrypoint.sh') diff --git a/entrypoint.sh b/entrypoint.sh index df33b47..fbe2502 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -16,9 +16,6 @@ need_secret() { # [mode] [owner-group] chmod "$mode" "$SECRETS_DIR/$name" } -# Mounted secrets arrive with whatever mode the volume plugin chose. sshd refuses -# keys that are too loose; lighttpd must read htpasswd as the git user. - mkdir -p "$SECRETS_DIR" need_secret authorized_keys 0640 git need_secret htpasswd 0640 git @@ -28,14 +25,8 @@ need_secret ssh_host_rsa_key need_secret ssh_host_rsa_key.pub 0644 chmod 0755 /run/git-host "$SECRETS_DIR" -# The single most important line in the container: without it a repository carries -# no policy and pushes go unchecked. The policy is never copied, so a ConfigMap -# update takes effect on the next push. - +# Set a git hook for authorization git config --file /etc/gitconfig core.hooksPath "${GIT_HOST_HOOK_DIR:-/usr/local/share/git-host/hooks}" - -# Do not serve a host that cannot enforce anything. - git-authz validate /usr/sbin/sshd -D -e -f /etc/ssh/sshd_config & -- cgit v1.2.3