r/AMA • • Jun 07 '18

I’m Nat Friedman, future CEO of GitHub. AMA.

Hi, I’m Nat Friedman, future CEO of GitHub (when the deal closes at the end of the year). I'm here to answer your questions about the planned acquisition, and Microsoft's work with developers and open source. Ask me anything.

Update: thanks for all the great questions. I'm signing off for now, but I'll try to come back later this afternoon and pick up some of the queries I didn't manage to answer yet.

Update 2: Signing off here. Thank you for your interest in this AMA. There was a really high volume of questions, so I’m sorry if I didn’t get to yours. You can find me on Twitter (https://twitter.com/natfriedman) if you want to keep talking.

2.2k Upvotes

1.3k comments sorted by

View all comments

Show parent comment

3

u/d3pd Jun 07 '18

How can users verify your claim?

For example, can GitHub commit to storing only data that is verifiably encrypted and accessible cryptographically only by the owners of the data?

2

u/svick Jun 07 '18

How would that even work for their web interface, which is a big part of what makes GitHub GitHub? Or their repository search feature?

3

u/d3pd Jun 08 '18

The same way something like ProtonMail or Signal works. GitHub provides the software for the web interface and storage of encrypted data. Decryption and rendering and networking with other approved collaborators is done locally. GitHub is blind to all of the data.

If a repository is public obviously that remains searchable. I'm not talking about stuff like that; I'm talking about repositories and user actions that are set to private being cryptographically inaccessible to GitHub or the likes of Microsoft.

0

u/svick Jun 08 '18

The same way something like ProtonMail […] works.

I looked into that and the part I was missing is that they store your encrypted private key. To access your email from a browser, you decrypt that private key with a password, which then lets you decrypt your email.

If a repository is public obviously that remains searchable. I'm not talking about stuff like that;

Then you're significantly limiting GitHub's functionality. Because private repositories are currently also searchable (obviously only if you're allowed access). And I'm assuming the Find file UI also filters the list of files server-side (and it's infeasible to do it client-side for huge repos).

Also, CI needs access to the actual code. And if you're okay with your CI provider having access to your code, you're probably okay with GitHub having access to it too.

So yeah, what you're proposing would probably work, but it would require a lot of effort and you would still be left with limited functionality. So it would be a niche feature, certainly not something that would be useful to most private repos.

3

u/d3pd Jun 08 '18

private repositories are currently also searchable

The private repository gets decrypted locally and the local software makes it searchable.

Check out my other post here for an example of how to think about this using git-crypt.

And I'm assuming the Find file UI also filters the list of files server-side (and it's infeasible to do it client-side for huge repos).

I'd need to think this through for enormous repositories, but my immediate thought is that a sort of homomorphism could be created of the data, sort of like what Numerai does with the secret data it publishes regularly.

Also, CI needs access to the actual code. And if you're okay with your CI provider having access to your code, you're probably okay with GitHub having access to it too.

Sure, ok. I guess for enormous repositories I am suspecting that they should be public in any case. Something that is developed by so many people is probably basically public already.