From: Junio C Hamano <gitster@pobox.com>
To: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
Cc: Antoine Queru <Antoine.Queru@grenoble-inp.org>,
git@vger.kernel.org, william.duclot@ensimag.grenoble-inp.fr,
simon.rabourg@ensimag.grenoble-inp.fr,
francois.beutin@ensimag.grenoble-inp.fr,
larsxschneider@gmail.com, rsbecker@nexbridge.com,
aaron@schrab.com, peff@peff.net
Subject: Re: [RFC/PATCH] push: deny policy to prevent pushes to unwanted remotes.
Date: Mon, 06 Jun 2016 09:13:38 -0700 [thread overview]
Message-ID: <xmqq7fe2z45p.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <vpq37oqjqgn.fsf@anie.imag.fr> (Matthieu Moy's message of "Mon, 06 Jun 2016 17:18:32 +0200")
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
> Antoine Queru <Antoine.Queru@grenoble-inp.org> writes:
>
>> Currently, a user wanting to prevent accidental pushes to the wrong
>> remote has to create a pre-push hook. The feature
>
> It's not clear what "The feature" refers to. Given the context, I read
> it as "pre-push hook", but I think this is not what you meant.
>
>> User, password and port are not treated. Should it be ?
>
> Please elaborate on "not treated". What happens if github.com is
> blacklisted by the user pushes to http://me@github.com ?
> ...
>> +remote.pushBlacklist::
>> + The list of remotes the user is forbidden to push to.
>> + See linkgit:git-push[1]
>
> This is only true when remote.pushDefaultPolicy is "allow". It makes
> sense to say it explicitly here, if only to have a pointer to
> pushDefaultPolicy.
> ...
All good comments and suggestions, but I am bothered a lot more by
this being called "Policy" and uses words like "Prevent" and
"Forbidden" as if there is a real enforcement mechanism, when in
reality what is proposed is only advisory.
It is a good design balance to leave such a client-side mechanism
advisory and go no further than that; a truly draconian client side
mechanism has no value, as the Git protocol is open, well documented
and you can write and use a more liberal client to work around such
a mechanism. I do not think selling such an advisory mechanism as
if it is a policy enforcement feature.
"user wanting to avoid accidental pushes" the log message mentions
sets the expectation at the right level, I would think. I do not
think this is about a "Policy enforcement"; where its value lies in
is accident prevention (and possibly self discipline enforcement).
next prev parent reply other threads:[~2016-06-06 16:13 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-04 14:51 [RFC/PATCH] push: deny policy to prevent pushes to unwanted remotes Antoine Queru
2016-06-06 11:39 ` Remi Galan Alfonso
2016-06-06 13:43 ` Antoine Queru
2016-06-15 19:37 ` Lars Schneider
2016-06-20 22:25 ` Antoine Queru
2016-06-21 6:20 ` Matthieu Moy
2016-06-21 7:45 ` Lars Schneider
2016-06-06 15:18 ` Matthieu Moy
2016-06-06 16:13 ` Junio C Hamano [this message]
2016-06-06 16:37 ` Matthieu Moy
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=xmqq7fe2z45p.fsf@gitster.mtv.corp.google.com \
--to=gitster@pobox.com \
--cc=Antoine.Queru@grenoble-inp.org \
--cc=Matthieu.Moy@grenoble-inp.fr \
--cc=aaron@schrab.com \
--cc=francois.beutin@ensimag.grenoble-inp.fr \
--cc=git@vger.kernel.org \
--cc=larsxschneider@gmail.com \
--cc=peff@peff.net \
--cc=rsbecker@nexbridge.com \
--cc=simon.rabourg@ensimag.grenoble-inp.fr \
--cc=william.duclot@ensimag.grenoble-inp.fr \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.