When using Git over HTTP and user is blocked, display friendly message
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Zendesk: https://gitlab.zendesk.com/agent/tickets/45523
When a user account is blocked and a user pushed using Git over SSH, we display a useful error message: GitLab: Your account has been blocked.
. However, when using Git over HTTP, we give a standard (if not cryptic) remote: Not Found
.
I completely understand why we give a 404 - not wanting to leak information. Failing HTTP auth is a little different than using Git over SSH, where you're already 'authenticated' using your SSH key but are then not authorized because the account is blocked. I wonder if there's any way we can send back a nicer error message for Git over HTTP in some way.
cc/ @jacobvosmaer-gitlab @DouweM @ayufan You are the few lucky ones that may have worked in this area of code. What do you think?