some requests contains a double path
Summary
stack: kubernetes, haproxy, omnibus CE, official docker images request: HAproxy(with SSL terminaiton and redirect http to https) -> gitlab(http)
During installation external_url on gitlab is set to http://x.y.z, but haproxy loadbalancer is listening in both (ssl & non-SSL) but always redirecting to https
I find some duplicates paths mostly after some action, so far:
- On CI jobs view: https://z.y.z/group/repo/-/jobs/52/group/repo/-/jobs/52/trace.json?state=
- After saving a runner setting (data is saved): https://x.y.z/admin/runners/30/admin/runners/30
- After click "retry" job: https://x.y.z/group/repo/-/jobs/50/retry/group/repo/-/jobs/53
This duplicates path throw an expected 404, if by hand I de-duplicate the path it works as expected.
Steps to reproduce
- Install gilab-ce using stable/gitlab-ce chart
- use HAproxy in front of gitlab with SSL termination
- try to save any admin setting
Results of GitLab environment info
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.3.5p376
Gem Version: 2.6.13
Bundler Version:1.13.7
Rake Version: 12.0.0
Redis Version: 3.2.5
Git Version: 2.13.5
Sidekiq Version:5.0.4
Go Version: unknown
GitLab information
Version: 10.0.3
Revision: 8895150
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: http://gl.vizlegal.io
HTTP Clone URL: http://gl.vizlegal.io/some-group/some-project.git
SSH Clone URL: git@gl.vizlegal.io:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 5.9.0
Repository storage paths:
- default: /gitlab-data/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks
Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Checking GitLab Shell ...
GitLab Shell version >= 5.9.0 ? ... OK (5.9.0)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:root, or git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
4/1 ... ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Redis available via internal API: OK
Access to /gitlab-data/ssh/authorized_keys: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Reply by email is disabled in config/gitlab.yml
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
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? ... skipped (no tmp uploads folder yet)
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: ...
4/1 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.3.3 ? ... yes (2.3.5)
Git version >= 2.7.3 ? ... yes (2.13.5)
Git user has default SSH configuration? ... yes
Active users: ... 2
Checking GitLab ... Finished
Edited by JA