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

Re: What's cooking in git.git (Jan 2021, #02; Fri, 8)

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 11, 2021, 19:04 UTC
Message-ID
<xmqqeeir8fdg.fsf@gitster.c.googlers.com>
In-Reply-To
<X/uvhc5Hpu792qA/@camp.crustytoothpaste.net>
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
Show 17 quoted lines
> On 2021-01-09 at 23:20:25, Junio C Hamano wrote:
>> "brian m. carlson" <sandals@crustytoothpaste.net> writes:
>> 
>> > On 2021-01-09 at 21:28:58, Junio C Hamano wrote:
>> >> Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
>> >> > FWIW there was since a re-roll on 2021-01-03, but the discussion is
>> >> > sort-of outstanding, so maybe that's intentional...
>> >> 
>> >> I had an impression that those 4 or 5 patches haven't gained
>> >> concensus that they are good as-is.
>> >
>> > There will be another reroll.  I'm hoping to get to it this weekend.
>> 
>> Thanks.
>
> Having read Ævar's latest comment, I've decided instead to drop this, so
> feel free to do so whenever it's convenient.
That's kind of sad.

I view that this is the kind of topic where perfect easily can become an enemy of good, as there is by definition no perfection available to us without breaking existing Git.

I do not know about Ævar, but to me, my initial impression while reading the discussion from sideline was that the goal was to prevent a mechanical scan of a recent version of .mailmap from learning that Joe used to use Jane as his/her name, and that was the reason why I asked to be convinced why encoding for obfuscation was insufficient. In the above, I meant "mechanical scan" as something like "a web search engine crawls and finds a .mailmap---a query for Joe produces a line with some garbage on it that is not Jane." and a casual attacker would stop there.

But of course, a casual attacker who knows urlencode or whatever obfuscation in use can read that "garbage" once he/she knows that "garbage" is worth attacking (i.e. it is known to be associated to Joe, the person the attacker is interested in).

If your goal is to make it harder than just urlencode, even though we all have to accept that scanning "git log --all" for all names that appear in the history and hashing them all to see what name hashes to the "garbage" in question, then @sha256:<hash> approach does make sense as a stopping point. Perhaps we need to sell this with a clear definition of what kind of attackes we are protecting the name data from:

    The attacker is required to obtain sufficient amount of history
    in the project to uncover the obfuscation; a more casual
    attackers will fail to uncover, and we declare that it is better
    than nothing and it is good enough in practice.

or something like that? I am not sure if I drew the line at the level you intended to draw in the above, if I think that it is good enough in practice, or if I agree to a change that is better than nothing but not good enough in practice, but having such a statement would help to see where we agree or disagree.

Thanks.
Previous: brian m. carlsonNext: Ævar Arnfjörð Bjarmason
Message 7 of 34 in “What's cooking in git.git (Jan 2021, #02; Fri, 8)”
  1. Junio C HamanoJan 8, 2021
  2. Ævar Arnfjörð BjarmasonJan 9, 2021
  3. Junio C HamanoJan 9, 2021
  4. brian m. carlsonJan 9, 2021
  5. Junio C HamanoJan 9, 2021
  6. brian m. carlsonJan 11, 2021
  7. Junio C HamanoJan 11, 2021
  8. Ævar Arnfjörð BjarmasonJan 12, 2021
  9. Emily ShafferJan 14, 2021
  10. Emily ShafferJan 14, 2021
  11. Junio C HamanoJan 15, 2021
  12. brian m. carlsonJan 15, 2021
  13. Junio C HamanoJan 15, 2021
  14. Ævar Arnfjörð BjarmasonJan 16, 2021
  15. Jeff KingJan 17, 2021
  16. Ævar Arnfjörð BjarmasonJan 17, 2021
  17. Ævar Arnfjörð BjarmasonJan 10, 2021
  18. Junio C HamanoJan 11, 2021
  19. David AguilarJan 9, 2021
  20. Junio C HamanoJan 9, 2021
  21. Emily ShafferJan 14, 2021
  22. Junio C HamanoJan 15, 2021
  23. Taylor BlauJan 15, 2021
  24. Taylor BlauJan 15, 2021
  25. Derrick StoleeJan 15, 2021
  26. Derrick StoleeJan 15, 2021
  27. Junio C HamanoJan 15, 2021
  28. Junio C HamanoJan 15, 2021
  29. Derrick StoleeJan 15, 2021
  30. Junio C HamanoJan 15, 2021
  31. Emily ShafferJan 15, 2021
  32. Junio C HamanoJan 15, 2021
  33. Jeff KingJan 15, 2021
  34. Junio C HamanoJan 15, 2021

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.