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

Re: git, monorepos, and access control

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 6, 2018, 01:08 UTC
Message-ID
<xmqqwoona2c6.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20181205210104.GC19936@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> In my opinion this feature is so contrary to Git's general assumptions
> that it's likely to create a ton of information leaks of the supposedly
> protected data.
> ...

Yup, with s/implemented/designed/, I agree all you said here (snipped).

> Sorry I don't have a more positive response. What you want to do is
> perfectly reasonable, but I just think it's a mismatch with how Git
> works (and because of the security impact, one missed corner case
> renders the whole thing useless).
Yup, again.

Storing source files encrypted and decrypting with smudge filter upon checkout (and those without the access won't get keys and will likely to use sparse checkout to exclude these priviledged sources) is probably the only workaround that does not involve submodules. Viewing "diff" and "log -p" would still be a challenge, which probably could use the same filter as smudge for textconv.

I wonder (and this is the primary reason why I am responding to you) if it is common enough wish to use the same filter for smudge and textconv? So far, our stance (which can be judged from the way the clean/smudge filters are named) has been that the in-repo representation is the canonical, and the representation used in the checkout is ephemeral, and that is why we run "diff", "grep", etc. over the in-repo representation, but the "encrypted in repo, decrypted in checkout" abuse would be helped by an option to do the reverse---find changes and look substrings in the representation used in the checkout. I am not sure if there are other use cases that is helped by such an option.

Previous: brian m. carlsonNext: Jeff King
Message 10 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.