Update script to revoke actively used PATs
* In the first iteration of this class, the "cut off date" was used to revoke personal access tokens that were last used before that date. * In that context, this was a class for revoking unused PATs. * This MR makes it possible to run this class so that the "cut off date" is to revoke any tokens created before that date, irrespective of when they were last used. So it now works for both used and unused PATs. * First MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/95340
显示
- app/models/personal_access_token.rb 1 个添加, 0 个删除app/models/personal_access_token.rb
- lib/gitlab/cleanup/personal_access_tokens.rb 28 个添加, 34 个删除lib/gitlab/cleanup/personal_access_tokens.rb
- spec/lib/gitlab/cleanup/personal_access_tokens_spec.rb 42 个添加, 11 个删除spec/lib/gitlab/cleanup/personal_access_tokens_spec.rb
- spec/models/personal_access_token_spec.rb 40 个添加, 0 个删除spec/models/personal_access_token_spec.rb
加载中
想要评论请 注册 或 登录