Skip to content
代码片段 群组 项目
该项目从 https://gitlab.com/gitlab-org/gitlab.git 镜像。 拉取镜像更新于
  1. 7月 04, 2024
    • Nick Malcolm's avatar
      Refactor AgnosticTokenRevocationService to require a Group Owner · 69855be0
      Nick Malcolm 创作于
      In the original commit, anyone in possession of a token could attempt to
      revoke it. Now, the caller (current_user) must be a Group Owner to
      attempt to revoke a token.
      
      Rate limiting is removed as we can now rely on the regular rate limits.
      A malicious group owner can't add a random user and feasibly attempt to
      brute-force their PersonalAccessToken. Nor can they find a leaked token
      and brute-force a number of groups to try and revoke it against a
      random one.
      
      We can assume that a malicious actor with a token could use another API
      endpoint if they wanted to (e.g. /user) to read information, update
      records, or otherwise cause havoc.
      
      So the next threat is a well-intentioned person trying to "help" when
      they find a leaked token. A GitLab EM & maintainer both felt that the
      risk of breaking an organization's systems by revoking a token was too
      great and, therefore, revocation should only be possible if the caller
      is a Group owner.
      69855be0
  2. 2月 29, 2024
  3. 2月 27, 2024
  4. 12月 26, 2023
  5. 12月 20, 2023
  6. 12月 11, 2023
  7. 6月 06, 2023
  8. 5月 25, 2023
  9. 4月 13, 2023
  10. 3月 08, 2023
加载中