-
- Downloads
Add Rake task to show token expiration info
This task adds a Rake task `gitlab:tokens:analyze` and gives a readout to the admin about: - When the migration in 16.0 for https://gitlab.com/gitlab-org/gitlab/-/issues/369123 started and finished - The top 10 expiration dates (https://gitlab.com/gitlab-org/gitlab/-/merge_requests/157782) https://gitlab.com/gitlab-org/gitlab/-/issues/467313 There should be a strong correlation with the migration dates and the expiration dates. Seeing both of them together helps focus on the tokens that were assigned an `expires_at` field in the background migration. Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/467313 Changelog: added
Showing
- Gemfile 2 additions, 0 deletionsGemfile
- Gemfile.lock 1 addition, 0 deletionsGemfile.lock
- doc/administration/raketasks/tokens/index.md 268 additions, 0 deletionsdoc/administration/raketasks/tokens/index.md
- doc/raketasks/index.md 1 addition, 0 deletionsdoc/raketasks/index.md
- doc/security/token_overview.md 430 additions, 0 deletionsdoc/security/token_overview.md
- lib/tasks/gitlab/tokens.rake 17 additions, 0 deletionslib/tasks/gitlab/tokens.rake
- lib/tasks/gitlab/tokens/manage_expiry_task.rb 205 additions, 0 deletionslib/tasks/gitlab/tokens/manage_expiry_task.rb
- spec/tasks/gitlab/tokens/manage_expiry_task_spec.rb 91 additions, 0 deletionsspec/tasks/gitlab/tokens/manage_expiry_task_spec.rb
Loading
| Loading
| @@ -352,6 +352,8 @@ gem 'gettext', '~> 3.3', require: false, group: :development |
gem 'batch-loader', '~> 2.0.1' | ||
gem 'tty-prompt', '~> 0.23', require: false | ||
# Perf bar | ||
gem 'peek', '~> 1.1' | ||
Loading
| Loading
|
doc/administration/raketasks/tokens/index.md
0 → 100644
lib/tasks/gitlab/tokens.rake
0 → 100644
Please register or sign in to comment