Skip to content

Fix: reject api and git access if phone not verified

Martin Tan请求将1711-phone-verification-check合并到main-jh

Upstream MR https://gitlab.com/gitlab-org/gitlab/-/merge_requests/96249

What does this MR do and why?

Reject access of API and Git if user phone not verified.

Proposal

  • extend global policy with phone verification
  • the default access policy should be kept as it is
  • the new policy only prevent api_access and git_access if phone is not verified with RealNameSystem enabled
  • add user access denied reason for phone verification

Changes

  1. API/Git access will be denied if the account is created without phone verified before the real name system is enabled.

Screenshots or screen recordings

After enabled this feature

API Access Error Git Access Error
image image

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related #1711

Martin Tan 编辑于

合并请求报告

加载中