Too eager app and app token creation and no clean up #429
Labels
No labels
a11y
Bug
Bug fix
Critical Priority
Documentation
Feature
Feature request
Held for next release cycle
High Priority
Low Priority
Medium Priority
Minor change
Translation/Locale
WIP
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma-fe#429
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I was wondering about an ever growing amount of null-user oauth_tokens and registrations as well as apps in the database.
As it turns out ever since switching to Mastodon API for registrations, akkoma-fe/pleroma-fe creates an app and requests an app-token on page load even if no login or registration attempt is ever made. This means, each visitor just looking at a post creates a new app, oauth_authorisation token and oauth_token in the database.
Additionally it seems like app tokens aren’t being revoked on logout unlike user-level tokens.
(oauth_authorisations being created at all for this and also never being cleaned up are backend inefficiencies though, but the main issue is in the frontend)
Afaict registration is the only time app tokens actually get used, so imho akkoma-fe should:
iceshrimp.NET’s soft-fork happens to include a patch to delay app creation to login, which isn’t a full fix but brings some relief, though this might break registrations (idk if iceshrimp.NET even supports registration via akkoma-fe):
0e25b94186
Too eager app and app token creation and never cleans them upto Too eager app and app token creation and no clean up