Git development
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: "Alessio Attilio via GitGitGadget" <gitgitgadget@gmail.com>
Cc: git@vger.kernel.org,  Alessio Attilio <hello@kairosci.dev>,
	 Alessio Attilio <alessio.attilio@protonmail.com>
Subject: Re: [PATCH] hooks: introduce 'hooks.allowNoVerify' configuration
Date: Wed, 02 Sep 2026 12:21:01 -0700	[thread overview]
Message-ID: <xmqqa4pzihnm.fsf@gitster.g> (raw)
In-Reply-To: <pull.2215.git.1788365862670.gitgitgadget@gmail.com> (Alessio Attilio via GitGitGadget's message of "Wed, 02 Sep 2026 16:17:42 +0000")

"Alessio Attilio via GitGitGadget" <gitgitgadget@gmail.com> writes:

> From: Alessio Attilio <alessio.attilio@protonmail.com>
>
> Introduce 'hooks.allowNoVerify' as an opt-in workflow guardrail to
> prevent accidental bypass of hooks with '--no-verify' when set to false.
> Authoritative enforcement remains server-side.

Accidental

	$ git foo --no-verify

may be prevented by setting this configuration variable, but then
would we need another layer of protection to prevent accidental

	$ git -c hooks.allownoverify foo --no-verify

by introducing another configuration variable to forbid
hooks.allownoverify to be overriden?

I do not think we want to go into this slipperly slope.  Thanks for
sending a patch, but I am personally not interested.

Besides, verifications that users may be tempted to bypass, but want
to instill discipline to prevent bypassing, may not be implemented
as hooks, and the way they are bypassed may not be "--[no-]verify"
command line option.  When one wants a way to prevent such
verifications from getting disabled, the mechanism should also allow
forbidding verification that is built into the system from getting
disabled.  Limiting a settings to hooks is probably not a good idea,
and introducing a new "hooks." hierarchy for this setting is not
something we want to see.


      parent reply	other threads:[~2026-09-02 19:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-02 16:17 [PATCH] hooks: introduce 'hooks.allowNoVerify' configuration Alessio Attilio via GitGitGadget
2026-09-02 16:35 ` [PATCH v2] " Alessio Attilio via GitGitGadget
2026-09-02 17:23 ` [PATCH v3] " Alessio Attilio via GitGitGadget
2026-09-02 22:14   ` brian m. carlson
2026-09-02 17:45 ` [PATCH v4] " Alessio Attilio via GitGitGadget
2026-09-02 19:21 ` Junio C Hamano [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqa4pzihnm.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=alessio.attilio@protonmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitgitgadget@gmail.com \
    --cc=hello@kairosci.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox