From 2e6dd4a8e9e5302efae6b7532f7f4609882fc21d Mon Sep 17 00:00:00 2001 From: dev Date: Sun, 15 Nov 2026 11:32:51 +0000 Subject: Three things the removal left behind The shipped example policy still told operators that `git-authz grant` and `revoke` edit a source copy. Both exit 64 now, so the header says why the deployed copy is read-only instead - the hook must not be able to change who can push - and stops short of naming a command that no longer exists. container/git-host-key made the same claim from the other side: that `validate` cross-checks keys and the rest of the wiring. It does not any more. The text now says what git-host-key itself guarantees, the option prefix it writes onto each key, and what it does not: a key edited in by hand can still lose the identity, and the name still needs a rule. sb_init/sb_add/sb_addf/sb_free and strbuf_t were orphaned when edit.c went - nothing else ever built a string buffer - so they are gone, with the stdarg.h include that only sb_addf needed. 64 lines. src/ and cmd/ are 1,431 non-blank lines. make strict, make test and make sanitizer are clean, sanitizers silent, and the example policy still parses to its 7 rules. --- authz.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'authz.conf') diff --git a/authz.conf b/authz.conf index 7881329..f9dfba9 100644 --- a/authz.conf +++ b/authz.conf @@ -1,9 +1,10 @@ # git-host access policy. # # One file, read by the receive hook on every push and by nothing that serves -# reads. The deployed copy is mounted read-only - a ConfigMap - so changes are -# made to the copy in git and rolled out; `git-authz grant` and `revoke` edit a -# source copy and refuse, with an explanation, when pointed at the read-only one. +# reads. The deployed copy is mounted read-only - a ConfigMap - on purpose: the +# hook must not be able to change who can push, and neither must whatever else +# runs as the git account. Edit the copy in git and roll the ConfigMap that +# provides it. # # [ ... ] # -- cgit v1.2.3