After upgrading to 8.14.4, API using SUDO no longer works with Personal Access Token
Summary
after update 8.14.3-ce.0 to 8.14.4-ce.0, API using SUDO no longer works
Steps to reproduce
curl --header "PRIVATE-TOKEN: REDACTED" --header "SUDO: 16" "https://gitlab.REDACTED.org/api/v3/projects"
{"message":"403 Forbidden - Private token must be specified in order to use sudo"}
Expected behavior
Actual behavior
Relevant logs and/or screenshots
Output of checks
Results of GitLab application Check
Checking GitLab Shell ...
GitLab Shell version >= 4.0.3 ? ... OK (4.0.3)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
3/4 ... repository is empty
5/29 ... ok
3/31 ... ok
5/32 ... ok
16/39 ... ok
7/41 ... ok
5/42 ... ok
6/43 ... ok
3/44 ... ok
17/45 ... ok
18/46 ... ok
19/47 ... ok
21/48 ... ok
22/49 ... ok
23/50 ... ok
25/52 ... ok
26/53 ... ok
27/54 ... ok
28/55 ... ok
29/56 ... ok
30/57 ... ok
31/58 ... ok
32/59 ... ok
33/60 ... ok
34/61 ... ok
35/62 ... ok
36/63 ... ok
37/64 ... ok
39/66 ... ok
40/67 ... ok
41/68 ... ok
42/69 ... ok
43/70 ... ok
44/72 ... ok
45/73 ... ok
46/74 ... ok
47/75 ... ok
48/76 ... ok
49/77 ... ok
50/80 ... ok
51/81 ... ok
31/83 ... ok
2/84 ... ok
53/86 ... ok
5/87 ... ok
50/88 ... ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
Send ping to redis server: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... yes
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
projects have namespace: ...
3/4 ... yes
5/29 ... yes
3/31 ... yes
5/32 ... yes
16/39 ... yes
7/41 ... yes
5/42 ... yes
6/43 ... yes
3/44 ... yes
17/45 ... yes
18/46 ... yes
19/47 ... yes
21/48 ... yes
22/49 ... yes
23/50 ... yes
25/52 ... yes
26/53 ... yes
27/54 ... yes
28/55 ... yes
29/56 ... yes
30/57 ... yes
31/58 ... yes
32/59 ... yes
33/60 ... yes
34/61 ... yes
35/62 ... yes
36/63 ... yes
37/64 ... yes
39/66 ... yes
40/67 ... yes
41/68 ... yes
42/69 ... yes
43/70 ... yes
44/72 ... yes
45/73 ... yes
46/74 ... yes
47/75 ... yes
48/76 ... yes
49/77 ... yes
50/80 ... yes
51/81 ... yes
31/83 ... yes
2/84 ... yes
53/86 ... yes
5/87 ... yes
50/88 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.1)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 2.7.3 ? ... yes (2.7.4)
Active users: 41
Checking GitLab ... Finished
Results of GitLab environment info
System information
System: Ubuntu 16.04
Current User: git
Using RVM: no
Ruby Version: 2.3.1p112
Gem Version: 2.6.6
Bundler Version:1.13.6
Rake Version: 10.5.0
Sidekiq Version:4.2.1
GitLab information
Version: 8.14.4
Revision: 3ea6c8d
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://gitlab.REDACTED.org
HTTP Clone URL: https://gitlab.REDACTED.org/some-group/some-project.git
SSH Clone URL: git@gitlab.REDACTED.org:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 4.0.3
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git