From: Jeff King <peff@peff.net>
To: demerphq <demerphq@gmail.com>
Cc: "Junio C Hamano" <gitster@pobox.com>,
"Ævar Arnfjörð" <avarab@gmail.com>,
"Git Mailing List" <git@vger.kernel.org>
Subject: Re: General support for ! in git-config values
Date: Wed, 1 Feb 2012 21:38:57 -0500 [thread overview]
Message-ID: <20120202023857.GA11745@sigill.intra.peff.net> (raw)
In-Reply-To: <CANgJU+WCdsF+igCWoueYcChYBvNyj5je_kvWorCBOgh5D7Bb9g@mail.gmail.com>
On Thu, Feb 02, 2012 at 02:57:14AM +0100, demerphq wrote:
> > Not really.
> >
> > I do not think whatever "utility" value outweighs the hassle of having to
> > think through the ramifications (including but not limited to security) of
> > running arbitrary user command every time a value is looked up.
>
> Why is that your problem? If I have to enable it then isn't that my choice?
>From a security perspective, you want to make sure that people who
aren't interested in your feature don't accidentally trigger it. E.g.,
imagine I currently run a locked-down git repo but execute some commands
on your behalf, and I allow you to set a few "known safe" config options
like user.email. Even though I am not interested in your feature,
respecting "!rm -rf /" in the user.email you give me would be a bad
thing.
It's not an insurmountable problem. There could be options to turn it
on, or turn it off, or whatever. Or we could shrug and say that config
is already dangerous to let other people set (which it is already, but
only for some options). But those are the sorts of ramifications that
need to be thought through.
(Another one is that with our current strategy, we actually read and
parse the config files multiple times. Should your program get run many
times?).
-Peff
next prev parent reply other threads:[~2012-02-02 2:39 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-01 17:33 General support for ! in git-config values Ævar Arnfjörð Bjarmason
2012-02-01 18:40 ` Jeff King
2012-02-01 21:25 ` Ævar Arnfjörð Bjarmason
2012-02-01 22:21 ` Junio C Hamano
2012-02-02 0:16 ` demerphq
2012-02-02 0:27 ` Junio C Hamano
2012-02-02 1:14 ` demerphq
2012-02-02 1:39 ` Junio C Hamano
2012-02-02 1:57 ` demerphq
2012-02-02 2:38 ` Jeff King [this message]
2012-02-02 9:44 ` demerphq
2012-02-02 9:54 ` Jeff King
2012-02-02 10:21 ` demerphq
2012-02-03 5:08 ` Kyle Moffett
2012-02-03 6:11 ` Junio C Hamano
2012-02-03 7:35 ` Kyle Moffett
2012-02-03 12:13 ` Jeff King
2012-02-03 12:09 ` Jeff King
2012-02-02 1:41 ` Junio C Hamano
2012-02-02 2:06 ` demerphq
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=20120202023857.GA11745@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=avarab@gmail.com \
--cc=demerphq@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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;
as well as URLs for NNTP newsgroup(s).