r/webdev • u/punkpeye • 1d ago
Discussion Users asking to remove their commits under GDPR
Seeing a spike of people asking to remove their commits from open-source GitHub repositories that I am the owner of because those commits carry their personal email or other identifiers.
How are you handling these?
151
Upvotes
44
u/punkpeye 1d ago
Looks like there are a lot of these on GitHub:
https://github.com/search?q=rewrite+author+GDPR&type=issues
19
u/mau-meda 1d ago
Why did they contribute if they want to stay anonymous? what are these projects about? ( you don't need to link them )
154
u/philipwhiuk 1d ago
This is GitHub’s problem not yours
4
u/kerberjg 1d ago
They can only ask their personal information to be removed (name & email, etc)
GDPR protects personal information (PII), not intellectual property. Once they have uploaded the commit, they gave up ownership of the code to you. If they have reservations about their name in the commits, you can rewrite those (but it will affect hashes)
27
u/Open-Adhesiveness-86 1d ago
If you do rewrite, know that filter-repo plus a force push doesn't actually remove anything on GitHub. The old objects stay reachable at /commit/<old-sha> and live on in every fork's shared object store until you open a support ticket asking them to GC the repo network and clear cached views. The original email also sticks around in PR/issue event payloads and the Events API. So you can do the work and still have the complainant point at a live URL.
121
u/erik240 1d ago
I’m not a lawyer but are you even sure GDPR applies here? A quick read says “maybe but maybe not” - that might be the first thing
125
u/HoratioWobble 1d ago
You need to rewrite the history to replace their email addresses and possibly names.
https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository
37
u/Ansible32 1d ago
https://gdpr.eu/right-to-be-forgotten/
...
IMO this is pretty clear-cut. The git commit log is a cryptographically secure chain and rewriting it to remove contributors breaks the entire chain's security.
63
u/Tirelessly 1d ago
I would ignore it tbh. Make it GitHub’s problem
16
u/Pack_Your_Trash 1d ago
Just ignore it.
8
u/Cute_Button_7706 1d ago
Force-pushing a public repo to wipe history breaks forks and PRs usually people either point them to GitHub's noreply email setup or rewrite author metadata if it's minor, though I'm definitely not giving legal advice.
30
u/tswaters 1d ago
I'm not. If someone asked me to remove the ppi from their commit messages, I'd ask for a PR that rewrites the history without them. This is not my problem? "You put it there, you can take it out"
6
u/nan05 1d ago edited 1d ago
Disclaimer: I’m not a lawyer, but a software developer with interest in law. As Brit I’m sadly also (no longer) based in the EU. As such my understanding is based on the UK implementation of the GDPR and the UK’ Information Commissioner’s Office’s interpretation of it.
My understanding is that the ‘right to be forgotten’ is often overhyped. It is far from absolute, doesn’t apply in many cases at all, and even were it applies has plenty of exemptions. However, reweriting git history being technically hard and annoying is not grounds for an exemption.
As far as I understand it, though, the right to be forgotten applies in 3 cases:
Now my contention would be that a git commiter’s name and email address has not been collected on the basis of consent (unless you did ask them for their consent before contributing).
My contention would be that the data has been collected under the lawful basis of ‘legitimate business interests’ to maintain authorship information of all code contributed for copyright (and potentially other) reasons. That ‘legitimate business interest’ still exists, so in my view the right to be forgotten simply doesn’t apply.
(If you have collected the contributor’s personal data under their consent instead, then the right to be forgotten might well apply though.)
These are just my thoughts as a layman. Not legal advice etc.
14
u/julian88888888 Moderator 1d ago
Block them
3
u/Opposite_Cycle_7171 1d ago
Rewriting git history on a public repo is a huge pain and breaks forks, so most maintainers either point them to GitHub's support/commit-email anonymization or rewrite just the author info if it's small
1
u/ThisSeaworthiness 1d ago
Side thought: I don't think many people know that their email is stored and visible openly in git. I was only made aware of that a couple of months ago, after 10y+ of using it
2
u/Aide_Sea 1d ago
Honestly a commit email is public the second you push it. Maybe a line in CONTRIBUTING saying history is permanent would save you some of these :)
2
u/the_kautilya 22h ago
Personally I wouldn't do anything about it if it were one of my repos. I dont ask for the emails of contributors. If they're so concerned then they should enable email privacy in their Github settings so that Github would sign their commits with
USERNAME@users.noreply.github.cominstead of their actual email. Also, I dont control the platform, Github does. So I doubt it'd be my lookout to scrub the email that they willingly provided.2
u/ferrybig 21h ago edited 21h ago
Git falls under the legitimate interests exception for the gdpr.
Legitimate interests include the security accountability, as it documents who wrote what
If your project is open source, it could also fall under the Archiving in the Public Interest exception
Also note, the data processor is GitHub, not you. Even though you can rewrite the git history, it doesn't delete the old commit objects, only GitHub support can run a GC
2
u/TundraGon 18h ago
You are not legally required to do it. Only if you want to do it out of kindness of your heart.
According to Github’s TOS, is the commiter’s responsability with what email commits.
Legally, he should contact Github support for this issue.
https://docs.github.com/en/site-policy/privacy-policies/github-general-privacy-statement
2
u/AlaskanDruid 17h ago
Only one person answered correctly so far.
Ignore them. It’s their responsibility per the TOS
2
u/farzad_meow 16h ago
if you want to be helpful, provide a one time squash to keep their contributions and remove entire history.
since when email is a private info? it is like saying you cannot use my full name because it is private info
2
u/unbdndeath 15h ago
Are you in EU? If not tell.them to kick rocks.
2
u/Fickle_Foundation_41 1d ago
I never heard of this and I would never think this is possible to ask. In some blogpost it is easy to update, not so easy with softawre. I wonder if anyone faced this before and how.
1
u/AhmedAmer2nd 1d ago
Before you rewrite history, it's worth separating two cases. If someone just wants their personal email off the commits, a .mailmap entry plus git filter-repo with a mailbox map fixes it cleanly, and you can point future contributors to their GitHub noreply address. A real erasure request is harder, because every fork and clone already has the old history. So I'd write a short policy: what you'll rewrite, how often you batch it, and that a force-push means everyone re-clones. That stops it from turning into one emergency at a time.
1
u/OkScratch9034 1d ago
Being in the term “public repository” doesn’t that defeat the whole premise. Surely as soon as you submit to it, you are waving that right.
1
u/damp-walnut976 22h ago
git filter-repo is useful here
1
u/Supermathie 9h ago
We prevent this by requiring all contributors to sign a CLA: https://cla-assistant.io/discourse/discourse
1
u/boer0327 8h ago
you can just map their old email to a noreply address in .mailmap without rewriting git history. github respects it on the ui.
-15
u/pushthepramalot 1d ago
The sooner the rest of the world isolates itself from the EU and denies it services, the sooner I can stop clicking stupid cookie banners.
-19
u/Asly97 1d ago
Split it into two problems. A name showing up in a commit message is one thing, the email sitting in the commit metadata is another, and most of these requests are really about that email being searchable.
For the ones already in history, swapping the address for a no reply style placeholder means rewriting every commit after it. Hashes all change, clones and forks break, people get annoyed. Doable, just warn contributors first.
Going forward is the cheap win. Warn or block pushes that use a personal email, so the list of people asking shrinks instead of growing. And keep a short note of how each request was handled. Being able to show you took it seriously, without arguing law in public, is half the value.
1
u/naxhh 13h ago
aside of being on github side to do that (or whoever hosts it)
the easiest approach is to rewrite history to remove the personal information
the law doesn't say to nuke all data just to not be able to link the person with said data. but some is still useful after that unlink. like commits here
5
u/[deleted] 1d ago
[removed] — view removed comment