Re: GitLab SSH is moving to gitlab-ssh.wikimedia.org

Taavi Väänänen via Wikitech-l <[email protected]> Thu, 16 Jul 2026 20:50:38 +0300
Newsgroups gmane.science.linguistics.wikipedia.technical
Message-ID <CAPwrivLE2uF_a7P54AvDytFas6bccq-+Q-0Gb0x54b4Qptj7qA@mail.gmail.com>
--===============2807441258890183937==
Content-Type: multipart/alternative; boundary="000000000000f3c2670656be14ce"

--000000000000f3c2670656be14ce
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Does someone have a working configuration for `glab`[0] and gerritlab[1] in
this split setup?

I have this in my ~/.gitconfig:
```
[credential "https://gitlab.wikimedia.org/"]
    helper =3D !glab auth git-credential "$@"
```

So far, that has both allowed me to interact with normal `glab` commands
and use it as a credential helper for gerritlab. Either I set up glab for
gitlab.wikimedia.org, which makes gerritlab work but normal glab commands
fail with "none of the git remotes configured for this repository point to
a known GitLab host", or I set glab up for gitlab-ssh.wikimedia.org which
makes normal glab commands work but gerritlab no longer sees credentials
for the API.

[0]: https://gitlab.com/gitlab-org/cli
[1]: https://github.com/yaoyuannnn/gerritlab

thanks,
taavi

--=20
Taavi V=C3=A4=C3=A4n=C3=A4nen (he/they)
Site Reliability Engineer, Tools Infrastructure
Wikimedia Foundation

--000000000000f3c2670656be14ce
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div>Does someone have a working configur=
ation for `glab`[0] and gerritlab[1] in this split setup?</div><div><br></d=
iv><div>I have this in my ~/.gitconfig:</div><div>```</div><div>[credential=
 &quot;<a href=3D"https://gitlab.wikimedia.org/">https://gitlab.wikimedia.o=
rg/</a>&quot;]<br>=C2=A0 =C2=A0 helper =3D !glab auth git-credential &quot;=
$@&quot;</div><div>```</div><div><br></div><div>So far, that has both allow=
ed me to interact with normal `glab` commands and use it as a credential he=
lper for gerritlab. Either I set up glab for <a href=3D"http://gitlab.wikim=
edia.org">gitlab.wikimedia.org</a>, which makes gerritlab work but normal g=
lab commands fail with &quot;none of the git remotes configured for this re=
pository point to a known GitLab host&quot;, or I set glab up for <a href=
=3D"http://gitlab-ssh.wikimedia.org">gitlab-ssh.wikimedia.org</a> which mak=
es normal glab commands work but gerritlab no longer sees credentials for t=
he API.</div><div><br></div><div>[0]:=C2=A0<a href=3D"https://gitlab.com/gi=
tlab-org/cli">https://gitlab.com/gitlab-org/cli</a></div><div>[1]:=C2=A0<a =
href=3D"https://github.com/yaoyuannnn/gerritlab">https://github.com/yaoyuan=
nnn/gerritlab</a></div><div><br></div><div>thanks,</div><div>taavi</div></d=
iv><br><span class=3D"gmail_signature_prefix">-- </span><br><div dir=3D"ltr=
" class=3D"gmail_signature"><div dir=3D"ltr"><div>Taavi V=C3=A4=C3=A4n=C3=
=A4nen (he/they)<br></div><div>Site Reliability Engineer, Tools Infrastruct=
ure</div><div>Wikimedia Foundation<br></div></div></div></div>

--000000000000f3c2670656be14ce--

--===============2807441258890183937==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Wikitech-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
--===============2807441258890183937==--