Retrieving SSH keys doesn't work without being logged in
Summary
Previously https://instance-domain.tld/user.keys returned the ssh keys for a user. I'm on a self-hosted 14.2.3 gitlab and links like that redirect me to the login page when i'm not signed in.
Steps to reproduce
- get a user name for a user with SSH keys
- visit your instance on the path /username.keys
Example Project
What is the current bug behavior?
Redirect to login page
What is the expected correct behavior?
All public SSH keys of user will be shown
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Ubuntu 20.04 Current User: git Using RVM: no Ruby Version: 2.7.2p137 Gem Version: 3.1.4 Bundler Version:2.1.4 Rake Version: 13.0.6 Redis Version: 6.0.14 Git Version: 2.32.0 Sidekiq Version:5.2.9 Go Version: unknown GitLab information Version: 14.2.3 Revision: 2324101daeb Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 12.7 URL: https://gitlab.conlance.org HTTP Clone URL: https://gitlab.conlance.org/some-group/some-project.git SSH Clone URL: git@gitlab.conlance.org:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers: GitLab Shell Version: 13.19.1 Repository storage paths: - default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/bin/git`
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 13.19.1 ? ... OK (13.19.1) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes (cluster/worker) ... 1/1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Checking Reply by email ...
IMAP server credentials are correct? ... Checking gitlab@conlance.org yes Init.d configured correctly? ... skipped MailRoom running? ... skipped
Checking Reply by email ... Finished
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... 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: ... 70/1 ... yes 4/2 ... yes 4/3 ... yes 4/4 ... yes 6/5 ... yes 8/6 ... yes 9/7 ... yes 19/8 ... yes 6/9 ... yes 70/10 ... yes 6/11 ... yes 4/12 ... yes 8/13 ... yes 13/14 ... yes 1/16 ... yes 9/17 ... yes 17/19 ... yes 19/20 ... yes 6/21 ... yes 19/23 ... yes 70/24 ... yes 70/25 ... yes 21/27 ... yes 70/28 ... yes 6/29 ... yes 19/30 ... yes 4/31 ... yes 25/32 ... yes 27/33 ... yes 19/34 ... yes 17/35 ... yes 6/36 ... yes 15/37 ... yes 8/38 ... yes 15/39 ... yes 19/40 ... yes 37/42 ... yes 27/43 ... yes 37/44 ... yes 37/45 ... yes 37/46 ... yes 39/47 ... yes 4/48 ... yes 1/49 ... yes 41/51 ... yes 41/52 ... yes 41/53 ... yes 15/54 ... yes 41/55 ... yes 15/56 ... yes 15/57 ... yes 49/58 ... yes 70/60 ... yes 4/61 ... yes 15/63 ... yes 4/64 ... yes 4/65 ... yes 15/66 ... yes 15/67 ... yes 15/68 ... yes 53/69 ... yes 15/70 ... yes 56/71 ... yes 56/72 ... yes 37/73 ... yes 37/74 ... yes 58/76 ... yes 59/78 ... yes 15/80 ... yes 15/81 ... yes 24/84 ... yes 66/85 ... yes 4/86 ... yes 54/87 ... yes 4/88 ... yes 71/90 ... yes 15/91 ... yes 71/92 ... yes 56/93 ... yes 2/94 ... yes 71/95 ... yes 4/96 ... yes 4/99 ... yes 4/101 ... yes 82/102 ... yes 19/103 ... yes 84/104 ... yes 4/105 ... yes 24/106 ... yes 85/107 ... yes 85/108 ... yes 85/109 ... yes 53/110 ... yes 93/112 ... yes 93/113 ... yes 94/114 ... yes 96/115 ... yes 4/116 ... yes 19/117 ... yes 2/118 ... yes 102/119 ... yes 45/120 ... yes 56/121 ... yes 61/122 ... yes 56/123 ... yes 45/124 ... yes 53/125 ... yes 93/126 ... yes 104/127 ... yes 93/128 ... yes 105/129 ... yes 93/130 ... yes 93/131 ... yes 106/132 ... yes 106/133 ... yes 56/134 ... yes 4/135 ... yes 107/136 ... yes 4/137 ... yes 106/138 ... yes 105/139 ... yes 109/140 ... yes 110/141 ... yes 114/143 ... yes 4/144 ... yes 112/145 ... yes 105/147 ... yes 93/149 ... yes 4/150 ... yes 113/151 ... yes 105/152 ... yes 19/153 ... yes 119/154 ... yes 119/156 ... yes 119/157 ... yes 110/158 ... yes 13/159 ... yes 13/160 ... yes 105/161 ... yes 123/163 ... yes 123/164 ... yes 124/165 ... yes 19/166 ... yes 4/167 ... yes 4/168 ... yes 127/169 ... yes 4/170 ... yes 126/171 ... yes 128/172 ... yes 129/173 ... yes 15/176 ... yes 132/177 ... yes 4/178 ... yes 109/179 ... yes 132/180 ... yes 132/181 ... yes 4/182 ... yes 80/183 ... yes 132/184 ... yes 1/185 ... yes 4/186 ... yes 132/187 ... yes 4/188 ... yes 131/191 ... yes 132/192 ... yes 137/193 ... yes 137/194 ... yes 15/195 ... yes 138/196 ... yes 4/198 ... yes 4/206 ... yes 146/207 ... yes 4/208 ... yes 149/210 ... yes 151/211 ... yes 4/212 ... yes 153/213 ... yes 140/214 ... yes 146/215 ... yes 154/216 ... yes 157/217 ... yes 15/218 ... yes 135/219 ... yes 132/220 ... yes 4/222 ... yes 157/223 ... yes 53/224 ... yes 160/225 ... yes 140/226 ... yes 165/227 ... yes 140/228 ... yes 2/229 ... yes 15/231 ... yes 175/232 ... yes 154/233 ... yes 132/234 ... yes 140/235 ... yes 19/236 ... yes 184/237 ... yes 187/238 ... yes 188/239 ... yes 187/240 ... yes 187/241 ... yes 153/242 ... yes 189/243 ... yes 189/244 ... yes 194/246 ... yes 134/247 ... yes 35/248 ... yes 132/249 ... yes 200/250 ... yes 200/252 ... yes 148/255 ... yes 202/256 ... yes 203/257 ... yes 203/258 ... yes 200/259 ... yes 207/260 ... yes 4/261 ... yes 200/262 ... yes 200/263 ... yes 210/267 ... yes 212/268 ... yes 210/270 ... yes 207/274 ... yes 215/275 ... yes 219/276 ... yes 221/277 ... yes 207/278 ... yes 66/279 ... yes 200/280 ... yes Redis version >= 5.0.0? ... yes Ruby version >= 2.7.2 ? ... yes (2.7.2) Git version >= 2.31.0 ? ... yes (2.32.0) Git user has default SSH configuration? ... yes Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished