Skip to content

Implement self service user deletion queue - #39

Open
juliangiebel wants to merge 14 commits into
space-wizards:masterfrom
juliangiebel:2026.06.29-user-deletion-queue
Open

juliangiebel wants to merge 14 commits into
space-wizards:masterfrom
juliangiebel:2026.06.29-user-deletion-queue

Conversation

@juliangiebel

Copy link
Copy Markdown
Contributor

This PR allows users to delete their own account with a grace period of (by default) 30 days.
Within those 30 days they can cancel their account deletion.

Deleted accounts will get their ID written into a DeletedUserIds table so that the deletion can eventually be cascaded down to other services and downstreams.

SS14.Auth runs a job to delete accounts queued for deletion longer than 30 days each day.

image image

@Fildrance Fildrance left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems pretty legit, left some ideas for improvements

Comment thread SS14.Auth/Startup.cs Resolved
Comment thread SS14.Auth/Jobs/DeleteMarkedUsersJob.cs Resolved
Comment thread SS14.Auth/Jobs/DeleteMarkedUsersJob.cs Resolved

@VasilisThePikachu VasilisThePikachu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably mention that not all third parties (downstreams or other services) may respect deleting user data as this is basically voluntery for them (unless you makeit a hub rule where its annoying to enforce). And may have different data retention policies.

We can basically just say "We cannot control what third parties do to your data. You may need to contect them first to delete your data before deleting your main account" or something among those lines

@juliangiebel

Copy link
Copy Markdown
Contributor Author

Just so I don't forget: I still need to add sending an email to our ticket system about the deletion going through at least until we have full automation for other places user data needs to be deleted from

Comment thread SS14.Auth/Jobs/DeleteMarkedUsersJob.cs Resolved
@Axionyxx
Axionyxx self-requested a review October 3, 2026 14:11

@Axionyxx Axionyxx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we block people who queue their deletion from logging in/using auth?

Most services will block you from using anything related to them after you've queued your deletion, and if we aren't we should probably be doing the same

Comment thread SS14.Auth/Jobs/DeleteMarkedUsersJob.cs Resolved

@Axionyxx Axionyxx left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should consider sending the user an email when a deletion is queued/cancelled, or if we manually run a deletion as admins.

Should we be restricting what a user can do while the deletion is queued? Like rejecting launcher logins/auth when trying to join the server/account changes like username/email?

Comment thread SS14.Auth/Jobs/DeleteMarkedUsersJob.cs Resolved
Comment thread SS14.Auth/Jobs/DeleteMarkedUsersJob.cs Resolved
Comment thread SS14.Auth.Shared/ModelShared.cs Resolved
@juliangiebel
juliangiebel requested a review from Axionyxx October 31, 2026 17:15

@Axionyxx Axionyxx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry julian :(

Comment thread SS14.Auth/Jobs/DeleteMarkedUsersJob.cs Resolved
Comment thread SS14.Web/Views/Shared/_Layout.cshtml Resolved
Comment thread SS14.Auth.Shared/ModelShared.cs Resolved
Comment thread SS14.Auth.Shared/ModelShared.cs Resolved
@juliangiebel
juliangiebel requested a review from Axionyxx October 31, 2026 18:06

@Axionyxx Axionyxx left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently I'm stupid and <br /> would've been fine, oh well

The <br>/ one can be fixed from github so approving this since as far as I'm concerned when that is fixed this is good to go

Comment thread SS14.Auth.Shared/ModelShared.cs Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants