git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: RFC: "git config -l" should not expose sensitive information

From
Andrew Ardill <andrew.ardill@gmail.com>
Date
Dec 20, 2012, 22:31 UTC
Message-ID
<CAH5451kjsfvye8PEBN7DGzA+auLDJEmJb2qAqcD9MX9MVAu4NQ@mail.gmail.com>
In-Reply-To
<7vbodo5zjj.fsf@alter.siamese.dyndns.org>
On 21 December 2012 02:49, Aaron Schrab <aaron@schrab.com> wrote:
> Tools outside of the core git tree may add support for new config keys which
> are meant to contain sensitive information, and there would be no way for
> `git config` to know about those.

I understand that we've come down mostly on the 'users must check before sending' side of things, but this point isn't necessarily true.

It wouldn't be too hard to create a config setting with a list of 'sensitive' keys filled with sensible defaults. It would be the job of the 3rd party to add the relevant keys to this config file. This wouldn't help with old 3rd party tools but would provide a way to 'hide' things automatically. A user could of course configure this themselves (though one would think most who knew how wouldn't need to).

On 21 December 2012 02:52, Jeff King <peff@peff.net> wrote:
Show 7 quoted lines
>> I think that attempting to do this would only result in a false sense
>> of security.
>
> Yeah. Thanks for a dose of sanity. I was really trying not to say "the
> given advice is bad, and we cannot help those people". But I think you
> are right; the only sensible path is for the user to inspect the output
> before posting it.

One thing that a new option could provide (or maybe even the existing option if it detects an interactive session) is to prompt the user to review the content before outputting it. This is a nice way of helping users who don't know that there might be sensitive information in the output. Are there any use cases where prompting the user would be annoying when using this command?

Regards,
Andrew Ardill
Previous: Junio C Hamano
Message 10 of 10 in “RFC: "git config -l" should not expose sensitive information”
  1. Toralf FörsterDec 17, 2012
  2. Jeff KingDec 20, 2012
  3. Aaron SchrabDec 20, 2012
  4. Jeff KingDec 20, 2012
  5. Junio C HamanoDec 20, 2012
  6. Toralf FörsterDec 20, 2012
  7. Michael HaggertyDec 20, 2012
  8. Jeff KingDec 20, 2012
  9. Junio C HamanoDec 20, 2012
  10. Andrew ArdillDec 20, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.