geerlingguy / ansible-role-gitlab

Ansible Role - GitLab

Home Page:https://galaxy.ansible.com/geerlingguy/gitlab/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Internal Gitlab registry failing auth with 401

BrutalBirdie opened this issue · comments

Tracking Issue for PR.
In the defaults gitlab_external_url is mentioned with a trailing / this will result in a bad registry configuration:

path: /var/opt/gitlab/registry/config.yml

auth:
  token:
    realm: https://sub.domain.tld//jwt/auth

because in the gitlab.rb file the external_url "https://sub.domain.tld/" will be combined with the /jwt/auth leading to // in the domain. (Sorry could not find the internal gitlab code where this happens)

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.