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

Re: [RFC] Add way to make Git credentials accessible from clean/smudge filter

From
Jeff King <peff@peff.net>
Date
Nov 10, 2016, 16:08 UTC
Message-ID
<20161110160809.2gvf67rlnvounulf@sigill.intra.peff.net>
In-Reply-To
<vpqoa1n1qom.fsf@anie.imag.fr>
On Thu, Nov 10, 2016 at 01:10:17PM +0100, Matthieu Moy wrote:
Show 11 quoted lines
> Lars Schneider <larsxschneider@gmail.com> writes:
> 
> > I haven't looked at an implemenation approach at all. I wonder if this could
> > be OK from a conceptional point of view or if there are obvious security 
> > problems that I am missing.
> 
> Did you consider just running "git credential" from the filter? It may
> not be the perfect solution, but it should work. I already used it to
> get credential from a remote-helper (git-remote-mediawiki). When
> prompting credentials interactively, it grabs the terminal directly, so
> it work even if stdin/stdout are used for the protocol.

Yeah, that is the solution I was going to suggest. The credentials are totally orthogonal to the filters, and I would rather not shove them into the protocol. It's an extra process, but with the new multi-use smudge filter, it's one per git invocation, not one per file.

-Peff
Previous: Matthieu MoyNext: Lars Schneider
Message 3 of 9 in “[RFC] Add way to make Git credentials accessible from clean/smudge filter”
  1. Lars SchneiderNov 10, 2016
  2. Matthieu MoyNov 10, 2016
  3. Jeff KingNov 10, 2016
  4. Lars SchneiderNov 11, 2016
  5. Jeff KingNov 11, 2016
  6. Lars SchneiderNov 11, 2016
  7. Dennis KaarsemakerNov 11, 2016
  8. Jeff KingNov 11, 2016
  9. Lars SchneiderNov 12, 2016

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.