Skip to content
代码片段 群组 项目
提交 cb101353 编辑于 作者: Nick Malcolm's avatar Nick Malcolm 提交者: Martin Wortschack
浏览文件

Adds a Cleanup class for unused still-active Personal Access Tokens

Unused active Personal Access Tokens pose a risk to organizations
in that they may have been, or may be, leaked to unauthorized
individuals. They are likely providing little / no current value
because they are not actively being used, and should therefore be
proactively revoked.

This MR introduces a scope for identifying unused Personal Access
Tokens. It also adds a class which, like other Cleanup classes, can be
used in a "dry run" (default) or active mode. It provides logging,
performant batched updates, and safe defaults.

Ideally, tokens are created with a short expiry time. For everything
else, there's Gitlab::Cleanup::UnusedPersonalAccessTokens.

- https://gitlab.com/gitlab-org/gitlab/-/issues/369000
- https://gitlab.com/gitlab-org/gitlab/-/work_items/113164901

Changelog: added
上级 cc717678
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册