-
- Downloads
Rake task to cleanup expired ActiveSession lookup keys
In some cases ActiveSession.cleanup was not called after authentication, so for some user ActiveSession lookup keys grew without ever cleaning up. This Rake task manually iterates over the lookup keys and removes ones without existing ActiveSession.
Showing
- app/models/active_session.rb 4 additions, 4 deletionsapp/models/active_session.rb
- changelogs/unreleased/64257-active_session_lookup_key_cleanup.yml 5 additions, 0 deletions...gs/unreleased/64257-active_session_lookup_key_cleanup.yml
- doc/raketasks/cleanup.md 10 additions, 0 deletionsdoc/raketasks/cleanup.md
- lib/tasks/gitlab/cleanup.rake 52 additions, 0 deletionslib/tasks/gitlab/cleanup.rake
- spec/models/active_session_spec.rb 1 addition, 1 deletionspec/models/active_session_spec.rb
- spec/tasks/gitlab/cleanup_rake_spec.rb 30 additions, 0 deletionsspec/tasks/gitlab/cleanup_rake_spec.rb
Please register or sign in to comment