Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated cleanup of unused OAuth2 first-party clients #52

Open
cjslep opened this issue Dec 20, 2020 · 0 comments
Open

Automated cleanup of unused OAuth2 first-party clients #52

cjslep opened this issue Dec 20, 2020 · 0 comments
Labels
feature request New request for novel functionality

Comments

@cjslep
Copy link
Member

cjslep commented Dec 20, 2020

Currently, logging in multiple times will generate a lot of auto-registered OAuth2 local first-party clients into the database. That doesn't seem like too much of a problem, but it is potentially a source of boundless growth.

It would be nice to have a routine that periodically checks: determine if this local first-party client have any reference to it in the tokens table, and if not, delete it. This is neither a simple nor cheap SQL operation, and may require a VACUUM-like behavior with a background goroutine doing this task and determining the diffs. Fortunately the problem is partitioned per-user, which can aid in designing such a routine.

@cjslep cjslep added the feature request New request for novel functionality label Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New request for novel functionality
Projects
None yet
Development

No branches or pull requests

1 participant