summaryrefslogtreecommitdiffstats
path: root/authz.conf
diff options
context:
space:
mode:
authordev <dev@example>2026-11-15 11:32:51 +0000
committerdev <dev@example>2026-11-15 11:32:51 +0000
commit2e6dd4a8e9e5302efae6b7532f7f4609882fc21d (patch)
treebcf0ce30538dbea33156ec98da8fd8cfe0d0679e /authz.conf
parentc2b95afc6aefbab69133a202cab95a50a2df82fc (diff)
downloadaccess-control-2e6dd4a8e9e5302efae6b7532f7f4609882fc21d.tar.gz
access-control-2e6dd4a8e9e5302efae6b7532f7f4609882fc21d.zip
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.
Diffstat (limited to 'authz.conf')
-rw-r--r--authz.conf7
1 files changed, 4 insertions, 3 deletions
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.
#
# <user> <repo> <write|force|admin> [ <ref pattern> ... ]
#