Re:Anyone can access deleted and private repository data on ...
by Cpoll on Wednesday July 24, 2024 @06:21PM
(#41062809)
Is "git" relevant here? Forking isn't a git concept, and none of this behaviour has much to do with git; it's all GitHub.
Also, you can revoke an API key, but you can't revoke a company-proprietary algorithm that you implemented into a fork of a public project.
Re:Anyone can access deleted and private repository data on ...
by tptacek on Wednesday July 24, 2024 @06:25PM
(#41062854)
Like I said: if you can't revoke the thing you committed, you need to get in touch with Github and have them remove it. That's a thing they do.
Re:Anyone can access deleted and private repository data on ...
by Cpoll on Thursday July 25, 2024 @11:33AM
(#41069870)
Sure, but the whole point of the article is that people don't know their "private" forks aren't private. You can't get in touch with GitHub if you've never had any indication that anything's wrong.
The solution for that is better UX.
Re:Anyone can access deleted and private repository data on ...
by schrodinger on Thursday July 25, 2024 @12:34AM
(#41064739)
aside: I think it's questionable to say that forking isn't a git concept. it's just a branch on a different upstream. Those two upstreams could simply be two different folders on your machine, or shared server.
I supposed the branding and UI for it could be a counter argument, but then again Github allows regular branch creation / committing / merging in their UI. Their main value add (not downplaying it—it's huge) on top of git (besides ancillary things like CI / linters) is the ability to comment on a branch's diff, i.e. a PR Review.
Re:Anyone can access deleted and private repository data on ...
by giobox on Thursday July 25, 2024 @11:38AM
(#41069920)
There's an entire custom UX flow for forking on GH that is not part of git at all. I think its very fair here to discuss "fork" in the specific sense Github uses it, as its what has lead to some of the issues discussed. There are absolutely means of providing fork functionality that don't have some of the problems we are discussing, but that's not how GH chose to build it.
Re:Anyone can access deleted and private repository data on ...
by Aeolun on Wednesday July 24, 2024 @07:26PM
(#41063295)
Yeah, and we can blame a lot of that on the Git developers, but they never use words like ‘public’ and ‘private’ to indicate things they’re not.
Regardless, the vulnerability in Github forks falls squarely on Github, and is not mitigated by Git being hard to understand in the first place.
There's a deeper problem here, which is that making the UX on hosting sites less surprising doesn't fix the underlying problem. There is a best-practices response to commiting hazmat to a repository: revoke the hazmat, so that its disclosure no long matters. You have to do this anyways. If you can't, you should be in contact with Github directly to remove it.