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

Re: git, monorepos, and access control

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Dec 5, 2018, 22:37 UTC
Message-ID
<875zw7zjjx.fsf@evledraar.gmail.com>
In-Reply-To
<939efd87-b2af-29d7-efdd-9cf8f6de9d10@amd.com>
On Wed, Dec 05 2018, Coiner, John wrote:

I forgot to mention this in my initial reply in <878t13zp8y.fsf@evledraar.gmail.com>, but on a re-reading I re-spotted this:

>   - hashes are secret. If the hashes from a protected tree leak, the
> data also leaks. No check on the server prevents it from handing out
> contents for correctly-guessed hashes.

This is a thing I know *way* less about so maybe I'm completely wrong, but even if we have all the rest of the things outlined in your post to support this, isn't this part going to be susceptible to timing attacks?

We'll do more work if you send a SHA-1 during negotiation that shares a prefix with an existing SHA-1, since we need to binary search & compare further. SHA-1 is 160 bits which gives you a huge space of potential hashes, but not if I can try one bit at a time working from the start of the hash to work my way to a valid existing hash stored on the server.

Of course that assumes a way to do this over the network, it'll be on AMD's internal network so much faster than average, but maybe this is completely implausible.

NetSpectre was different and relied on executing code on the remote computer in a sandbox, not waiting for network roundtrips for each try, so maybe this would be a non-issue.

Previous: Coiner, John
Message 17 of 17 in “git, monorepos, and access control”
  1. Coiner, JohnDec 5, 2018
  2. Ævar Arnfjörð BjarmasonDec 5, 2018
  3. Derrick StoleeDec 5, 2018
  4. Duy NguyenDec 5, 2018
  5. Ævar Arnfjörð BjarmasonDec 5, 2018
  6. Coiner, JohnDec 5, 2018
  7. Jeff KingDec 6, 2018
  8. Jeff KingDec 5, 2018
  9. brian m. carlsonDec 6, 2018
  10. Junio C HamanoDec 6, 2018
  11. Jeff KingDec 6, 2018
  12. Ævar Arnfjörð BjarmasonDec 6, 2018
  13. Jeff KingDec 6, 2018
  14. Johannes SchindelinDec 6, 2018
  15. Stefan BellerDec 6, 2018
  16. Coiner, JohnDec 6, 2018
  17. Ævar Arnfjörð BjarmasonDec 5, 2018

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.