Fix: reject api and git access if phone not verified
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
andgit_access
if phone is not verified with RealNameSystem enabled -
add user access denied reason for phone verification
Changes
- 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 |
---|---|
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.
-
I have evaluated the MR acceptance checklist for this MR.
Related #1711
由 Martin Tan 编辑于