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
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Nov 10, 2016, 12:10 UTC
Message-ID
<vpqoa1n1qom.fsf@anie.imag.fr>
In-Reply-To
<4C8C5650-7221-4F62-A9CC-81AE01EF6DC7@gmail.com>
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.

Asking the main git process to get the credentials probably has added value like the ability to prompt once and use the same for several filter processes.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Lars SchneiderNext: Jeff King
Message 2 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.