r/programming • • Mar 27 '23

Twitter Source Code Leaked on GitHub

https://www.cyberkendra.com/2023/03/twitter-source-code-leaked-on-github.html
8.0k Upvotes

717 comments sorted by

View all comments

Show parent comments

1

u/TheWhyOfFry Mar 29 '23
  1. API keys might not be able to be pushed to origin but that doesn’t prevent them in a local branch/fork and it’s not clear whether the leak was origin or a branch/fork

  2. While generally true, again, someone generated those secrets in the first place and might have them also stored in password managers.

1

u/ItzWarty Mar 29 '23

Re 1: The point is developers don't generally really have the sort of key you're talking about in a meaningful sense. If a Twitter employee had prod credentials on their laptop development environment there would be an absurd amount of incompetence going on at the CTO/CISO level. There are numerous opsec teams whose sole jobs are to prevent these things from happen, and those sorts of teams inject themselves into work like this nonstop.

Re 2: Most big companies have really strict policies that make that difficult as well. Want to sign some code? I've seen companies literally require you to buy and use a laptop in a safe located in a high-level executive's office (granted, our situation was a bit out of the norm). Like, all I'm saying is there are an absurd amount of barriers put in place by big tech companies to make sure these simple things (which are very valid concerns for small companies!) don't happen. If you ever ship features within those companies, unfortunately it's not too uncommon to have to jump through all these hurdles to do extremely simple things for this reason.