git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
To: Jonathan Nieder <jrnieder@gmail.com>
Cc: Lars Schneider <larsxschneider@gmail.com>,
	Jeff King <peff@peff.net>,
	git@vger.kernel.org
Subject: Re: Contributor Summit planning
Date: Mon, 05 Mar 2018 23:13:44 +0100	[thread overview]
Message-ID: <87606anpbb.fsf@evledraar.gmail.com> (raw)
In-Reply-To: <20180305185329.GE28067@aiede.svl.corp.google.com>


On Mon, Mar 05 2018, Jonathan Nieder jotted:

> Lars Schneider wrote:
>> - error reporting: Git is distributed and therefore lots of errors are only
>>   reported locally. That makes it hard for administrators in larger
>>   companies to see trouble. Would it make sense to add a config option that
>>   would push recent errors along with "git push" to the server?
>
> I'm interested in instrumentation but worried about the privacy
> ramifications of this particular proposal.  I'd be happy to see some
> built-in instrumentation hooks (or even a standard instrumentation
> approach, if the mailing list comes up with a good one that respects
> privacy).

I have this use-case as well, and figured a good approach would be:q

 1. Add corresponding config variables for GIT_TRACE_* so you could
    config them in /etc/gitconfig (or elsewhere). Similar to
    e.g. user.name & GIT_AUTHOR_NAME

 2. Add some new trace like e.g. GIT_TRACE_COMMANDS, make it take a
    format string in GIT_TRACE_COMMANDS_FORMAT (or usually via
    config). Thus setting GIT_TRACE_COMMANDS to a file would e.g. spew
    your current repo path, subcommand, or even the absolute command
    line to the file.

 3. Have some cronjob or other monitoring thingy pick up the file &
    submit to central logging.

Of course you could overdo the format specifiers in #2 and e.g. send the
full commands along, but it seems to me that it would be sufficient for
privacy concerns to document that caveat with some examples.

After all, for this use-case we're talking about us somehow guarding
against a sysadmin who can just install a /etc/profile.d/git_wrapper
anyway that'll log everything you do with git, or even provide a custom
git binary, so it's always going to be left to their best judgement.

  reply	other threads:[~2018-03-05 22:13 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-03 10:30 Contributor Summit planning Jeff King
2018-03-03 10:39 ` Jeff King
2018-03-05 14:29   ` Derrick Stolee
2018-03-05 17:01   ` Brandon Williams
2018-03-05 18:29   ` Lars Schneider
2018-03-05 18:53     ` Jonathan Nieder
2018-03-05 22:13       ` Ævar Arnfjörð Bjarmason [this message]
2018-03-05 21:57     ` Ævar Arnfjörð Bjarmason
2018-03-05 14:34 ` Ævar Arnfjörð Bjarmason
2018-03-05 22:21 ` Ad-hoc pre contributor summit dinner & drinks on the 6th Ævar Arnfjörð Bjarmason
  -- strict thread matches above, loose matches on Subject: below --
2018-08-13 16:31 Contributor Summit planning Jeff King
2018-08-13 16:58 ` Derrick Stolee
2018-08-13 17:15   ` Jeff King
2018-08-27 13:22     ` Johannes Schindelin
2018-08-27 13:30       ` Derrick Stolee
2018-08-28 12:22         ` Johannes Schindelin
2018-08-28 19:06         ` Jonathan Nieder
2018-08-28 19:11           ` Jonathan Nieder
2018-08-29 14:38           ` Johannes Schindelin
2018-08-29  4:52       ` Jeff King
2018-08-29 14:44         ` Johannes Schindelin
2018-08-13 17:46 ` Stefan Beller
2018-08-14  4:31   ` Christian Couder
2018-08-14 14:35     ` Jeff King
2018-08-13 18:49 ` Ævar Arnfjörð Bjarmason
2018-08-13 19:44   ` Jeff King
2018-08-13 20:36   ` Junio C Hamano
2018-08-13 20:41     ` Stefan Beller
2018-08-13 21:06       ` Jeff King
2018-08-13 21:19         ` Stefan Beller
2018-08-13 21:54           ` Jeff King
2018-08-14 14:30         ` Duy Nguyen
2018-08-14 14:47           ` Jeff King
2018-08-14 16:57             ` Stefan Beller
2018-08-14 20:59             ` Junio C Hamano
2018-08-17 15:18       ` Duy Nguyen
2018-08-27 22:49   ` Johannes Schindelin
2018-08-29  5:02     ` Jeff King
2018-08-14  6:52 ` Elijah Newren
2018-08-14 13:25   ` Randall S. Becker
2018-08-14 14:06     ` Ævar Arnfjörð Bjarmason
2018-08-14 14:30       ` Jeff King
2018-08-14 14:28     ` Jeff King
2018-08-27 13:34 ` Johannes Schindelin
2018-08-29  4:55   ` Jeff King
2018-08-29 14:46     ` Johannes Schindelin
2018-08-30  3:20       ` Jeff King
2018-08-30 11:36         ` Johannes Schindelin

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=87606anpbb.fsf@evledraar.gmail.com \
    --to=avarab@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=jrnieder@gmail.com \
    --cc=larsxschneider@gmail.com \
    --cc=peff@peff.net \
    /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).