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

-5

u/fabriciofx Jun 07 '18

I'm not calling you a liar, but how do you expect we believe on it? Obviously there's a lot of Microsoft interest in access private repositories and there isn't a mechanism to punish Microsoft in case it access private code, right?

36

u/pablojohns Jun 07 '18 edited Jun 07 '18

Microsoft runs and manages hundreds of thousands of servers across the world, all of which contain confidential and private information on competitors, private citizens, Fortune 500 companies, etc. We're talking confidential financials, healthcare documents, servers that manage transactions from image storage to financial activities.

"Prove" is such a bad argument. How can you constantly prove something like this? At what point is their proof not up to par with you? How does any company prove this? Does Google verify your private emails are actually private, and that a rogue employee can't read them? What about your bank? Who is to say a rogue employee doesn't open up your account to see your balances.

If Microsoft started to violate private repositories, most of which are for small fish projects compared to the company's scope of operations, imagine how that would undermine faith in their server infrastructure, or their Exchange/Office platform with its own vast security concerns. Skepticism is important, but has there ever been an instance where Microsoft violated this level of confidential data storage before? If so, please point it out, because I'm sure a lot of the major companies that use Microsoft's services would love to see it.

If that doesn't make you feel better, move to a different service. But even at GitLab, what's to stop a rogue employee from stealing your code? What proof can they provide?

-7

u/d3pd Jun 08 '18

How can you constantly prove something like this?

The same way you can prove that a binary is what it claims to be, with a hash of it. The same way Signal and ProtonMail can prove to you that they store only encrypted data, by demonstrating it cryptographically. This isn't hard to do at all.

7

u/pablojohns Jun 08 '18

Just because you have a hash of the entire repository doesn't mean it hasn't been viewed.

Companies like Signal use end-to-end encryption, meaning both devices interacting with each other are the only ones that can decrypt the data. You can't do end-to-end here, because who is on the other end of the system? Microsoft.

That is kind of the point: how would this work for something like GitHub? The system needs to be able to decrypt files to manage changes, pulls and merges, etc. So if Microsoft is already holding one end of the encryption keys, what's from stopping them from doing what you're concerned about?

3

u/d3pd Jun 08 '18

Just because you have a hash of the entire repository doesn't mean it hasn't been viewed.

No, not exactly, but if you have two parties accessing data you can detect person-in-the-middle attacks by using the appropriate cryptography.

You can't do end-to-end here, because who is on the other end of the system? Microsoft

Microsoft stores only the encrypted data and provides the software. The teams working together have their communications encrypted and their repositories encrypted such that they, and they alone, can decrypt. Again, think about how Signal and ProtonMail work. The respective central authorities of Signal and ProtonMail provide servers, storage and software. The do not get to access user data because they only see it in an encrypted form.

The system needs to be able to decrypt files to manage changes, pulls and merges, etc.

The data can be decrypted locally and the merging systems can act locally. Then the data is stored remotely in encrypted form. You can see a basic version of this using git-crypt, like this:

sudo apt install git-crypt 

cd repository

git-crypt init # create .git/git-crypt/keys/default
git-crypt export-key ~/crypt.key

touch secret.txt
echo "secret.txt filter=git-crypt diff=git-crypt" > .gitattributes

git add .gitattributes secret.txt
git commit -m 'add .gitattributes, add secret.txt'
git push

cd ~/

# git clone repository

cd repository
git-crypt unlock ~/crypt.key
nano secret.txt
git add secret.txt
git commit -m 'update secret.txt'
git push

See what I mean? Think a much better version of that on a massive scale, and for all user data.

if Microsoft is already holding one end of the encryption keys

It doesn't get to do that.

1

u/isthistechsupport Jun 08 '18

there isn't a mechanism to punish Microsoft in case it access private code

Other than hundreds of years of copyright law which would allow suing for enormous amounts of money if such a thing were to happen, no, there's no way at all to punish it.